32x: drc: mmap dram+rom for direct dereference
[picodrive.git] / pico / pico_int.h
index 838af54..f5481fc 100644 (file)
@@ -229,12 +229,6 @@ extern int z80_scanline_cycles;  /* cycles done until z80_scanline */
 \r
 #define cycles_68k_to_z80(x) ((x)*957 >> 11)\r
 \r
-#define Z80_MEM_SHIFT 13\r
-extern unsigned long z80_read_map [0x10000 >> Z80_MEM_SHIFT];\r
-extern unsigned long z80_write_map[0x10000 >> Z80_MEM_SHIFT];\r
-typedef unsigned char (z80_read_f)(unsigned short a);\r
-typedef void (z80_write_f)(unsigned int a, unsigned char data);\r
-\r
 // ----------------------- SH2 CPU -----------------------\r
 \r
 #include "cpu/sh2/sh2.h"\r
@@ -475,6 +469,8 @@ typedef struct
 #define SH2_DRCBLK_RAM_SHIFT 1\r
 #define SH2_DRCBLK_DA_SHIFT  1\r
 \r
+#define SH2_WRITE_SHIFT 25\r
+\r
 struct Pico32x\r
 {\r
   unsigned short regs[0x20];\r
@@ -783,6 +779,18 @@ extern void lprintf(const char *fmt, ...);
 #define elprintf(w,f,...)\r
 #endif\r
 \r
+// profiling\r
+#ifdef PPROF\r
+#include <platform/linux/pprof.h>\r
+#else\r
+#define pprof_init()\r
+#define pprof_finish()\r
+#define pprof_start(x)\r
+#define pprof_end(...)\r
+#define pprof_end_sub(...)\r
+#endif\r
+\r
+// misc\r
 #ifdef _MSC_VER\r
 #define cdprintf\r
 #else\r