aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/debug_rom.S
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-05-04 09:45:56 -0700
committerTim Newsome <tim@sifive.com>2016-05-23 12:12:12 -0700
commit850e745dcf300cd5369d006b31e17ebfb417eab4 (patch)
tree3607d8bdf46a750c66bb0ae582bd4c233cf96ac0 /debug_rom/debug_rom.S
parentee96c255f12477b1762426ceb7bbd83370c899cd (diff)
downloadspike-850e745dcf300cd5369d006b31e17ebfb417eab4.zip
spike-850e745dcf300cd5369d006b31e17ebfb417eab4.tar.gz
spike-850e745dcf300cd5369d006b31e17ebfb417eab4.tar.bz2
Use fence.i in Debug ROM.
This replaces a hack that just disabled all of the icache.
Diffstat (limited to 'debug_rom/debug_rom.S')
-rwxr-xr-xdebug_rom/debug_rom.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index e7e99d0..c164eeb 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -87,6 +87,7 @@ _entry:
jdebugram:
# Save s1 so that the debug program can use two registers.
+ fence.i
csrr s0, CSR_MISA
bltz s0, save_not_32
save_32: