]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
od-unix: enable threaded CPU support
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 17 Jun 2026 15:47:14 +0000 (08:47 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Wed, 17 Jun 2026 19:27:31 +0000 (12:27 -0700)
Match the Windows target by enabling the shared threaded CPU path on
Unix. The port already provides pthread-backed uae_thread_id and
semaphore helpers, but sysconfig.h did not expose WITH_THREADED_CPU.
That left upstream code that clears cpu_thread_tid after m68k_run()
unbuildable on Ubuntu.

Enable the feature in the Unix sysconfig instead of hiding the shared
code behind extra guards.

od-unix/sysconfig.h

index ce32c241ef6722eaf2292b05cf04d9d8b8bada55..b3ab14fc155b88a6b24c25817d82b60d4a848e7e 100644 (file)
@@ -22,6 +22,7 @@
 #endif
 
 #define SUPPORT_THREADS 1
+#define WITH_THREADED_CPU 1
 #define MAX_DPATH 1000
 #define MAX_AMIGAMONITORS 4
 #define MAX_AMIGADISPLAYS 4