arch-riscv: Make RISC-V decodeInst overridable (#350)

The change will allow developers to implement and decode their
non-standard instructions to the CPU models
This commit is contained in:
Jason Lowe-Power
2023-09-25 06:43:56 -07:00
committed by GitHub

View File

@@ -60,7 +60,7 @@ class Decoder : public InstDecoder
ExtMachInst emi;
uint32_t machInst;
StaticInstPtr decodeInst(ExtMachInst mach_inst);
virtual StaticInstPtr decodeInst(ExtMachInst mach_inst);
/// Decode a machine instruction.
/// @param mach_inst The binary instruction to decode.