ARM: pass 'struct reg *' to register r/w routines
commit69c751956293e822faa6cf844f2864d81c36a578
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 21 Nov 2009 00:27:24 +0000 (20 16:27 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 21 Nov 2009 00:27:24 +0000 (20 16:27 -0800)
tree5a13deb8230c7a3436e53e9618e27ab6421a08e4
parent85fe1506a2296493d13368e545fa2d4ddb13ea72
ARM: pass 'struct reg *' to register r/w routines

Implementations need to access the register struct they modify;
make it easier and less error-prone to identify the instance.
(This removes over 10% of the ARMV4_5_CORE_REG_MODE nastiness...)

Plus some minor fixes noted when making these updates:  ARM7/ARM9
accessor methods should be static; don't leave CPSR wrongly marked
"dirty"; note significant XScale omissions in register handling;
and have armv4_5_build_reg_cache() record its result.

Rename "struct armv4_5_core_reg" as "struct arm_reg"; it's used
for more than those older architecture generations.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm7_9_common.c
src/target/arm7_9_common.h
src/target/arm7tdmi.c
src/target/arm9tdmi.c
src/target/armv4_5.c
src/target/armv4_5.h
src/target/cortex_a8.c
src/target/xscale.c