aboutsummaryrefslogtreecommitdiff
path: root/src/target/xscale.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2013-06-23 23:17:55 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2013-07-01 08:44:59 +0000
commit12e25f34ebc9a62ac327d51229c32deda009addc (patch)
tree472148fb8cb84ad76ad5fec1e2423dbc11c6f8cc /src/target/xscale.h
parentffcfbb02152a6696e4e3e6cba359ec89ffd54739 (diff)
downloadriscv-openocd-12e25f34ebc9a62ac327d51229c32deda009addc.zip
riscv-openocd-12e25f34ebc9a62ac327d51229c32deda009addc.tar.gz
riscv-openocd-12e25f34ebc9a62ac327d51229c32deda009addc.tar.bz2
target: xscale more human vector catching
Replace hexadecimal masks for vector catching with words representing the caught exception, such as dabt for data abort, etc ... This way, the new xscale command is : - xscale vector_catch Reads back to the user the current vector catching status - xscale vector_catch reset dabt pabt Sets the caught vectors to data abort and prefetch abort for example. This is mostly taken from Cortex-M3 openocd code. Change-Id: I66591d5796f0e07f0f31edc8d28722e1e48aa8c5 Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Reviewed-on: http://openocd.zylin.com/1456 Tested-by: jenkins Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/xscale.h')
-rw-r--r--src/target/xscale.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/target/xscale.h b/src/target/xscale.h
index c5cd7b7..a71ec35 100644
--- a/src/target/xscale.h
+++ b/src/target/xscale.h
@@ -176,4 +176,15 @@ enum {
#define ERROR_XSCALE_NO_TRACE_DATA (-700)
+/* DCSR bit and field definitions */
+#define DCSR_TR (1 << 16)
+#define DCSR_TU (1 << 17)
+#define DCSR_TS (1 << 18)
+#define DCSR_TA (1 << 19)
+#define DCSR_TD (1 << 20)
+#define DCSR_TI (1 << 22)
+#define DCSR_TF (1 << 23)
+#define DCSR_TRAP_MASK \
+ (DCSR_TF | DCSR_TI | DCSR_TD | DCSR_TA | DCSR_TS | DCSR_TU | DCSR_TR)
+
#endif /* XSCALE_H */