1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test wait-for-interrupt instruction.
10 #include "riscv_test.h"
11 #include "test_macros.h"
17 #define sstatus mstatus
21 #define MIP_SSIP MIP_MSIP
24 # Make sure wfi doesn't stall if an interrupt is pending
25 csrc sstatus, SSTATUS_IE