summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-04-10 17:27:12 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-04-10 17:27:12 +0000
commit74122c04cf8105d507f390c456c6e3c113b5a56e (patch)
tree4ab00666f46660eb7c72621c9bec5e124206b7ad /src
parent798caa36adcb5894c87a97e0898f85df6093d8b7 (diff)
downloadgem5-74122c04cf8105d507f390c456c6e3c113b5a56e.tar.xz
Even if you don't want to fetch more bytes, make sure you handle a fault.
--HG-- extra : convert_revision : cfebc877b9b2ebc8927ce8267867eb40ad6d59c6
Diffstat (limited to 'src')
-rw-r--r--src/cpu/simple/atomic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc
index 6f69b5ac4..b0a01c3a3 100644
--- a/src/cpu/simple/atomic.cc
+++ b/src/cpu/simple/atomic.cc
@@ -557,7 +557,7 @@ AtomicSimpleCPU::tick()
}
}
- if(predecoder.needMoreBytes())
+ if(predecoder.needMoreBytes() || fault != NoFault)
advancePC(fault);
}