From ff0878bcd2744eeef0e875851ac9a98b9b067c7b Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 19 Jun 2026 12:50:05 -0500 Subject: Assorted trap improvements and add Smdbltrp extension --- assembly/trap-test/trap-test.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'assembly/trap-test/trap-test.S') diff --git a/assembly/trap-test/trap-test.S b/assembly/trap-test/trap-test.S index ec928a7..9808498 100644 --- a/assembly/trap-test/trap-test.S +++ b/assembly/trap-test/trap-test.S @@ -1,5 +1,7 @@ la t0,handler csrw mtvec,t0 # Set trap handler address and mode (0/direct) +li t0,0x400 +csrc mstatush,t0 # Enable trap handler li t0,0xdeadbeef # No RAM here lw t1,0(t0) # This should give a load access fault, which should be handled -- cgit v1.2.3