cpu: Fix base FP and CC register index in o3 insertThread()
Note that the method is not used, and could possibly be deleted.
This commit is contained in:
parent
bbdd7cecb9
commit
488128dab2
1 changed files with 4 additions and 4 deletions
|
@ -790,8 +790,8 @@ FullO3CPU<Impl>::insertThread(ThreadID tid)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Bind Float Regs to Rename Map
|
//Bind Float Regs to Rename Map
|
||||||
int max_reg = TheISA::NumIntRegs + TheISA::NumFloatRegs;
|
int max_reg = TheISA::FP_Reg_Base + TheISA::NumFloatRegs;
|
||||||
for (int freg = TheISA::NumIntRegs; freg < max_reg; freg++) {
|
for (int freg = TheISA::FP_Reg_Base; freg < max_reg; freg++) {
|
||||||
PhysRegIndex phys_reg = freeList.getFloatReg();
|
PhysRegIndex phys_reg = freeList.getFloatReg();
|
||||||
|
|
||||||
renameMap[tid].setEntry(freg,phys_reg);
|
renameMap[tid].setEntry(freg,phys_reg);
|
||||||
|
@ -799,8 +799,8 @@ FullO3CPU<Impl>::insertThread(ThreadID tid)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Bind condition-code Regs to Rename Map
|
//Bind condition-code Regs to Rename Map
|
||||||
max_reg = TheISA::NumIntRegs + TheISA::NumFloatRegs + TheISA::NumCCRegs;
|
max_reg = TheISA::CC_Reg_Base + TheISA::NumCCRegs;
|
||||||
for (int creg = TheISA::NumIntRegs + TheISA::NumFloatRegs;
|
for (int creg = TheISA::CC_Reg_Base;
|
||||||
creg < max_reg; creg++) {
|
creg < max_reg; creg++) {
|
||||||
PhysRegIndex phys_reg = freeList.getCCReg();
|
PhysRegIndex phys_reg = freeList.getCCReg();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue