diff options
author | Tim Newsome <tim@sifive.com> | 2016-05-01 12:05:48 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-05-23 12:12:11 -0700 |
commit | 990c6c48098e83584edf5282d119187abae04a4d (patch) | |
tree | d2ba581b281dce0c329822f98cc7c21faf868323 /debug_rom/debug_rom.S | |
parent | 57ff1b6595e485b8b002238ddbd10483bbd62fb3 (diff) | |
download | spike-990c6c48098e83584edf5282d119187abae04a4d.zip spike-990c6c48098e83584edf5282d119187abae04a4d.tar.gz spike-990c6c48098e83584edf5282d119187abae04a4d.tar.bz2 |
Have Debug memory kind of working again.
Debug exception -> ROM -> RAM -> ROM, then something goes wrong.
Diffstat (limited to 'debug_rom/debug_rom.S')
-rwxr-xr-x | debug_rom/debug_rom.S | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S index a3339b4..832ac49 100755 --- a/debug_rom/debug_rom.S +++ b/debug_rom/debug_rom.S @@ -12,13 +12,11 @@ #define DSCRATCH 0x792 -# TODO: Should be 0x400 -#define DEBUG_RAM (-0x400) +#define DEBUG_RAM 0x400 #define DEBUG_RAM_SIZE 64 -# TODO: Should be 0x100, 0x108 -#define SETHALTNOT (-0x100) -#define CLEARDEBINT (-0x108) +#define SETHALTNOT 0x100 +#define CLEARDEBINT 0x108 .global entry .global resume @@ -58,7 +56,8 @@ check_halt: exit: # Restore s0. csrr s0, DSCRATCH - eret + # TODO: dret? + mret _entry: |