]> git.sur5r.net Git - openocd/commit - src/target/armv7a.h
ARM: simplify ARMv7-A register handling
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 18 Nov 2009 22:46:14 +0000 (14:46 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 18 Nov 2009 22:46:14 +0000 (14:46 -0800)
commitf5093e160534c269b8bc3590f5809ed3baead56f
tree994cd3a356b5838f0f6a4aec07ef99de15f84ffe
parent8a6d4ced4c0d17626c3875d5f8819efa3ac0f155
ARM: simplify ARMv7-A register handling

ARMv7-A doesn't need to duplicate all the standard ARM code
for register handling.

 - Switch Cortex-A8 to use the standard register code
 - Remove duplicated infrastructure from ARMv7-A
 - Have ARMv7-A arch_state() show CPSR, like other ARMs

Add comments to show where the Cortex-A8 isn't actually doing
the right thing for register reads/writes, unless core happens
to be in the right mode to start with.  (Looks like maybe there
may be generic confusion between saved/current PSR values in all
the ARM code ...)

Make related ARMv7-A and Cortex-A8 symbols properly static.

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