From: Gabe Black Date: Tue, 10 Apr 2007 17:27:12 +0000 (+0000) Subject: Even if you don't want to fetch more bytes, make sure you handle a fault. X-Git-Tag: m5_2.0_beta3~41^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74122c04cf8105d507f390c456c6e3c113b5a56e;p=gem5.git Even if you don't want to fetch more bytes, make sure you handle a fault. --HG-- extra : convert_revision : cfebc877b9b2ebc8927ce8267867eb40ad6d59c6 --- 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); }