aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-04-18 11:34:31 -0700
committerMegan Wachs <megan@sifive.com>2017-04-18 11:34:31 -0700
commit8fda4e00ea7326d6f2a2867c7482559bf5b0b401 (patch)
treed83c35ab64be203533380cc8c77e54e10c8c565a /riscv/decode.h
parent3526283513b12afc57c3430c70190fe1630564e6 (diff)
downloadriscv-isa-sim-8fda4e00ea7326d6f2a2867c7482559bf5b0b401.zip
riscv-isa-sim-8fda4e00ea7326d6f2a2867c7482559bf5b0b401.tar.gz
riscv-isa-sim-8fda4e00ea7326d6f2a2867c7482559bf5b0b401.tar.bz2
debug: Checkpoint which somewhat works with OpenOCD v13, but still has some bugs.
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index 551f451..45d1c58 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -249,13 +249,6 @@ inline freg_t freg(freg_t f) { return f; }
// Seems that 0x0 doesn't work.
#define DEBUG_START 0x100
-#define DEBUG_ROM_ENTRY 0x400
-#define DEBUG_ROM_ENTRY_SIZE (1024 * 4)
-#define DEBUG_ROM_CODE (DEBUG_ROM_ENTRY + DEBUG_ROM_ENTRY_SIZE)
-#define DEBUG_ROM_CODE_SIZE 256
-#define DEBUG_ROM_EXCEPTION (DEBUG_ROM_CODE + DEBUG_ROM_CODE_SIZE)
-#define DEBUG_ROM_EXCEPTION_SIZE 4
-
#define DEBUG_DATA_START 0x380
#define DEBUG_DATA_SIZE 0x20
#define DEBUG_DATA_END DEBUG_DATA_START + DEBUG_DATA_SIZE
@@ -264,6 +257,10 @@ inline freg_t freg(freg_t f) { return f; }
#define DEBUG_PROGBUF_START DEBUG_DATA_START - DEBUG_PROGBUF_SIZE
#define DEBUG_PROGBUF_END DEBUG_PROGBUF_START + DEBUG_PROGBUF_SIZE
-#define DEBUG_END 0x2000 - 1
+#define DEBUG_ABSTRACT_SIZE 2*4
+#define DEBUG_ABSTRACT_START (DEBUG_PROGBUF_START - DEBUG_ABSTRACT_SIZE)
+#define DEBUG_ABSTRACT_END (DEBUG_ABSTRACT_START + DEBUG_ABSTRACT_SIZE)
+
+#define DEBUG_END (0x1000 - 1)
#endif