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
33 li a4,HWACHA_CAUSE_ILLEGAL_CFG
41 # make sure vector unit has cleared out
90 .dword 0xdeadbeefcafebabe
91 .dword 0xdeadbeefcafebabe
92 .dword 0xdeadbeefcafebabe
93 .dword 0xdeadbeefcafebabe