diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-08-29 20:34:00 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-08-29 20:34:00 -0700 |
commit | 6204d00940ecae631b040f2b6f46a11eb58cebb6 (patch) | |
tree | 6eb2c446221c4dadbbed16a85d5fc757521f3f10 /src/arch | |
parent | 61b1c53a2a4076a168b70c36df7d1ce246282282 (diff) | |
download | gem5-6204d00940ecae631b040f2b6f46a11eb58cebb6.tar.xz |
X86: Make the fp accessors not panic.
--HG--
extra : convert_revision : c6d08863049a3f8755c53e1f49ce19ad6a2dedc7
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/floatregfile.cc | 10 |
1 files 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) |