1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test illegal tvec command trap.
8 #include "riscv_test.h"
9 #include "test_macros.h"
18 csrw evec,a3 # set exception handler
22 slli a4,a4,SR_IM_SHIFT
23 or a3,a3,a4 # enable IM[COP]
31 vxcptcause a3 # privileged inst
44 li a4,HWACHA_CAUSE_PRIVILEGED_INSTRUCTION
49 la a4, privileged_inst
53 # make sure vector unit has cleared out
102 .dword 0xdeadbeefcafebabe
103 .dword 0xdeadbeefcafebabe
104 .dword 0xdeadbeefcafebabe
105 .dword 0xdeadbeefcafebabe