tinyriscv-openocd/src
Nicolas Pitre 68937cadfb 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>
2009-10-26 23:53:32 -07:00
..
flash Added the faux flash driver and target. Used for testing. 2009-10-20 12:23:56 +02:00
helper eCos synthetic target updates. 2009-10-21 12:02:04 +02:00
jtag ft2232: less noise with _DEBUG_JTAG_IO_ 2009-10-26 23:10:40 -07:00
pld - Replace '){' with ') {'. 2009-06-23 22:49:06 +00:00
server Retired gdb_attach. gdb-detach event covers this functionality. 2009-10-13 13:44:15 +02:00
svf SVF: fix parsing hex strings containing leading '0' characters 2009-10-26 11:14:08 -07:00
target ARM: fix Thumb mode handling when single-stepping register based branch insns 2009-10-26 23:53:32 -07:00
xsvf XSVF: use svf_add_statemove() 2009-10-20 20:04:36 -07:00
Makefile.am MinGW: use WinSock2 2009-10-19 17:48:19 -07:00
ecosboard.c disable ZY1000's UART forwarding test code. 2009-10-22 10:23:15 +02:00
main.c Dick Hollenbeck <dick@softplc.com> moved stuff into openocd.c - should never have been in main.c in the first place. DLL will now build. 2009-05-02 19:31:30 +00:00
openocd.c Change most in-tree references from SVN to GIT. 2009-10-08 00:13:50 +00:00