summaryrefslogtreecommitdiff
path: root/src/cpu/simple/base.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-10-02 22:21:38 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-10-02 22:21:38 -0700
commita56c651980921d210f2c48f84ce5d3445fc38475 (patch)
tree9638492e690d36d6e644eb5f73c37e26fc3adc23 /src/cpu/simple/base.cc
parent4049c9f76afd17c983eed923940eb7338229561d (diff)
downloadgem5-a56c651980921d210f2c48f84ce5d3445fc38475.tar.xz
Predecoder: Clear out predecoder state on an ITLB fault.
--HG-- extra : convert_revision : 68f8ff778dbd28ade5070edf5a7d662e7bf0045a
Diffstat (limited to 'src/cpu/simple/base.cc')
-rw-r--r--src/cpu/simple/base.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index 9fc1d1dd9..f3b34880e 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -463,6 +463,7 @@ BaseSimpleCPU::advancePC(Fault fault)
fetchOffset = 0;
if (fault != NoFault) {
curMacroStaticInst = StaticInst::nullStaticInstPtr;
+ predecoder.reset();
fault->invoke(tc);
thread->setMicroPC(0);
thread->setNextMicroPC(1);