From 402b4e8600281cb793bba0e493b37989a0db917f Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 12 Apr 2011 18:27:26 -0700 Subject: [PATCH] [xcc,pk,sim] added privileged cflush instruction --- riscv/execute.h | 9 +++++++++ riscv/insns/cflush.h | 1 + 2 files changed, 10 insertions(+) create mode 100644 riscv/insns/cflush.h 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; -- 2.30.2