FP emulator patch
This patch fix a bug in the FP emulator, when used in the 64-bit kernel.
Ralf, could you please apply.
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:[email protected] |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com
Index: arch/mips/math-emu/cp1emu.c
===================================================================
RCS file: /cvs/linux/arch/mips/math-emu/cp1emu.c,v retrieving revision 1.13.2.9
mips/math-emu/cp1emu.c +2 -2
@@ -168,8 +168,8 @@#define SIFROMREG (si,x) ((si) = \ (xcp->cp0_status & FR_BIT) || !(x & 1) ? \ - ctx->regs[x] : \ - ctx->regs[x & ~1] >> 32 ) + (int)ctx->regs[x] : \ + (int)(ctx->regs[x & ~1] >> 32 ))#define SITOREG (si,x) (ctx->regs[x & ~((xcp->cp0_status & FR_BIT) == 0)] = \ (xcp->cp0_status & FR_BIT) || !(x & 1) ? \ ctx->regs[x & ~1] >> 32 << 32 | (u32)(si) : \