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)
#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)