pprof: workaround for MMSP2 timer glitch, add draw2
[picodrive.git] / pico / pico_int.h
index 68a77c0..f5481fc 100644 (file)
@@ -469,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
@@ -777,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