diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-07-16 09:26:38 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-07-16 09:26:38 -0700 |
commit | 3f9b0cc5ca126950fcce5a9b5ebf2f485ee812f2 (patch) | |
tree | adaef93b42d9a663862dd64944df10433d26f59e /src | |
parent | 6262b31515020ab62cd51b382c0184a34d290d4d (diff) | |
download | gem5-3f9b0cc5ca126950fcce5a9b5ebf2f485ee812f2.tar.xz |
X86: Fix x87 stack register indexing.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/floatregs.hh | 2 |
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); } }; |