aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-24 09:39:44 -0700
committerTim Newsome <tim@sifive.com>2016-05-24 09:39:44 -0700
commit8e11417db5e63af0abfb15915ba40f497cf8a646 (patch)
tree6c95ae7d61163b3e4c5d847ab7adc392337c58e0
parent4c3507d350460d4ce32621b8d6e77cd3cd93df7b (diff)
downloadspike-8e11417db5e63af0abfb15915ba40f497cf8a646.zip
spike-8e11417db5e63af0abfb15915ba40f497cf8a646.tar.gz
spike-8e11417db5e63af0abfb15915ba40f497cf8a646.tar.bz2
Move cleardebint, per spec.
-rwxr-xr-xdebug_rom/debug_rom.S2
-rw-r--r--debug_rom/debug_rom.h4
-rw-r--r--riscv/decode.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index 0d97270..e7547a0 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -9,7 +9,7 @@
#define DEBUG_RAM_SIZE 64
#define SETHALTNOT 0x100
-#define CLEARDEBINT 0x108
+#define CLEARDEBINT 0x104
.global entry
.global resume
diff --git a/debug_rom/debug_rom.h b/debug_rom/debug_rom.h
index 7463677..20f54cd 100644
--- a/debug_rom/debug_rom.h
+++ b/debug_rom/debug_rom.h
@@ -1,14 +1,14 @@
static const unsigned char debug_rom_raw[] = {
0x6f, 0x00, 0x00, 0x06, 0x6f, 0x00, 0xc0, 0x00, 0x13, 0x04, 0xf0, 0xff,
0x6f, 0x00, 0x80, 0x00, 0x13, 0x04, 0x00, 0x00, 0xf3, 0x24, 0x40, 0xf1,
- 0x23, 0x24, 0x90, 0x10, 0x0f, 0x00, 0xf0, 0x0f, 0xf3, 0x24, 0x00, 0xf1,
+ 0x23, 0x22, 0x90, 0x10, 0x0f, 0x00, 0xf0, 0x0f, 0xf3, 0x24, 0x00, 0xf1,
0x63, 0xc6, 0x04, 0x00, 0x83, 0x24, 0xc0, 0x43, 0x6f, 0x00, 0xc0, 0x01,
0x93, 0x94, 0x14, 0x00, 0x63, 0xc6, 0x04, 0x00, 0x83, 0x34, 0x80, 0x43,
0x6f, 0x00, 0xc0, 0x00, 0x13, 0x00, 0x00, 0x00, 0x23, 0x2e, 0x80, 0x42,
0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x84, 0x00, 0x63, 0x04, 0x04, 0x00,
0x6f, 0x00, 0x80, 0x05, 0x73, 0x24, 0x20, 0x79, 0x73, 0x00, 0x20, 0x79,
0x73, 0x10, 0x24, 0x79, 0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x04, 0x1c,
- 0x13, 0x04, 0x04, 0xf4, 0x63, 0x18, 0x04, 0x02, 0x0f, 0x10, 0x00, 0x00,
+ 0x13, 0x04, 0xd4, 0xff, 0x63, 0x18, 0x04, 0x02, 0x0f, 0x10, 0x00, 0x00,
0x73, 0x24, 0x00, 0xf1, 0x63, 0x46, 0x04, 0x00, 0x23, 0x2e, 0x90, 0x42,
0x67, 0x00, 0x00, 0x40, 0x13, 0x14, 0x14, 0x00, 0x63, 0x46, 0x04, 0x00,
0x23, 0x3c, 0x90, 0x42, 0x67, 0x00, 0x00, 0x40, 0x13, 0x00, 0x00, 0x00,
diff --git a/riscv/decode.h b/riscv/decode.h
index f4c7640..4480312 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -234,7 +234,7 @@ private:
#define DEBUG_RAM_SIZE 64
#define DEBUG_RAM_END (DEBUG_RAM_START + DEBUG_RAM_SIZE)
#define DEBUG_END 0xfff
-#define DEBUG_CLEARDEBINT 0x108
+#define DEBUG_CLEARDEBINT 0x104
#define DEBUG_SETHALTNOT 0x100
#define DEBUG_SIZE (DEBUG_END - DEBUG_START + 1)