From 6204d00940ecae631b040f2b6f46a11eb58cebb6 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Aug 2007 20:34:00 -0700 Subject: [PATCH] X86: Make the fp accessors not panic. --HG-- extra : convert_revision : c6d08863049a3f8755c53e1f49ce19ad6a2dedc7 --- src/arch/x86/floatregfile.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)