From 2049c6599e1e64c34f642ab4e0d64ecab3139743 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Wed, 10 Sep 2014 17:12:50 +0300 Subject: [PATCH] Quick and dirty PPC CIA access fix. --- cia.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cia.cpp b/cia.cpp index caa23d90..86ea993f 100644 --- a/cia.cpp +++ b/cia.cpp @@ -40,6 +40,7 @@ #include "dongle.h" #include "inputrecord.h" #include "autoconf.h" +#include "uae/ppc.h" #define CIAA_DEBUG_R 0 #define CIAA_DEBUG_W 0 @@ -1619,6 +1620,10 @@ static void cia_wait_pre (int cianummask) { if (currprefs.cachesize) return; +#ifdef WITH_PPC + if (ppc_state) + return; +#endif if (currprefs.cpu_cycle_exact) { cia_interrupt_disabled |= cianummask; @@ -1648,6 +1653,10 @@ static void cia_wait_pre (int cianummask) static void cia_wait_post (int cianummask, uae_u32 value) { +#ifdef WITH_PPC + if (ppc_state) + return; +#endif if (currprefs.cachesize) { do_cycles (8 * CYCLE_UNIT /2); } else { -- 2.47.3