diff options
Diffstat (limited to 'isa/rv64mi')
-rw-r--r-- | isa/rv64mi/ma_addr.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isa/rv64mi/ma_addr.S b/isa/rv64mi/ma_addr.S index 721ac6a..f02a1af 100644 --- a/isa/rv64mi/ma_addr.S +++ b/isa/rv64mi/ma_addr.S @@ -99,10 +99,12 @@ mtvec_handler: bne t0, s1, fail csrr t0, mbadaddr + beqz t0, 1f bne t0, t1, fail lb t0, (t0) beqz t0, fail +1: csrw mepc, t2 mret |