diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-02 15:05:38 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-05-02 15:05:38 -0700 |
commit | ef625f6968e0a862b324d0d855f5edde13191e1f (patch) | |
tree | cd197074b3629954ab38d2d63eaa8f870854aef6 /isa | |
parent | e38b55f9b10204171b74343a5a73d041b7186caf (diff) | |
download | riscv-tests-ef625f6968e0a862b324d0d855f5edde13191e1f.zip riscv-tests-ef625f6968e0a862b324d0d855f5edde13191e1f.tar.gz riscv-tests-ef625f6968e0a862b324d0d855f5edde13191e1f.tar.bz2 |
Remove incorrect M-mode WFI test
MSIP isn't supposed to be writable locally!
Diffstat (limited to 'isa')
-rw-r--r-- | isa/rv64mi/Makefrag | 1 | ||||
-rw-r--r-- | isa/rv64mi/wfi.S | 8 | ||||
-rw-r--r-- | isa/rv64si/wfi.S | 9 |
3 files changed, 0 insertions, 18 deletions
diff --git a/isa/rv64mi/Makefrag b/isa/rv64mi/Makefrag index ed973db..01f75c2 100644 --- a/isa/rv64mi/Makefrag +++ b/isa/rv64mi/Makefrag @@ -10,7 +10,6 @@ rv64mi_sc_tests = \ ma_fetch \ ma_addr \ scall \ - wfi \ sbreak \ rv64mi_mc_tests = \ diff --git a/isa/rv64mi/wfi.S b/isa/rv64mi/wfi.S deleted file mode 100644 index bfb130e..0000000 --- a/isa/rv64mi/wfi.S +++ /dev/null @@ -1,8 +0,0 @@ -# See LICENSE for license details. - -#include "riscv_test.h" -#undef RVTEST_RV64S -#define RVTEST_RV64S RVTEST_RV64M -#define __MACHINE_MODE - -#include "../rv64si/wfi.S" diff --git a/isa/rv64si/wfi.S b/isa/rv64si/wfi.S index 6b1e818..8e56909 100644 --- a/isa/rv64si/wfi.S +++ b/isa/rv64si/wfi.S @@ -13,15 +13,6 @@ RVTEST_RV64S RVTEST_CODE_BEGIN -#ifdef __MACHINE_MODE - #define sstatus mstatus - #define sip mip - #undef MIP_SSIP - #define MIP_SSIP MIP_MSIP - #undef SSTATUS_SIE - #define SSTATUS_SIE MSTATUS_MIE -#endif - # Make sure wfi doesn't stall if an interrupt is pending, even if masked csrc sstatus, SSTATUS_SIE csrs sip, MIP_SSIP |