]> git.sur5r.net Git - openocd/commit
target: create/use register_cache_invalidate()
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 20 Nov 2009 03:02:10 +0000 (19:02 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 20 Nov 2009 03:02:10 +0000 (19:02 -0800)
commit71cde5e359f273585880ea8986709b950ba85b08
treeb04f841ddfe6c0900f48b676cbb6c84d12eea7a3
parent31fb7788a605fe1c0c405444b5bab51a7e42d481
target: create/use register_cache_invalidate()

Create a generic register_cache_invalidate(), and use it to
replace three all-but-identical core-specific routines:

 - armv4_5_invalidate_core_regs()
 - armv7m_invalidate_core_regs
 - mips32_invalidate_core_regs() too.

Make cache->num_regs be unsigned, avoiding various errors.

Net code shrink and simplification.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
14 files changed:
src/target/arm7_9_common.c
src/target/armv4_5.c
src/target/armv4_5.h
src/target/armv7m.c
src/target/cortex_a8.c
src/target/cortex_m3.c
src/target/etm.c
src/target/mips32.c
src/target/mips32.h
src/target/mips_m4k.c
src/target/register.c
src/target/register.h
src/target/target.c
src/target/xscale.c