]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Statefile 6.0.x workaround -> 6.0.0-6.0.3
authorToni Wilen <twilen@winuae.net>
Fri, 10 Apr 2026 16:51:07 +0000 (19:51 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 10 Apr 2026 16:51:07 +0000 (19:51 +0300)
newcpu.cpp

index 2501a57159e3147fbe6cb368b01131b8dabac5bb..46a0fb87ee0af4741861f65d0006b43f886991f4 100644 (file)
@@ -483,9 +483,10 @@ static bool get_trace(uaecptr addr, int accessmode, int size, uae_u32 *data)
                        }
                        check_trace();
 
-                       // Partially fix 6.0.x statefiles where 68000 word read value was stored as a zero.
+                       // Partially fix 6.0.0-6.0.3 statefiles where 68000 word read value was stored as a zero.
                        // This can be only fixed when it was 68000 instruction prefetch.
-                       if ((get_statefile_version() & 0xffffff00) == 0x00060000) {
+                       int statefile_version = get_statefile_version();
+                       if (statefile_version >= 0x00060000 && statefile_version <= 0x00060003) {
                                if (!ctm->data && accessmode == 2 && currprefs.cpu_model <= 68010 && currprefs.cpu_cycle_exact && addr > regs.pc && addr < regs.pc + 20) {
                                        return true;
                                }