]> git.sur5r.net Git - openocd/commit
target: simplify register get/set ops
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 17 Nov 2009 17:06:45 +0000 (09:06 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 17 Nov 2009 17:06:45 +0000 (09:06 -0800)
commitf4788652e45662d1e43933dc0620561bc4cddae0
tree0cda3c8b5ad766f3dea26d83c2a70b7cb52837d7
parent959b373f8cdc2c1ad11c67c6916f88f48769438f
target: simplify register get/set ops

No need to indirect from registered integers to pointers.
Just stash the pointers directly in the register struct,
and don't even bother registering.

This is a small code shrink, speeds register access just
a smidgeon, and gets rid of another rude exit() path.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
14 files changed:
src/server/gdb_server.c
src/target/arm11.c
src/target/armv4_5.c
src/target/armv7a.c
src/target/armv7m.c
src/target/cortex_m3.c
src/target/embeddedice.c
src/target/etb.c
src/target/etm.c
src/target/mips32.c
src/target/register.c
src/target/register.h
src/target/target.c
src/target/xscale.c