arch-riscv: added dummy implementation of wfi instruction.
authorNils Asmussen <nils.asmussen@barkhauseninstitut.org>
Sat, 21 Mar 2020 11:25:22 +0000 (12:25 +0100)
committerNils Asmussen <nils.asmussen@barkhauseninstitut.org>
Wed, 29 Apr 2020 11:41:55 +0000 (11:41 +0000)
Change-Id: I7ca86f57c7d794bf544e34e747875049a3f29d6a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25653
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>

src/arch/riscv/isa/decoder.isa

index 04f0319428d1392ac5375dad0078cab441558955..870615582417fc7802414b81c66aec96bbb949d8 100644 (file)
@@ -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);