]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Allow 68020+ CPUs to read instruction words from custom chipset space. Only if more...
authorToni Wilen <twilen@winuae.net>
Thu, 14 Mar 2024 15:48:32 +0000 (17:48 +0200)
committerToni Wilen <twilen@winuae.net>
Thu, 14 Mar 2024 15:48:32 +0000 (17:48 +0200)
custom.cpp

index 07c7bc98ef0343d841c50be9a8ec15a12abcbfee..0a256c5fc894d07c49e490c5f1c5db439576900a 100644 (file)
@@ -14871,13 +14871,13 @@ addrbank custom_bank = {
 
 static uae_u32 REGPARAM2 custom_wgeti (uaecptr addr)
 {
-       if (currprefs.cpu_model >= 68020)
+       if (currprefs.cpu_model >= 68020 && !currprefs.cpu_compatible)
                return dummy_wgeti (addr);
        return custom_wget (addr);
 }
 static uae_u32 REGPARAM2 custom_lgeti (uaecptr addr)
 {
-       if (currprefs.cpu_model >= 68020)
+       if (currprefs.cpu_model >= 68020 && !currprefs.cpu_compatible)
                return dummy_lgeti (addr);
        return custom_lget (addr);
 }