Skip to content

Commit 36b18c8

Browse files

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

isa/rv64mi/breakpoint.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ RVTEST_CODE_BEGIN
2626
1:
2727
csrw mtvec, a0
2828

29+
# Enable interrupts; see https://github.com/riscv/riscv-debug-spec/blob/f510a7dd33317d0eee0f26b4fa082cd43a5ac7ea/Sdtrig.tex#L213-L214
30+
csrsi mstatus, MSTATUS_MIE
31+
2932
# Skip tselect if hard-wired.
3033
csrw tselect, x0
3134
csrr a1, tselect

0 commit comments

Comments
 (0)