1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test misaligned vector sd trap.
8 #include "riscv_test.h"
9 #include "test_macros.h"
14 setpcr status, SR_EA # enable accelerator
15 setpcr status, SR_EI # enable interrupt
18 mtpcr a3,evec # set exception handler
22 slli a4,a4,SR_IM_SHIFT
23 or a3,a3,a4 # enable IM[COP]
55 li a4,HWACHA_CAUSE_MISALIGNED_STORE
63 # make sure vector unit has cleared out
112 .dword 0xdeadbeefcafebabe
113 .dword 0xdeadbeefcafebabe
114 .dword 0xdeadbeefcafebabe
115 .dword 0xdeadbeefcafebabe