diff --git a/src/main/scala/rocket/CustomInstructions.scala b/src/main/scala/rocket/CustomInstructions.scala new file mode 100644 index 00000000000..a89c901b011 --- /dev/null +++ b/src/main/scala/rocket/CustomInstructions.scala @@ -0,0 +1,12 @@ +// See LICENSE.SiFive for license details. +// See LICENSE.Berkeley for license details. + +package freechips.rocketchip.rocket + +import Chisel._ + +object CustomInstructions { + def CEASE = BitPat("b00110000010100000000000001110011") + def CFLUSH_D_L1 = BitPat("b111111000000?????000000001110011") + def CDISCARD_D_L1 = BitPat("b111111000010?????000000001110011") +} diff --git a/src/main/scala/rocket/IDecode.scala b/src/main/scala/rocket/IDecode.scala index 4533a67058b..6878fedc743 100644 --- a/src/main/scala/rocket/IDecode.scala +++ b/src/main/scala/rocket/IDecode.scala @@ -9,6 +9,7 @@ import freechips.rocketchip.tile.HasCoreParameters import freechips.rocketchip.util._ import freechips.rocketchip.scie.SCIE import Instructions._ +import CustomInstructions._ import ALU._ abstract trait DecodeConstants extends HasCoreParameters