From 25884a87733cd35ef6613aaef9a8a08194267552 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 8 Jul 2009 23:02:20 -0700 Subject: Registers: Get rid of the float register width parameter. --- src/cpu/ozone/cpu_impl.hh | 53 ----------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'src/cpu/ozone/cpu_impl.hh') diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index 25fa64071..f86b882d1 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -917,22 +917,6 @@ OzoneCPU::OzoneTC::readIntReg(int reg_idx) return thread->renameTable[reg_idx]->readIntResult(); } -template -TheISA::FloatReg -OzoneCPU::OzoneTC::readFloatReg(int reg_idx, int width) -{ - int idx = reg_idx + TheISA::FP_Base_DepTag; - switch(width) { - case 32: - return thread->renameTable[idx]->readFloatResult(); - case 64: - return thread->renameTable[idx]->readDoubleResult(); - default: - panic("Unsupported width!"); - return 0; - } -} - template double OzoneCPU::OzoneTC::readFloatReg(int reg_idx) @@ -941,14 +925,6 @@ OzoneCPU::OzoneTC::readFloatReg(int reg_idx) return thread->renameTable[idx]->readFloatResult(); } -template -uint64_t -OzoneCPU::OzoneTC::readFloatRegBits(int reg_idx, int width) -{ - int idx = reg_idx + TheISA::FP_Base_DepTag; - return thread->renameTable[idx]->readIntResult(); -} - template uint64_t OzoneCPU::OzoneTC::readFloatRegBits(int reg_idx) @@ -968,27 +944,6 @@ OzoneCPU::OzoneTC::setIntReg(int reg_idx, uint64_t val) } } -template -void -OzoneCPU::OzoneTC::setFloatReg(int reg_idx, FloatReg val, int width) -{ - int idx = reg_idx + TheISA::FP_Base_DepTag; - switch(width) { - case 32: - panic("Unimplemented!"); - break; - case 64: - thread->renameTable[idx]->setDoubleResult(val); - break; - default: - panic("Unsupported width!"); - } - - if (!thread->inSyscall) { - cpu->squashFromTC(); - } -} - template void OzoneCPU::OzoneTC::setFloatReg(int reg_idx, FloatReg val) @@ -1002,14 +957,6 @@ OzoneCPU::OzoneTC::setFloatReg(int reg_idx, FloatReg val) } } -template -void -OzoneCPU::OzoneTC::setFloatRegBits(int reg_idx, FloatRegBits val, - int width) -{ - panic("Unimplemented!"); -} - template void OzoneCPU::OzoneTC::setFloatRegBits(int reg_idx, FloatRegBits val) -- cgit v1.2.3