From 96a34a2a409abcfac41e0b7b435dce7bd88af01a Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 22 May 2024 23:48:08 +0200 Subject: [PATCH] Fixed a typo in x87 stack restauration --- src/emu/x87emu_private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/x87emu_private.c b/src/emu/x87emu_private.c index 102b3463a..b1c1cd7ab 100755 --- a/src/emu/x87emu_private.c +++ b/src/emu/x87emu_private.c @@ -332,7 +332,7 @@ void fpu_fxrstor(x86emu_t* emu, void* ed) int top = emu->top&7; int stack = 8-top; if(top==0) // check if stack is full or empty, based on tag[0] - stack = (emu->fpu_tags)?8:0; + stack = (emu->fpu_tags)?0:8; for(int i=0; i<8; ++i) memcpy((immx[i], &p->FloatRegisters[i].q[0], sizeof(mmx87_regs_t)); // copy SSE regs