summaryrefslogtreecommitdiff
path: root/src/arch/x86/floatregs.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-09-04 23:31:40 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-09-04 23:31:40 -0700
commitaf4c04c426cca3b73e58ab7464119db28252984c (patch)
tree500f4bd45710fd73028f5946750aa88cb166533d /src/arch/x86/floatregs.hh
parent310912cf2ccae3a4e9e3505cc3316d778daa2ec8 (diff)
downloadgem5-af4c04c426cca3b73e58ab7464119db28252984c.tar.xz
X86: Add floating point micro registers.
--HG-- extra : convert_revision : 442a5f8b9216638e4e6898f89eacb8695719e20f
Diffstat (limited to 'src/arch/x86/floatregs.hh')
-rw-r--r--src/arch/x86/floatregs.hh18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/arch/x86/floatregs.hh b/src/arch/x86/floatregs.hh
index 552cf6371..b9d6a5c43 100644
--- a/src/arch/x86/floatregs.hh
+++ b/src/arch/x86/floatregs.hh
@@ -120,7 +120,17 @@ namespace X86ISA
FLOATREG_XMM15_LOW,
FLOATREG_XMM15_HIGH,
- NUM_FLOATREGS = FLOATREG_XMM_BASE + 2 * NumXMMRegs
+ FLOATREG_MICROFP_BASE = FLOATREG_XMM_BASE + 2 * NumXMMRegs,
+ FLOATREG_MICROFP0 = FLOATREG_MICROFP_BASE,
+ FLOATREG_MICROFP1,
+ FLOATREG_MICROFP2,
+ FLOATREG_MICROFP3,
+ FLOATREG_MICROFP4,
+ FLOATREG_MICROFP5,
+ FLOATREG_MICROFP6,
+ FLOATREG_MICROFP7,
+
+ NUM_FLOATREGS = FLOATREG_MICROFP_BASE + NumMicroFpRegs
};
static inline FloatRegIndex
@@ -146,6 +156,12 @@ namespace X86ISA
{
return (FloatRegIndex)(FLOATREG_XMM_BASE + 2 * index + 1);
}
+
+ static inline FloatRegIndex
+ FLOATREG_MICROFP(int index)
+ {
+ return (FloatRegIndex)(FLOATREG_MICROFP_BASE + index);
+ }
};
#endif // __ARCH_X86_FLOATREGS_HH__