about summary refs log tree commit diff stats
path: root/src/emu/x64run0f.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-05 19:12:11 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-05 19:12:19 +0200
commit19dc18f7c51bcef6f8ec00f3521b8f3e8541e96c (patch)
tree62652e5f66ff6a1dcc9274b7a021011675914bb0 /src/emu/x64run0f.c
parent4e63b82f5eda8995a2b5cd09d64304ac9e30dbd6 (diff)
downloadbox64-19dc18f7c51bcef6f8ec00f3521b8f3e8541e96c.tar.gz
box64-19dc18f7c51bcef6f8ec00f3521b8f3e8541e96c.zip
Fixed a regression introduced with box32 that broke Bladur's Gate 3 (and probably a few other)
Diffstat (limited to 'src/emu/x64run0f.c')
-rw-r--r--src/emu/x64run0f.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 1e54db04..d81a9d12 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -1242,18 +1242,18 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step)
                     #ifdef TEST_INTERPRETER

                     emu->sw.f.F87_TOP = emu->top&7;

                     #else

-                    if(rex.w)

-                        fpu_fxsave64(emu, ED);

-                    else

+                    if(rex.is32bits)

                         fpu_fxsave32(emu, ED);

+                    else

+                        fpu_fxsave64(emu, ED);

                     #endif

                     break;

                 case 1:                 /* FXRSTOR Ed */

                     _GETED(0);

-                    if(rex.w)

-                        fpu_fxrstor64(emu, ED);

-                    else

+                    if(rex.is32bits)

                         fpu_fxrstor32(emu, ED);

+                    else

+                        fpu_fxrstor64(emu, ED);

                     break;

                 case 2:                 /* LDMXCSR Md */

                     GETED(0);