1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test illegal tvec command trap.
10 #include "riscv_test.h"
11 #include "test_macros.h"
20 csrw evec,a3 # set exception handler
24 slli a4,a4,SR_IM_SHIFT
25 or a3,a3,a4 # enable IM[COP]
33 vxcptcause a3 # privileged inst
46 li a4,HWACHA_CAUSE_PRIVILEGED_INSTRUCTION
51 la a4, privileged_inst
55 # make sure vector unit has cleared out
104 .dword 0xdeadbeefcafebabe
105 .dword 0xdeadbeefcafebabe
106 .dword 0xdeadbeefcafebabe
107 .dword 0xdeadbeefcafebabe