diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2012-05-26 13:45:12 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2012-05-26 13:45:12 -0700 |
commit | 19df4e94ee4f2323e5fe1b915f7e81a6034cfc56 (patch) | |
tree | ae0fbc2a53a90e022e91b00f028451759c2d270d /src/arch/mips | |
parent | 0cba96ba6a5d7a4dab2a63b14149c49dfbfbb3bc (diff) | |
download | gem5-19df4e94ee4f2323e5fe1b915f7e81a6034cfc56.tar.xz |
ISA,CPU: Generalize and split out the components of the decode cache.
This will allow it to be specialized by the ISAs. The existing caching scheme
is provided by the BasicDecodeCache in the GenericISA namespace and is built
from the generalized components.
--HG--
rename : src/cpu/decode_cache.cc => src/arch/generic/decode_cache.cc
Diffstat (limited to 'src/arch/mips')
-rw-r--r-- | src/arch/mips/decoder.cc | 2 | ||||
-rw-r--r-- | src/arch/mips/decoder.hh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/mips/decoder.cc b/src/arch/mips/decoder.cc index 45b1f7184..dd4ba2be1 100644 --- a/src/arch/mips/decoder.cc +++ b/src/arch/mips/decoder.cc @@ -33,6 +33,6 @@ namespace MipsISA { -DecodeCache Decoder::defaultCache; +GenericISA::BasicDecodeCache Decoder::defaultCache; } diff --git a/src/arch/mips/decoder.hh b/src/arch/mips/decoder.hh index 95385961d..4857eb353 100644 --- a/src/arch/mips/decoder.hh +++ b/src/arch/mips/decoder.hh @@ -31,11 +31,11 @@ #ifndef __ARCH_MIPS_DECODER_HH__ #define __ARCH_MIPS_DECODER_HH__ +#include "arch/generic/decode_cache.hh" #include "arch/mips/types.hh" #include "base/misc.hh" #include "base/types.hh" -#include "cpu/decode_cache.hh" -#include "cpu/static_inst_fwd.hh" +#include "cpu/static_inst.hh" class ThreadContext; @@ -99,7 +99,7 @@ class Decoder protected: /// A cache of decoded instruction objects. - static DecodeCache defaultCache; + static GenericISA::BasicDecodeCache defaultCache; public: StaticInstPtr decodeInst(ExtMachInst mach_inst); |