From 219c423f1fb0f9a559bfa87f9812426d5e2c3e29 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Tue, 15 Oct 2013 14:22:43 -0400 Subject: cpu: rename *_DepTag constants to *_Reg_Base Make these names more meaningful. Specifically, made these substitutions: s/FP_Base_DepTag/FP_Reg_Base/g; s/Ctrl_Base_DepTag/Misc_Reg_Base/g; s/Max_DepTag/Max_Reg_Index/g; --- src/cpu/ozone/cpu_impl.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cpu/ozone') diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index f64f287ea..fcab901cf 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -458,7 +458,7 @@ OzoneCPU::tick() _status = Running; thread.renameTable[ZeroReg]->setIntResult(0); - thread.renameTable[ZeroReg+TheISA::FP_Base_DepTag]-> + thread.renameTable[ZeroReg+TheISA::FP_Reg_Base]-> setDoubleResult(0.0); comm.advance(); @@ -727,7 +727,7 @@ OzoneCPU::OzoneTC::copyArchRegs(ThreadContext *tc) // Then loop through the floating point registers. for (int i = 0; i < TheISA::NumFloatRegs; ++i) { - int fp_idx = i + TheISA::FP_Base_DepTag; + int fp_idx = i + TheISA::FP_Reg_Base; thread->renameTable[fp_idx]->setIntResult(tc->readFloatRegBits(i)); } @@ -756,7 +756,7 @@ template double OzoneCPU::OzoneTC::readFloatReg(int reg_idx) { - int idx = reg_idx + TheISA::FP_Base_DepTag; + int idx = reg_idx + TheISA::FP_Reg_Base; return thread->renameTable[idx]->readFloatResult(); } @@ -764,7 +764,7 @@ template uint64_t OzoneCPU::OzoneTC::readFloatRegBits(int reg_idx) { - int idx = reg_idx + TheISA::FP_Base_DepTag; + int idx = reg_idx + TheISA::FP_Reg_Base; return thread->renameTable[idx]->readIntResult(); } @@ -783,7 +783,7 @@ template void OzoneCPU::OzoneTC::setFloatReg(int reg_idx, FloatReg val) { - int idx = reg_idx + TheISA::FP_Base_DepTag; + int idx = reg_idx + TheISA::FP_Reg_Base; thread->renameTable[idx]->setDoubleResult(val); -- cgit v1.2.3