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]
49 li a4,HWACHA_CAUSE_ILLEGAL_INSTRUCTION
57 # make sure vector unit has cleared out
106 .dword 0xdeadbeefcafebabe
107 .dword 0xdeadbeefcafebabe
108 .dword 0xdeadbeefcafebabe
109 .dword 0xdeadbeefcafebabe