1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test misaligned vt instruction trap.
8 #include "riscv_test.h"
9 #include "test_macros.h"
14 setpcr status, SR_EI # enable interrupt
17 mtpcr a3,evec # set exception handler
21 slli a4,a4,SR_IM_SHIFT
22 or a3,a3,a4 # enable IM[COP]
44 li a4,HWACHA_CAUSE_VF_MISALIGNED_FETCH
52 # make sure vector unit has cleared out
101 .dword 0xdeadbeefcafebabe
102 .dword 0xdeadbeefcafebabe
103 .dword 0xdeadbeefcafebabe
104 .dword 0xdeadbeefcafebabe