O3 Fetch: Check if PC is pointing to Microcode ROM
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 10 Feb 2012 14:37:26 +0000 (08:37 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 10 Feb 2012 14:37:26 +0000 (08:37 -0600)
src/cpu/o3/fetch_impl.hh

index 553198980545601122d24172389b7a0efc11f9be..c8f7b0181bdfd5ec2a3592886482728c3079b739 100644 (file)
@@ -1282,6 +1282,7 @@ DefaultFetch<Impl>::fetch(bool &status_change)
 
             // Move to the next instruction, unless we have a branch.
             thisPC = nextPC;
+            inRom = isRomMicroPC(thisPC.microPC());
 
             if (newMacro) {
                 fetchAddr = thisPC.instAddr() & BaseCPU::PCMask;