aboutsummaryrefslogtreecommitdiff
path: root/debug_rom
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-24 14:37:23 -0700
committerTim Newsome <tim@sifive.com>2016-05-24 14:37:23 -0700
commit106ece891aa9ddcd78c65251425ef365298c30dd (patch)
tree0d85ae880e285c40a61e5ccf1b8b4531f130ca6b /debug_rom
parent8e11417db5e63af0abfb15915ba40f497cf8a646 (diff)
downloadriscv-isa-sim-106ece891aa9ddcd78c65251425ef365298c30dd.zip
riscv-isa-sim-106ece891aa9ddcd78c65251425ef365298c30dd.tar.gz
riscv-isa-sim-106ece891aa9ddcd78c65251425ef365298c30dd.tar.bz2
New encoding.h for new CSR addresses.
Diffstat (limited to 'debug_rom')
-rwxr-xr-xdebug_rom/debug_rom.S2
-rw-r--r--debug_rom/debug_rom.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index e7547a0..9c32691 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -64,7 +64,7 @@ check_halt:
exit:
# Restore s0.
csrr s0, CSR_DSCRATCH
- .word 0x79200073 # TODO: dret
+ dret
_entry:
# Save s0 in DSCRATCH
diff --git a/debug_rom/debug_rom.h b/debug_rom/debug_rom.h
index 20f54cd..a619446 100644
--- a/debug_rom/debug_rom.h
+++ b/debug_rom/debug_rom.h
@@ -5,15 +5,15 @@ static const unsigned char debug_rom_raw[] = {
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,
+ 0x73, 0x24, 0x00, 0x7b, 0x13, 0x74, 0x84, 0x00, 0x63, 0x04, 0x04, 0x00,
+ 0x6f, 0x00, 0x80, 0x05, 0x73, 0x24, 0x20, 0x7b, 0x73, 0x00, 0x20, 0x7b,
+ 0x73, 0x10, 0x24, 0x7b, 0x73, 0x24, 0x00, 0x7b, 0x13, 0x74, 0x04, 0x1c,
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,
0x67, 0x00, 0x00, 0x40, 0x73, 0x24, 0x40, 0xf1, 0x23, 0x20, 0x80, 0x10,
- 0x73, 0x60, 0x04, 0x79, 0x73, 0x24, 0x00, 0x79, 0x13, 0x74, 0x04, 0x02,
+ 0x73, 0x60, 0x04, 0x7b, 0x73, 0x24, 0x00, 0x7b, 0x13, 0x74, 0x04, 0x02,
0xe3, 0x0c, 0x04, 0xfe, 0x6f, 0xf0, 0xdf, 0xfb
};
static const unsigned int debug_rom_raw_len = 188;