From: Gabe Black Date: Thu, 30 Aug 2007 03:34:00 +0000 (-0700) Subject: X86: Make the fp accessors not panic. X-Git-Tag: m5_2.0_beta4~151 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6204d00940ecae631b040f2b6f46a11eb58cebb6;p=gem5.git X86: Make the fp accessors not panic. --HG-- extra : convert_revision : c6d08863049a3f8755c53e1f49ce19ad6a2dedc7 --- diff --git a/src/arch/x86/floatregfile.cc b/src/arch/x86/floatregfile.cc index 515ed0958..93f2d4fe1 100644 --- a/src/arch/x86/floatregfile.cc +++ b/src/arch/x86/floatregfile.cc @@ -111,22 +111,24 @@ void FloatRegFile::clear() FloatReg FloatRegFile::readReg(int floatReg, int width) { - panic("Floating point not implemented for x86!\n"); + return d[floatReg]; } FloatRegBits FloatRegFile::readRegBits(int floatReg, int width) { - panic("Floating point not implemented for x86!\n"); + return q[floatReg]; } Fault FloatRegFile::setReg(int floatReg, const FloatReg &val, int width) { - panic("Floating point not implemented for x86!\n"); + d[floatReg] = val; + return NoFault; } Fault FloatRegFile::setRegBits(int floatReg, const FloatRegBits &val, int width) { - panic("Floating point not implemented for x86!\n"); + q[floatReg] = val; + return NoFault; } void FloatRegFile::serialize(std::ostream &os)