From: Andrew Waterman Date: Wed, 13 Apr 2011 01:27:26 +0000 (-0700) Subject: [xcc,pk,sim] added privileged cflush instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=402b4e8600281cb793bba0e493b37989a0db917f;p=riscv-isa-sim.git [xcc,pk,sim] added privileged cflush instruction --- diff --git a/riscv/execute.h b/riscv/execute.h index 96aa835..1005a53 100644 --- a/riscv/execute.h +++ b/riscv/execute.h @@ -2438,6 +2438,15 @@ switch((insn.bits >> 0x0) & 0x7f) } throw trap_illegal_instruction; } + case 0x5: + { + if((insn.bits & 0xffffffff) == 0x2fb) + { + #include "insns/cflush.h" + break; + } + throw trap_illegal_instruction; + } default: { throw trap_illegal_instruction; diff --git a/riscv/insns/cflush.h b/riscv/insns/cflush.h new file mode 100644 index 0000000..5117ca0 --- /dev/null +++ b/riscv/insns/cflush.h @@ -0,0 +1 @@ +require_supervisor;