riscv-openocd/src
Mike Dunn e1c6f6783d xscale: mark xscale registers invalid on debug entry
Hi everyone,

This simple patch fixes a problem I noticed on the xscale where incorrect values
are sometimes reported by the reg command.  The problem can occur when
requesting the value of registers in the xscale-specific register cache.  With a
couple of exceptions, none of the registers in the xscale register cache are
automatically retrieved on debug entry.  This is probably fine, as they are
unlikely to be needed on a regular basis during a typical debug session, and
they can be retrieved when explicitly requested by name using the reg command.
The problem is that once this is done, the register remains marked as valid for
the remainder of the OpenOCD session, and the reg command will henceforth always
report the same value because it is obtained from the cache and is never again
retrieved from the debug handler on the target.

The fix is to mark all registers in the xscale register cache as invalid on
debug entry (before the two exceptions are retrieved), thus forcing retrieval
(when requested) from the target across resumptions in execution, and avoiding
the reporting of stale values.

Small addition change by Øyvind: change 'i' to unsigned to fix compiler
warning for xscale_debug_entry() fn.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2010-09-09 09:22:11 +02:00
..
flash Numonyx M29W160ET patch 2010-09-03 22:08:30 +02:00
helper ioutil: fix internal fn names 2010-08-02 11:59:46 +02:00
jtag Remove duplicated initialization 2010-09-08 10:34:43 +02:00
pld PLD: review scope of functions 2010-04-10 17:06:16 +08:00
server gdbserver: incorrect memory map for multiple targets (bug #24) 2010-07-05 14:16:15 +01:00
svf svf: -Wshadow warning fixes 2010-06-16 08:17:27 +02:00
target xscale: mark xscale registers invalid on debug entry 2010-09-09 09:22:11 +02:00
xsvf xsvf: Fix shadow issues on Mac 2010-06-22 08:24:26 +02:00
Makefile.am Driver for USB-JTAG, Altera USB-Blaster and compatibles 2009-12-26 15:05:06 -08:00
ecosboard.c util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
hello.c HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
hello.h HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
main.c add openocd.h for top-level declarations 2009-11-14 07:29:16 -08:00
openocd.c util: ms command to calculate length of operations 2010-08-01 09:35:58 +02:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00