From: Gabe Black Date: Mon, 29 Jan 2007 15:46:54 +0000 (-0500) Subject: Fixed a warning about an unused variable. X-Git-Tag: m5_2.0_beta3~242 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=105c3367438c3a1dd40be808cdba848eb813b54d;p=gem5.git Fixed a warning about an unused variable. --HG-- extra : convert_revision : f9c78e86b60c3085cd95b1b4e132205e0ef584dd --- diff --git a/src/cpu/o3/sparc/dyn_inst.hh b/src/cpu/o3/sparc/dyn_inst.hh index e95ae2fd5..4314488b5 100644 --- a/src/cpu/o3/sparc/dyn_inst.hh +++ b/src/cpu/o3/sparc/dyn_inst.hh @@ -173,7 +173,7 @@ class SparcDynInst : public BaseDynInst { uint64_t val = this->cpu->readIntReg(this->_srcRegIdx[idx]); DPRINTF(Sparc, "Reading int reg %d (%d, %d) as %x\n", (int)this->_flatSrcRegIdx[idx], (int)this->_srcRegIdx[idx], idx, val); - return this->cpu->readIntReg(this->_srcRegIdx[idx]); + return val; } TheISA::FloatReg readFloatRegOperand(const StaticInst *si,