From 5b41112e036b4d18f36e908dbc7412790d2767e4 Mon Sep 17 00:00:00 2001 From: Roger Chang Date: Tue, 19 Sep 2023 14:12:57 +0800 Subject: [PATCH] arch-riscv: Make RISC-V decodeInst overridable The change will allow developers to implement and decode their non-standard instructions to the CPU models Bug: 289467440 Test: None Change-Id: I67f4abc71596f819c1265e325784f51c8e9bb359 --- src/arch/riscv/decoder.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv/decoder.hh b/src/arch/riscv/decoder.hh index 6ce72ee35a..c827e85f90 100644 --- a/src/arch/riscv/decoder.hh +++ b/src/arch/riscv/decoder.hh @@ -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.