diff options
Diffstat (limited to 'src/arch/x86/floatregfile.hh')
-rw-r--r-- | src/arch/x86/floatregfile.hh | 4 |
1 files changed, 3 insertions, 1 deletions
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: |