]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Quick and dirty PPC CIA access fix.
authorToni Wilen <twilen@winuae.net>
Wed, 10 Sep 2014 14:12:50 +0000 (17:12 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 10 Sep 2014 14:12:50 +0000 (17:12 +0300)
cia.cpp

diff --git a/cia.cpp b/cia.cpp
index caa23d903342c3c72fdf2297def869eb700f6b96..86ea993fc8eddb4ecd79ceca8f7376bee6b96edd 100644 (file)
--- 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 {