diff options
Diffstat (limited to 'src/cpu/simple')
-rw-r--r-- | src/cpu/simple/base.cc | 2 | ||||
-rw-r--r-- | src/cpu/simple/base.hh | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc index 699e78764..70e2c39e6 100644 --- a/src/cpu/simple/base.cc +++ b/src/cpu/simple/base.cc @@ -383,7 +383,7 @@ BaseSimpleCPU::preExecute() stayAtPC = false; ExtMachInst machInst = predecoder.getExtMachInst(pcState); thread->pcState(pcState); - instPtr = StaticInst::decode(machInst, pcState.instAddr()); + instPtr = thread->decoder.decode(machInst, pcState.instAddr()); } else { stayAtPC = true; fetchOffset += sizeof(MachInst); diff --git a/src/cpu/simple/base.hh b/src/cpu/simple/base.hh index 0cc90645f..b27ebf998 100644 --- a/src/cpu/simple/base.hh +++ b/src/cpu/simple/base.hh @@ -38,6 +38,7 @@ #include "config/full_system.hh" #include "config/the_isa.hh" #include "cpu/base.hh" +#include "cpu/decode.hh" #include "cpu/pc_event.hh" #include "cpu/simple_thread.hh" #include "cpu/static_inst.hh" |