openocd/src
Mike Dunn 4f1296d151 xscale: add support for length arg to wp command
This patch adds support for the length argument to the xscale implementation of
the wp command.  Per discussion with David, the length argument specifies the
range of addresses over which a memory access should generate a debug exception.
This patch utilizes the "mask" feature of the xscale debug hardware to implement
the correct functionality of the length argument.  Some limitations imposed by
the hardware are:

   - The length must be a power of two, with a minumum of 4.
   - Two data breakpoint registers are available, allowing for two watchpoints.
     However, if the length of a watchpoint is greater than four, both registers
     are used (the second for a mask value), limiting the number of watchpoints
     to one.

This patch also removes a useless call to xscale_get_reg(dbcon) in
xscale_set_watchpoint() (value had already been read from the register cache,
and the same previously read value is then modified and written back).

I have been using and testing this patch for a couple days.

Questions, corrections, criticisms of course gratefully received.
2010-04-24 16:54:36 +02:00
..
flash stm32x: allow flash probe on a running target 2010-04-20 08:55:48 +02:00
helper HELPER/LOG: review unused symbols 2010-04-10 22:25:22 +08:00
jtag adapter: allow adjusting srst assert with 2010-04-24 16:51:14 +02:00
pld PLD: review scope of functions 2010-04-10 17:06:16 +08:00
server telnet_server: review unused symbols 2010-03-25 07:44:59 +01:00
svf rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
target xscale: add support for length arg to wp command 2010-04-24 16:54:36 +02:00
xsvf jtag: cut down on usage of unintended modification of global end state 2010-03-18 08:43:19 +01:00
ecosboard.c NOR/DRIVERS: review scope of functions 2010-04-10 19:38:15 +08: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
Makefile.am Driver for USB-JTAG, Altera USB-Blaster and compatibles 2009-12-26 15:05:06 -08:00
openocd.c OPENOCD: review scope of functions 2010-04-10 22:04:03 +08:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00