summaryrefslogtreecommitdiff
path: root/src/arch/x86/floatregs.hh
diff options
context:
space:
mode:
authorDerek Hower <drh5@cs.wisc.edu>2009-07-18 17:40:20 -0500
committerDerek Hower <drh5@cs.wisc.edu>2009-07-18 17:40:20 -0500
commit926ab6e6dbc2417f6c103512481a60e64be4fea8 (patch)
treed8598dd4a0841928729ebde1f0b00882e6498604 /src/arch/x86/floatregs.hh
parent4b7ea4cb510465bc82c6679407d5a125cfddd18c (diff)
parentd85cd08113e61817fdf1df978f2713ba8b094996 (diff)
downloadgem5-926ab6e6dbc2417f6c103512481a60e64be4fea8.tar.xz
merge
Diffstat (limited to 'src/arch/x86/floatregs.hh')
-rw-r--r--src/arch/x86/floatregs.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/floatregs.hh b/src/arch/x86/floatregs.hh
index dc9867c42..2108db8d5 100644
--- a/src/arch/x86/floatregs.hh
+++ b/src/arch/x86/floatregs.hh
@@ -166,7 +166,7 @@ namespace X86ISA
static inline FloatRegIndex
FLOATREG_STACK(int index, int top)
{
- return (FloatRegIndex)(NUM_FLOATREGS + ((top + index + 8) % 8));
+ return FLOATREG_FPR((top + index + 8) % 8);
}
};