32x: poll_detect tweaks, debug unification
[picodrive.git] / pico / 32x / 32x.c
index b488eef..44cabd7 100644 (file)
@@ -1,6 +1,7 @@
 #include "../pico_int.h"
 #include "../sound/ym2612.h"
 
+SH2 sh2s[2];
 struct Pico32x Pico32x;
 
 static void sh2_irq_cb(int id, int level)
@@ -51,6 +52,9 @@ void Pico32xStartup(void)
   if (!Pico.m.pal)
     Pico32x.vdp_regs[0] |= P32XV_nPAL;
 
+  PREG8(Pico32xMem->sh2_peri_regs[0], 4) =
+  PREG8(Pico32xMem->sh2_peri_regs[1], 4) = 0x84; // SCI SSR
+
   emu_32x_startup();
 }
 
@@ -101,10 +105,6 @@ static void p32x_start_blank(void)
 
 static __inline void run_m68k(int cyc)
 {
-  if (Pico32x.emu_flags & P32XF_68KPOLL) {
-    SekCycleCnt += cyc;
-    return;
-  }
 #if defined(EMU_C68K)
   PicoCpuCM68k.cycles = cyc;
   CycloneRun(&PicoCpuCM68k);