]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Update newcpu.cpp
authorWaccoon <105848526+Waccoon@users.noreply.github.com>
Tue, 24 May 2022 08:18:11 +0000 (04:18 -0400)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 08:18:11 +0000 (04:18 -0400)
Forces CPU settings from workprefs to be copied to currprefs on CPU hard reset.  Normally all settings copy over when clicking the "OK" button in the GUI, but clicking "Reset" instead will cause CPU speed/frequency changes to be lost.

newcpu.cpp

index 89acfc0caed6a1b1563370b704f5bc0815209419..d1d6c5d1c46f0ae6ba8b03814bb35fd390ea567a 100644 (file)
@@ -3472,6 +3472,9 @@ static void m68k_reset2(bool hardreset)
                uae_interrupt = 0;
        }
 
+       // Force config changes (CPU speed) into effect on hard reset
+       update_68k_cycles();
+       
 #ifdef SAVESTATE
        if (isrestore ()) {
                m68k_reset_sr();