From 3dc00e7b04834f862a074ac8822892e1ecfc009c Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 7 Jul 2016 19:29:03 -0700 Subject: [PATCH] Update WFI test for priv v1.9 --- env | 2 +- isa/rv32mi/Makefrag | 1 - isa/rv32mi/wfi.S | 8 -------- isa/rv64si/wfi.S | 5 +++-- 4 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 isa/rv32mi/wfi.S diff --git a/env b/env index 5c613fe..92fb0bd 160000 --- a/env +++ b/env @@ -1 +1 @@ -Subproject commit 5c613fe43d1bc44e6ae408b5356c7d60d93a1ca0 +Subproject commit 92fb0bd7d7d2723f90896bb351f5cdb0eb36b73b diff --git a/isa/rv32mi/Makefrag b/isa/rv32mi/Makefrag index 9aeb12d..c8fbcf4 100644 --- a/isa/rv32mi/Makefrag +++ b/isa/rv32mi/Makefrag @@ -12,7 +12,6 @@ rv32mi_sc_tests = \ scall \ sbreak \ shamt \ - wfi \ rv32mi_mc_tests = \ ipi \ diff --git a/isa/rv32mi/wfi.S b/isa/rv32mi/wfi.S deleted file mode 100644 index d5cb3cb..0000000 --- a/isa/rv32mi/wfi.S +++ /dev/null @@ -1,8 +0,0 @@ -# See LICENSE for license details. - -#include "riscv_test.h" -#undef RVTEST_RV64S -#define RVTEST_RV64S RVTEST_RV32M -#define __MACHINE_MODE - -#include "../rv64si/wfi.S" diff --git a/isa/rv64si/wfi.S b/isa/rv64si/wfi.S index 8e56909..0302034 100644 --- a/isa/rv64si/wfi.S +++ b/isa/rv64si/wfi.S @@ -13,9 +13,10 @@ RVTEST_RV64S RVTEST_CODE_BEGIN - # Make sure wfi doesn't stall if an interrupt is pending, even if masked + # Make sure wfi doesn't halt the hart, even if interrupts are disabled csrc sstatus, SSTATUS_SIE - csrs sip, MIP_SSIP + csrs sie, SIP_SSIP + csrs sip, SIP_SSIP wfi RVTEST_PASS -- 2.30.2