changeset ad135618ef32 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=ad135618ef32
description:
X86: Fix x87 stack register indexing.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/arch/x86/floatregs.hh | 2 +-
diffs (12 lines):
diff -r 135b9b7a708d -r ad135618ef32 src/arch/x86/floatregs.hh
--- a/src/arch/x86/floatregs.hh Tue Jul 14 18:06:30 2009 -0700
+++ b/src/arch/x86/floatregs.hh Thu Jul 16 09:26:38 2009 -0700
@@ -166,7 +166,7 @@
static inline FloatRegIndex
FLOATREG_STACK(int index, int top)
{
- return (FloatRegIndex)(NUM_FLOATREGS + ((top + index + 8) % 8));
+ return FLOATREG_FPR((top + index + 8) % 8);
}
};
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev