aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-07-30 10:27:55 -0700
committerTim Newsome <tim@sifive.com>2022-07-30 10:27:55 -0700
commit4d985feb4e65fd09e6fd9f6f5e9c534c2e522892 (patch)
treef38eeaa3ce49f91d94d12af986adb04467ab8b69
parentc274695b204ce271d0fa272c8b8ff4d02b55f709 (diff)
downloadspike-4d985feb4e65fd09e6fd9f6f5e9c534c2e522892.zip
spike-4d985feb4e65fd09e6fd9f6f5e9c534c2e522892.tar.gz
spike-4d985feb4e65fd09e6fd9f6f5e9c534c2e522892.tar.bz2
DSCRATCH is now called DSCRATCH0
Fixes build.
-rwxr-xr-xdebug_rom/debug_rom.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index 8d8e4cd..2d36139 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -23,7 +23,7 @@ _entry:
// This fence is required because the execution may have written something
// into the Abstract Data or Program Buffer registers.
fence
- csrw CSR_DSCRATCH, s0 // Save s0 to allow signaling MHARTID
+ csrw CSR_DSCRATCH0, s0 // Save s0 to allow signaling MHARTID
// We continue to let the hart know that we are halted in order that
// a DM which was reset is still made aware that a hart is halted.
@@ -46,14 +46,14 @@ _exception:
// Restore S0, which we always save to dscratch.
// We need this in case the user tried an abstract write to a
// non-existent CSR.
- csrr s0, CSR_DSCRATCH
+ csrr s0, CSR_DSCRATCH0
sw zero, DEBUG_ROM_EXCEPTION(zero) // Let debug module know you got an exception.
ebreak
going:
csrr s0, CSR_MHARTID
sw s0, DEBUG_ROM_GOING(zero) // When debug module sees this write, the GO flag is reset.
- csrr s0, CSR_DSCRATCH // Restore s0 here
+ csrr s0, CSR_DSCRATCH0 // Restore s0 here
fence
fence.i
jalr zero, zero, %lo(whereto) // Debug module will put different instructions and data in the RAM,
@@ -63,7 +63,7 @@ going:
_resume:
csrr s0, CSR_MHARTID
sw s0, DEBUG_ROM_RESUMING(zero) // When Debug Module sees this write, the RESUME flag is reset.
- csrr s0, CSR_DSCRATCH // Restore s0
+ csrr s0, CSR_DSCRATCH0 // Restore s0
dret
// END OF ACTUAL "ROM" CONTENTS. BELOW IS JUST FOR LINKER SCRIPT.