diff options
author | Gabe Black <gabeblack@google.com> | 2018-01-29 15:17:08 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-01-29 23:49:36 +0000 |
commit | 89f2871168bcd2a69f3edc2e9f12f3bc66101128 (patch) | |
tree | fe9d4e09989b87e978afc345f217184209a57e93 /src/arch/riscv/insts | |
parent | cca6459b4fe68593137cb0f3ede7d1415cdbd522 (diff) | |
download | gem5-89f2871168bcd2a69f3edc2e9f12f3bc66101128.tar.xz |
riscv: Add overrides to various StaticInst methods.
This makes riscv compile with the version of clang(++) I have on my
workstation.
Change-Id: I0478616810fbc8a715fd61323b7e0f73676c8328
Reviewed-on: https://gem5-review.googlesource.com/7643
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/riscv/insts')
-rw-r--r-- | src/arch/riscv/insts/static_inst.hh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/arch/riscv/insts/static_inst.hh b/src/arch/riscv/insts/static_inst.hh index bf34c9bae..073b60c1c 100644 --- a/src/arch/riscv/insts/static_inst.hh +++ b/src/arch/riscv/insts/static_inst.hh @@ -75,23 +75,27 @@ class RiscvMacroInst : public RiscvStaticInst ~RiscvMacroInst() { microops.clear(); } - StaticInstPtr fetchMicroop(MicroPC upc) const { return microops[upc]; } + StaticInstPtr + fetchMicroop(MicroPC upc) const override + { + return microops[upc]; + } Fault - initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const + initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const override { panic("Tried to execute a macroop directly!\n"); } Fault completeAcc(PacketPtr pkt, ExecContext *xc, - Trace::InstRecord *traceData) const + Trace::InstRecord *traceData) const override { panic("Tried to execute a macroop directly!\n"); } Fault - execute(ExecContext *xc, Trace::InstRecord *traceData) const + execute(ExecContext *xc, Trace::InstRecord *traceData) const override { panic("Tried to execute a macroop directly!\n"); } |