]> git.sur5r.net Git - openocd/commit
armv4_5: support weirdo ARMv6 secure monitor mode
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Jan 2016 09:46:07 +0000 (10:46 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 29 Feb 2016 20:14:12 +0000 (20:14 +0000)
commitfed713104904bfc4884e748ef4160be4ab7e4575
tree9ee698ef7669bf12e48f5952979e7a36dda1f714
parentf2fbcb217b31e1b133ac18f51f7fc4ab3cf386b1
armv4_5: support weirdo ARMv6 secure monitor mode

On the ARM PB1176JZF-S the system comes up in secure monitor
mode after reset. However the modebits in CPSR form the value
28 (0x1c) and CPSR is 0x800001dc deeming it UNRECOGNIZED.
Define this mode to be synonymous to mode 22 (MON) and things
start to work like a charm.

Change-Id: I001f7773ee1076202c0c633e466d2d833f7a1413
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-on: http://openocd.zylin.com/3196
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/target/arm.h
src/target/armv4_5.c