]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
JIT: always use __fastcall on Windows, also for FS-UAE
authorFrode Solheim <frode@fs-uae.net>
Thu, 17 Sep 2015 17:14:18 +0000 (19:14 +0200)
committerFrode Solheim <frode@fs-uae.net>
Thu, 17 Sep 2015 17:18:09 +0000 (19:18 +0200)
include/sysdeps.h
jit/codegen_x86.cpp

index a6822794aed233db1b8fd12973961e7465db7c87..9d0f7de3a3bb87a9875c2cd239c552d74eac759a 100644 (file)
@@ -53,7 +53,7 @@ using namespace std;
 #error unrecognized CPU type
 #endif
 
-#ifdef _MSC_VER
+#ifdef _WIN32
 /* Parameters are passed in ECX, EDX for both x86 and x86-64 (RCX, RDX).
  * For x86-64, __fastcall is the default, so it isn't really required. */
 #define JITCALL __fastcall
index 74ddaff7a2f9914a30c173694ea66d1e5ef71ab2..cf656dcc686f365deb14cfc93f1af571f5b9e638 100644 (file)
@@ -70,7 +70,7 @@ only target, and it's easier this way... */
 #define REG_RESULT EAX_INDEX
 
 /* The registers subroutines take their first and second argument in */
-#ifdef _MSC_VER
+#ifdef _WIN32
 /* Handle the _fastcall parameters of ECX and EDX */
 #define REG_PAR1 ECX_INDEX
 #define REG_PAR2 EDX_INDEX
@@ -83,7 +83,7 @@ only target, and it's easier this way... */
 #endif
 
 #define REG_PC_PRE EAX_INDEX /* The register we use for preloading regs.pc_p */
-#ifdef _MSC_VER
+#ifdef _WIN32
 #define REG_PC_TMP ECX_INDEX
 #else
 #define REG_PC_TMP ECX_INDEX /* Another register that is not the above */