Browse Source

[xcc,pk,sim] added privileged cflush instruction

cs250
Andrew Waterman 15 years ago
parent
commit
402b4e8600
  1. 9
      riscv/execute.h
  2. 1
      riscv/insns/cflush.h

9
riscv/execute.h

@ -2438,6 +2438,15 @@ switch((insn.bits >> 0x0) & 0x7f)
} }
throw trap_illegal_instruction; throw trap_illegal_instruction;
} }
case 0x5:
{
if((insn.bits & 0xffffffff) == 0x2fb)
{
#include "insns/cflush.h"
break;
}
throw trap_illegal_instruction;
}
default: default:
{ {
throw trap_illegal_instruction; throw trap_illegal_instruction;

1
riscv/insns/cflush.h

@ -0,0 +1 @@
require_supervisor;
Loading…
Cancel
Save