From: Toni Wilen Date: Wed, 10 Sep 2014 14:12:50 +0000 (+0300) Subject: Quick and dirty PPC CIA access fix. X-Git-Tag: 3000~44 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2049c6599e1e64c34f642ab4e0d64ecab3139743;p=francis%2Fwinuae.git Quick and dirty PPC CIA access fix. --- 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 {