From 105c3367438c3a1dd40be808cdba848eb813b54d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 29 Jan 2007 10:46:54 -0500 Subject: [PATCH] Fixed a warning about an unused variable. --HG-- extra : convert_revision : f9c78e86b60c3085cd95b1b4e132205e0ef584dd --- src/cpu/o3/sparc/dyn_inst.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2