ARM: use arm_reg_current()
commitb404b9ab57f17d84eb8dbfb42e6ac49c32913eee
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 22 Nov 2009 18:21:48 +0000 (22 10:21 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 22 Nov 2009 18:27:29 +0000 (22 10:27 -0800)
tree4416b9f407908e7554dc8b2f5329c4461dfa9516
parentfa618cc74deea6741c745b4f80dace2421209a1e
ARM: use arm_reg_current()

Start using the arm_reg_current() call.  This shrinks and speeds
the affected code.  It can also prevent some coredumps coming from
invalid CPSR values ... the ARMV4_5_CORE_REG_MODE() macro returns
bogus registers if e.g. "Secure Monitor" mode isn't supported by
the current CPU.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm7_9_common.c
src/target/arm920t.c
src/target/cortex_a8.c