From: Waccoon <105848526+Waccoon@users.noreply.github.com> Date: Tue, 24 May 2022 08:18:11 +0000 (-0400) Subject: Update newcpu.cpp X-Git-Tag: 41000~234^2~2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=77edb2169be52b726c4b20f841e706cf101e73d0;p=francis%2Fwinuae.git Update newcpu.cpp 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. --- diff --git a/newcpu.cpp b/newcpu.cpp index 89acfc0c..d1d6c5d1 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -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();