aboutsummaryrefslogtreecommitdiff
path: root/debug_rom
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-04-23 10:25:57 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:11 -0700
commitdf640b0cacf4ac6903b21c28e23fd9ef6861f94f (patch)
tree5ad82f2b5c82fb2ee2f65de3a9b9b4b507945b46 /debug_rom
parent7facb160390cbd6a1b19d62966fe5140425ee72a (diff)
downloadspike-df640b0cacf4ac6903b21c28e23fd9ef6861f94f.zip
spike-df640b0cacf4ac6903b21c28e23fd9ef6861f94f.tar.gz
spike-df640b0cacf4ac6903b21c28e23fd9ef6861f94f.tar.bz2
Jump to the correct (temporary) Debug RAM address.
Diffstat (limited to 'debug_rom')
-rwxr-xr-xdebug_rom/debug_rom.S3
-rw-r--r--debug_rom/debug_rom.h10
2 files changed, 7 insertions, 6 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index 230f4b4..16890cf 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -13,7 +13,8 @@
#define MCPUID 0xf00
#define MHARTID 0xf10
-#define DEBUG_RAM 0x400
+# TODO: Should be 0x400
+#define DEBUG_RAM (-0x400)
#define DEBUG_RAM_SIZE 64
#define SETHALTNOT 0x100
diff --git a/debug_rom/debug_rom.h b/debug_rom/debug_rom.h
index 1c53e11..96eb972 100644
--- a/debug_rom/debug_rom.h
+++ b/debug_rom/debug_rom.h
@@ -1,16 +1,16 @@
static const unsigned char debug_rom_raw[] = {
0x6f, 0x00, 0x40, 0x05, 0xf3, 0x24, 0x00, 0xf1, 0x23, 0x24, 0x90, 0x10,
0xf3, 0x24, 0x00, 0x79, 0x93, 0xf4, 0x04, 0x40, 0x63, 0x94, 0x04, 0x08,
- 0xf3, 0x24, 0x00, 0xf0, 0x63, 0xc6, 0x04, 0x00, 0x83, 0x24, 0xc0, 0x43,
+ 0xf3, 0x24, 0x00, 0xf0, 0x63, 0xc6, 0x04, 0x00, 0x83, 0x24, 0xc0, 0xc3,
0x6f, 0x00, 0x80, 0x01, 0x93, 0x94, 0x14, 0x00, 0x63, 0xc6, 0x04, 0x00,
- 0x83, 0x34, 0x80, 0x43, 0x6f, 0x00, 0x80, 0x00, 0x13, 0x00, 0x00, 0x00,
+ 0x83, 0x34, 0x80, 0xc3, 0x6f, 0x00, 0x80, 0x00, 0x13, 0x00, 0x00, 0x00,
0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x84, 0x00, 0x63, 0x04, 0x04, 0x00,
0x6f, 0x00, 0x40, 0x05, 0x73, 0x24, 0x20, 0x79, 0x73, 0x00, 0x00, 0x10,
0x73, 0x10, 0x24, 0x79, 0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x74, 0x00,
0x13, 0x04, 0xd4, 0xff, 0x63, 0x16, 0x04, 0x02, 0x73, 0x24, 0x00, 0xf0,
- 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, 0x67, 0x00, 0x00, 0x40,
+ 0x63, 0x46, 0x04, 0x00, 0x23, 0x2e, 0x90, 0xc2, 0x67, 0x00, 0x00, 0xc0,
+ 0x13, 0x14, 0x14, 0x00, 0x63, 0x46, 0x04, 0x00, 0x23, 0x3c, 0x90, 0xc2,
+ 0x67, 0x00, 0x00, 0xc0, 0x13, 0x00, 0x00, 0x00, 0x67, 0x00, 0x00, 0xc0,
0x73, 0x24, 0x00, 0xf1, 0x23, 0x20, 0x80, 0x10, 0x73, 0xe0, 0x01, 0x79,
0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x04, 0x40, 0xe3, 0x0c, 0x04, 0xfe,
0x6f, 0xf0, 0x1f, 0xfc