aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--encoding.h10
-rwxr-xr-xparse-opcodes4
2 files changed, 14 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index ae380a6..50b805d 100644
--- a/encoding.h
+++ b/encoding.h
@@ -100,6 +100,16 @@
#define EXT_IO_BASE 0x40000000
#define DRAM_BASE 0x80000000
+// breakpoint control fields
+#define BPCONTROL_X 0x00000001
+#define BPCONTROL_W 0x00000002
+#define BPCONTROL_R 0x00000004
+#define BPCONTROL_U 0x00000008
+#define BPCONTROL_S 0x00000010
+#define BPCONTROL_H 0x00000020
+#define BPCONTROL_M 0x00000040
+#define BPCONTROL_MATCHCOND 0x00000180
+
// page table entry (PTE) fields
#define PTE_V 0x001 // Valid
#define PTE_TYPE 0x01E // Type
diff --git a/parse-opcodes b/parse-opcodes
index 66fcd73..f7fdedb 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -93,6 +93,10 @@ csrs = [
(0x704, 'mscycle_delta'),
(0x705, 'mstime_delta'),
(0x706, 'msinstret_delta'),
+ (0x7a0, 'tdrselect'),
+ (0x7a1, 'tdrdata1'),
+ (0x7a2, 'tdrdata2'),
+ (0x7a3, 'tdrdata3'),
(0x7b0, 'dcsr'),
(0x7b1, 'dpc'),
(0x7b2, 'dscratch'),