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]
43 li a4,HWACHA_CAUSE_ILLEGAL_CFG
51 # make sure vector unit has cleared out
100 .dword 0xdeadbeefcafebabe
101 .dword 0xdeadbeefcafebabe
102 .dword 0xdeadbeefcafebabe
103 .dword 0xdeadbeefcafebabe