From bc3635a110747123be066de5238961938ea5df78 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Aug 2007 20:34:52 -0700 Subject: X86: Flesh out register indexing constants. --HG-- extra : convert_revision : 56eedc076bbb7962c3976599a15ed93c7cb154c0 --- src/arch/x86/floatregfile.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/arch/x86/floatregfile.hh') diff --git a/src/arch/x86/floatregfile.hh b/src/arch/x86/floatregfile.hh index 18371280d..282cac796 100644 --- a/src/arch/x86/floatregfile.hh +++ b/src/arch/x86/floatregfile.hh @@ -100,7 +100,8 @@ namespace X86ISA { std::string getFloatRegName(RegIndex); - const int NumFloatArchRegs = NumMMXRegs + NumXMMRegs; + //Each 128 bit xmm register is broken into two effective 64 bit registers. + const int NumFloatArchRegs = NumMMXRegs + 2 * NumXMMRegs; const int NumFloatRegs = NumFloatArchRegs; class FloatRegFile @@ -115,6 +116,7 @@ namespace X86ISA { uint64_t q[NumFloatRegs]; double d[NumFloatRegs]; + float f[NumFloatRegs][2]; }; public: -- cgit v1.2.3