From 247586274724ea9f2a22a87747c9e074870d16a8 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 16 Oct 2014 05:49:44 -0400 Subject: arch,x86,mem: Dynamically determine the ISA for Ruby store check This patch makes the memory system ISA-agnostic by enabling the Ruby Sequencer to dynamically determine if it has to do a store check. To enable this check, the ISA is encoded as an enum, and the system is able to provide the ISA to the Sequencer at run time. --HG-- rename : src/arch/x86/insts/microldstop.hh => src/arch/x86/ldstflags.hh --- src/sim/system.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sim/system.hh') diff --git a/src/sim/system.hh b/src/sim/system.hh index d82978018..595892385 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -271,6 +271,11 @@ class System : public MemObject */ bool isMemAddr(Addr addr) const; + /** + * Get the architecture. + */ + Arch getArch() const { return Arch::TheISA; } + /** * Get the page bytes for the ISA. */ -- cgit v1.2.3