From: Nils Asmussen Date: Sat, 21 Mar 2020 11:25:22 +0000 (+0100) Subject: arch-riscv: added dummy implementation of wfi instruction. X-Git-Tag: v20.0.0.0~115 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c11aed1931c3572b4273c66f0f970dd32e1dbd50;p=gem5.git 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 --- 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);