]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix compilation without WITH_THREADED_CPU
authorToni Wilen <twilen@winuae.net>
Sat, 25 Aug 2018 19:29:22 +0000 (22:29 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 25 Aug 2018 19:29:22 +0000 (22:29 +0300)
newcpu.cpp

index 3066344ce2b65bf096b30f218eec6d5f2af445da..0b2a998d92835af487ecf452bf3b8982782cf22f 100644 (file)
@@ -5197,17 +5197,6 @@ static uae_thread_id cpu_thread_tid;
 
 static bool m68k_cs_initialized;
 
-void custom_reset_cpu(bool hardreset, bool keyboardreset)
-{
-       if (cpu_thread_tid != uae_thread_get_id()) {
-               custom_reset(hardreset, keyboardreset);
-               return;
-       }
-       cpu_thread_reset = 1 | (hardreset ? 2 : 0) | (keyboardreset ? 4 : 0);
-       uae_sem_post(&cpu_wakeup_sema);
-       uae_sem_wait(&cpu_in_sema);
-}
-
 static int do_specialties_thread(void)
 {
        if (regs.spcflags & SPCFLAG_MODE_CHANGE)
@@ -5458,6 +5447,21 @@ static void run_cpu_thread(void *(*f)(void *))
 
 #endif
 
+void custom_reset_cpu(bool hardreset, bool keyboardreset)
+{
+#ifdef WITH_THREADED_CPU
+       if (cpu_thread_tid != uae_thread_get_id()) {
+               custom_reset(hardreset, keyboardreset);
+               return;
+       }
+       cpu_thread_reset = 1 | (hardreset ? 2 : 0) | (keyboardreset ? 4 : 0);
+       uae_sem_post(&cpu_wakeup_sema);
+       uae_sem_wait(&cpu_in_sema);
+#else
+       custom_reset(hardreset, keyboardreset);
+#endif
+}
+
 #ifdef JIT  /* Completely different run_2 replacement */
 
 void do_nothing (void)