1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test misaligned ut ld 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]
53 li a4,HWACHA_CAUSE_MISALIGNED_LOAD
61 # make sure vector unit has cleared out
110 .dword 0xdeadbeefcafebabe
111 .dword 0xdeadbeefcafebabe
112 .dword 0xdeadbeefcafebabe
113 .dword 0xdeadbeefcafebabe