summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p/riscv_test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/riscv_test.h b/p/riscv_test.h
index 0a5bf51..1da083c 100644
--- a/p/riscv_test.h
+++ b/p/riscv_test.h
@@ -121,10 +121,10 @@ handle_exception: \
j write_tohost; \
reset_vector: \
RISCV_MULTICORE_DISABLE; \
- CHECK_XLEN; \
li TESTNUM, 0; \
la t0, trap_vector; \
csrw mtvec, t0; \
+ CHECK_XLEN; \
csrwi medeleg, 0; \
csrwi mideleg, 0; \
csrwi mie, 0; \