From a473d50e4c8be5685f4188402c3790d6f4ceb951 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 5 Mar 2007 17:57:26 +0000 Subject: Reorganize the floating point register file a little. --HG-- extra : convert_revision : 643c147b77e931d49ac559681d4bbda737f6e1c7 --- src/arch/x86/floatregfile.hh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/arch/x86/floatregfile.hh b/src/arch/x86/floatregfile.hh index 67ce7c18e..18371280d 100644 --- a/src/arch/x86/floatregfile.hh +++ b/src/arch/x86/floatregfile.hh @@ -105,8 +105,17 @@ namespace X86ISA class FloatRegFile { + public: + static const int SingleWidth = 32; + static const int DoubleWidth = 64; + static const int QuadWidth = 128; + protected: - double regs[NumFloatRegs]; + union + { + uint64_t q[NumFloatRegs]; + double d[NumFloatRegs]; + }; public: void clear(); -- cgit v1.2.3