From: Gabe Black Date: Wed, 6 Dec 2006 16:40:41 +0000 (-0500) Subject: Use the renamed register index, rather than the flattened one. X-Git-Tag: m5_2.0_beta3~274^2~18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50b8cce355bc26a625e17a2651777340aa90a706;p=gem5.git Use the renamed register index, rather than the flattened one. --HG-- extra : convert_revision : 599650c408667bb1b8db20a6847b9e697f7b49e4 --- diff --git a/src/cpu/o3/sparc/dyn_inst.hh b/src/cpu/o3/sparc/dyn_inst.hh index c645b832b..2d73ca8d1 100644 --- a/src/cpu/o3/sparc/dyn_inst.hh +++ b/src/cpu/o3/sparc/dyn_inst.hh @@ -139,23 +139,23 @@ class SparcDynInst : public BaseDynInst TheISA::FloatReg readFloatReg(const StaticInst *si, int idx, int width) { - return this->cpu->readFloatReg(this->_flatSrcRegIdx[idx], width); + return this->cpu->readFloatReg(this->_srcRegIdx[idx], width); } TheISA::FloatReg readFloatReg(const StaticInst *si, int idx) { - return this->cpu->readFloatReg(this->_flatSrcRegIdx[idx]); + return this->cpu->readFloatReg(this->_srcRegIdx[idx]); } TheISA::FloatRegBits readFloatRegBits(const StaticInst *si, int idx, int width) { - return this->cpu->readFloatRegBits(this->_flatSrcRegIdx[idx], width); + return this->cpu->readFloatRegBits(this->_srcRegIdx[idx], width); } TheISA::FloatRegBits readFloatRegBits(const StaticInst *si, int idx) { - return this->cpu->readFloatRegBits(this->_flatSrcRegIdx[idx]); + return this->cpu->readFloatRegBits(this->_srcRegIdx[idx]); } /** @todo: Make results into arrays so they can handle multiple dest @@ -171,27 +171,27 @@ class SparcDynInst : public BaseDynInst void setFloatReg(const StaticInst *si, int idx, TheISA::FloatReg val, int width) { - this->cpu->setFloatReg(this->_flatDestRegIdx[idx], val, width); + this->cpu->setFloatReg(this->_destRegIdx[idx], val, width); BaseDynInst::setFloatReg(si, idx, val, width); } void setFloatReg(const StaticInst *si, int idx, TheISA::FloatReg val) { - this->cpu->setFloatReg(this->_flatDestRegIdx[idx], val); + this->cpu->setFloatReg(this->_destRegIdx[idx], val); BaseDynInst::setFloatReg(si, idx, val); } void setFloatRegBits(const StaticInst *si, int idx, TheISA::FloatRegBits val, int width) { - this->cpu->setFloatRegBits(this->_flatDestRegIdx[idx], val, width); + this->cpu->setFloatRegBits(this->_destRegIdx[idx], val, width); BaseDynInst::setFloatRegBits(si, idx, val); } void setFloatRegBits(const StaticInst *si, int idx, TheISA::FloatRegBits val) { - this->cpu->setFloatRegBits(this->_flatDestRegIdx[idx], val); + this->cpu->setFloatRegBits(this->_destRegIdx[idx], val); BaseDynInst::setFloatRegBits(si, idx, val); }