Fix FPU state if FPU has is enabled but is not enabled in loaded statefile.

This commit is contained in:
Toni Wilen 2023-10-11 20:15:59 +03:00
parent 35ec7a5215
commit 49cc0cf9c2
2 changed files with 3 additions and 1 deletions

View File

@ -3741,8 +3741,8 @@ uae_u8 *restore_fpu (uae_u8 *src)
int i;
uae_u32 flags;
fpu_reset();
changed_prefs.fpu_model = currprefs.fpu_model = restore_u32 ();
fpu_reset();
flags = restore_u32 ();
for (i = 0; i < 8; i++) {
w1 = restore_u16 () << 16;

View File

@ -6904,6 +6904,8 @@ uae_u8 *restore_cpu (uae_u8 *src)
int flags, model;
uae_u32 l;
changed_prefs.fpu_model = currprefs.fpu_model = 0;
changed_prefs.mmu_model = currprefs.mmu_model = 0;
currprefs.cpu_model = changed_prefs.cpu_model = model = restore_u32 ();
flags = restore_u32 ();
changed_prefs.address_space_24 = 0;