summaryrefslogtreecommitdiff
path: root/src/flash/orion_nand.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2009-10-27 01:14:34 -0400
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-10-26 23:53:32 -0700
commit68937cadfb42026b4c8b2c9e43acaf3fb409c4db (patch)
tree4f78458325e2cd14b4a1362131aef9c17b6e015e /src/flash/orion_nand.c
parent068a6c7895607a6af6758ad18bace683f6b7499d (diff)
downloadopenocd+libswd-68937cadfb42026b4c8b2c9e43acaf3fb409c4db.tar.gz
openocd+libswd-68937cadfb42026b4c8b2c9e43acaf3fb409c4db.tar.bz2
openocd+libswd-68937cadfb42026b4c8b2c9e43acaf3fb409c4db.tar.xz
openocd+libswd-68937cadfb42026b4c8b2c9e43acaf3fb409c4db.zip
ARM: fix Thumb mode handling when single-stepping register based branch insns
Currently, OpenOCD is always caching the PC value without the T bit. This means that assignment to the PC register must clear that bit and set the processor state to Thumb when it is set. And when the PC register value is transferred to another register or stored into memory then the T bit must be restored. Discussion: It is arguable if OpenOCd should have preserved the original PC value which would have greatly simplified this code. The processor state could then be obtained simply by getting at bit 0 of the PC. This however would require special handling elsewhere instead since the T bit is not always relevant (like when PC is used with ALU insns or as an index with some addressing modes). It is unclear which way would be simpler in the end. Signed-off-by: Nicolas Pitre <nico@marvell.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash/orion_nand.c')
0 files changed, 0 insertions, 0 deletions