o3: correct the number of cc registers in rename map
authorNilay Vaish <nilay@cs.wisc.edu>
Sat, 4 Jul 2015 15:43:46 +0000 (10:43 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Sat, 4 Jul 2015 15:43:46 +0000 (10:43 -0500)
src/cpu/o3/rename_map.cc

index 25289825cfb9838172e29a9f73ae07edcb0d0b31..b0232df2084c1c1fc1779e24982903996fcb59d0 100644 (file)
@@ -98,7 +98,7 @@ UnifiedRenameMap::init(PhysRegFile *_regFile,
 
     floatMap.init(TheISA::NumFloatRegs, &(freeList->floatList), _floatZeroReg);
 
-    ccMap.init(TheISA::NumFloatRegs, &(freeList->ccList), (RegIndex)-1);
+    ccMap.init(TheISA::NumCCRegs, &(freeList->ccList), (RegIndex)-1);
 }