1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test illegal tvec command trap.
10 #include "riscv_test.h"
11 #include "test_macros.h"
17 csrw stvec,a3 # set exception handler
27 vxcptcause a3 # privileged inst
40 li a4,HWACHA_CAUSE_PRIVILEGED_INSTRUCTION
45 la a4, privileged_inst
49 # make sure vector unit has cleared out
98 .dword 0xdeadbeefcafebabe
99 .dword 0xdeadbeefcafebabe
100 .dword 0xdeadbeefcafebabe
101 .dword 0xdeadbeefcafebabe