[xcc,pk,sim] added privileged cflush instruction
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Wed, 13 Apr 2011 01:27:26 +0000 (18:27 -0700)
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Wed, 13 Apr 2011 01:27:26 +0000 (18:27 -0700)
riscv/execute.h
riscv/insns/cflush.h [new file with mode: 0644]

index 96aa83504414d56930c0351ad3d2bf08ed376db5..1005a5351862de977f4c6beee6ed6bd24b7fe56c 100644 (file)
@@ -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 (file)
index 0000000..5117ca0
--- /dev/null
@@ -0,0 +1 @@
+require_supervisor;