Even if you don't want to fetch more bytes, make sure you handle a fault.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 10 Apr 2007 17:27:12 +0000 (17:27 +0000)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 10 Apr 2007 17:27:12 +0000 (17:27 +0000)
--HG--
extra : convert_revision : cfebc877b9b2ebc8927ce8267867eb40ad6d59c6

src/cpu/simple/atomic.cc

index 6f69b5ac40c48c62b8e1f6e0af796de81d163d1b..b0a01c3a304452d15b95f816aaa4ccac40daa8bd 100644 (file)
@@ -557,7 +557,7 @@ AtomicSimpleCPU::tick()
             }
 
         }
-        if(predecoder.needMoreBytes())
+        if(predecoder.needMoreBytes() || fault != NoFault)
             advancePC(fault);
     }