X86: Fix x87 stack register indexing.
This commit is contained in:
parent
6262b31515
commit
3f9b0cc5ca
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ namespace X86ISA
|
||||||
static inline FloatRegIndex
|
static inline FloatRegIndex
|
||||||
FLOATREG_STACK(int index, int top)
|
FLOATREG_STACK(int index, int top)
|
||||||
{
|
{
|
||||||
return (FloatRegIndex)(NUM_FLOATREGS + ((top + index + 8) % 8));
|
return FLOATREG_FPR((top + index + 8) % 8);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue