32x: implement standard/ssf2 mapper
[picodrive.git] / pico / pico_int.h
index bb27922..cb1c21d 100644 (file)
@@ -11,7 +11,6 @@
 #define PICO_INTERNAL_INCLUDED\r
 \r
 #include <stdio.h>\r
-#include <stdlib.h>\r
 #include <string.h>\r
 #include "pico_port.h"\r
 #include "pico.h"\r
@@ -547,6 +546,7 @@ typedef struct
 #define P32XF_68KCPOLL   (1 << 0)\r
 #define P32XF_68KVPOLL   (1 << 1)\r
 #define P32XF_Z80_32X_IO (1 << 7) // z80 does 32x io\r
+#define P32XF_DRC_ROM_C  (1 << 8) // cached code from ROM\r
 \r
 #define P32XI_VRES (1 << 14/2) // IRL/2\r
 #define P32XI_VINT (1 << 12/2)\r
@@ -582,8 +582,8 @@ struct Pico32x
   unsigned int dmac0_fifo_ptr;\r
   unsigned short vdp_fbcr_fake;\r
   unsigned short pad2;\r
-  unsigned char comm_dirty_68k;\r
-  unsigned char comm_dirty_sh2;\r
+  unsigned char comm_dirty;\r
+  unsigned char pad3;            // was comm_dirty_sh2\r
   unsigned char pwm_irq_cnt;\r
   unsigned char pad1;\r
   unsigned short pwm_p[2];       // pwm pos in fifo\r
@@ -915,6 +915,7 @@ void PicoWrite16_32x(unsigned int a, unsigned int d);
 void PicoMemSetup32x(void);\r
 void Pico32xSwapDRAM(int b);\r
 void Pico32xMemStateLoaded(void);\r
+void p32x_update_banks(void);\r
 void p32x_m68k_poll_event(unsigned int flags);\r
 void p32x_sh2_poll_event(SH2 *sh2, unsigned int flags, unsigned int m68k_cycles);\r
 \r
@@ -983,7 +984,7 @@ static __inline int isspace_(int c)
 // emulation event logging\r
 #ifndef EL_LOGMASK\r
 # ifdef __x86_64__ // HACK\r
-#  define EL_LOGMASK (EL_STATUS|EL_IDLE|EL_ANOMALY)\r
+#  define EL_LOGMASK (EL_STATUS|EL_ANOMALY)\r
 # else\r
 #  define EL_LOGMASK (EL_STATUS)\r
 # endif\r