From b3e14827904c2b1247171f4f1522be397349e7ea Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 2 Mar 2017 15:47:25 -0800 Subject: Check XLEN only after initializing mtvec --- p/riscv_test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p') 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; \ -- cgit v1.1