drc: revive x86 dynarec, support x86-64
[picodrive.git] / cpu / sh2 / sh2.h
index 1394f94..407270f 100644 (file)
@@ -1,11 +1,7 @@
 #ifndef __SH2_H__\r
 #define __SH2_H__\r
 \r
-#if !defined(REGPARM) && defined(__i386__) \r
-#define REGPARM(x) __attribute__((regparm(x)))\r
-#else\r
-#define REGPARM(x)\r
-#endif\r
+#include "../../pico/pico_port.h"\r
 \r
 // registers - matches structure order\r
 typedef enum {\r
@@ -92,7 +88,7 @@ void sh2_unpack(SH2 *sh2, const unsigned char *buff);
 int  sh2_execute_drc(SH2 *sh2c, int cycles);\r
 int  sh2_execute_interpreter(SH2 *sh2c, int cycles);\r
 \r
-static inline int sh2_execute(SH2 *sh2, int cycles, int use_drc)\r
+static __inline int sh2_execute(SH2 *sh2, int cycles, int use_drc)\r
 {\r
   int ret;\r
 \r
@@ -122,7 +118,7 @@ void REGPARM(3) p32x_sh2_write32(unsigned int a, unsigned int d, SH2 *sh2);
 // debug\r
 #ifdef DRC_CMP\r
 void do_sh2_trace(SH2 *current, int cycles);\r
-void do_sh2_cmp(SH2 *current);\r
+void REGPARM(1) do_sh2_cmp(SH2 *current);\r
 #endif\r
 \r
 #endif /* __SH2_H__ */\r