From c11aed1931c3572b4273c66f0f970dd32e1dbd50 Mon Sep 17 00:00:00 2001 From: Nils Asmussen Date: Sat, 21 Mar 2020 12:25:22 +0100 Subject: [PATCH] arch-riscv: added dummy implementation of wfi instruction. Change-Id: I7ca86f57c7d794bf544e34e747875049a3f29d6a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25653 Tested-by: kokoro Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com> Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/arch/riscv/isa/decoder.isa | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/riscv/isa/decoder.isa b/src/arch/riscv/isa/decoder.isa index 04f031942..870615582 100644 --- a/src/arch/riscv/isa/decoder.isa +++ b/src/arch/riscv/isa/decoder.isa @@ -1794,6 +1794,9 @@ decode QUADRANT default Unknown::unknown() { NPC = xc->readMiscReg(MISCREG_SEPC); } }}, IsReturn); + 0x5: wfi({{ + // don't do anything for now + }}, No_OpClass); } 0x9: sfence_vma({{ xc->tcBase()->getITBPtr()->demapPage(Rs1, Rs2); -- 2.30.2