summaryrefslogtreecommitdiff
path: root/src/arch/riscv/isa_traits.hh
diff options
context:
space:
mode:
authorAlec Roelke <ar4jc@virginia.edu>2016-11-30 17:10:28 -0500
committerAlec Roelke <ar4jc@virginia.edu>2016-11-30 17:10:28 -0500
commit126c0360e2efd9588f38128bad94c7fa82c79f25 (patch)
tree0bd6e50edf0a0f9d0b961bb0c0dd0926b2635013 /src/arch/riscv/isa_traits.hh
parent535e6c5fa4f05ae17b8b0ce6c4fd85e2cfb0189b (diff)
downloadgem5-126c0360e2efd9588f38128bad94c7fa82c79f25.tar.xz
riscv: [Patch 5/5] Added missing support for timing CPU models
Last of five patches adding RISC-V to GEM5. This patch adds support for timing, minor, and detailed CPU models that was missing in the last four, which basically consists of handling timing-mode memory accesses and telling the minor and detailed models what a no-op instruction should be (addi zero, zero, 0). Patches 1-4 introduced RISC-V and implemented the base instruction set, RV64I, and added the multiply, floating point, and atomic memory extensions, RV64MAFD. [Fixed compatibility with edit from patch 1.] [Fixed compatibility with hg copy edit from patch 1.] [Fixed some style errors in locked_mem.hh.] Signed-off by: Alec Roelke Signed-off by: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/riscv/isa_traits.hh')
-rw-r--r--src/arch/riscv/isa_traits.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/riscv/isa_traits.hh b/src/arch/riscv/isa_traits.hh
index a794a1889..f7a2c8762 100644
--- a/src/arch/riscv/isa_traits.hh
+++ b/src/arch/riscv/isa_traits.hh
@@ -63,6 +63,8 @@ using namespace LittleEndianGuest;
const Addr PageShift = 12;
const Addr PageBytes = ULL(1) << PageShift;
+const ExtMachInst NoopMachInst = 0x00000013;
+
// Memory accesses can not be unaligned
const bool HasUnalignedMemAcc = false;