diff options
Diffstat (limited to 'src/arch/x86/floatregs.hh')
-rw-r--r-- | src/arch/x86/floatregs.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/floatregs.hh b/src/arch/x86/floatregs.hh index b9d6a5c43..30846ec00 100644 --- a/src/arch/x86/floatregs.hh +++ b/src/arch/x86/floatregs.hh @@ -162,6 +162,12 @@ namespace X86ISA { return (FloatRegIndex)(FLOATREG_MICROFP_BASE + index); } + + static inline FloatRegIndex + FLOATREG_STACK(int index, int top) + { + return (FloatRegIndex)(NUM_FLOATREGS + ((top - index + 8) % 8)); + } }; #endif // __ARCH_X86_FLOATREGS_HH__ |