From: Frode Solheim Date: Thu, 17 Sep 2015 17:14:18 +0000 (+0200) Subject: JIT: always use __fastcall on Windows, also for FS-UAE X-Git-Tag: 3200~70^2~1 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=6c92b785e6a8678a5e005d5af6cfaf34a729f123;p=francis%2Fwinuae.git JIT: always use __fastcall on Windows, also for FS-UAE --- diff --git a/include/sysdeps.h b/include/sysdeps.h index a6822794..9d0f7de3 100644 --- a/include/sysdeps.h +++ b/include/sysdeps.h @@ -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 diff --git a/jit/codegen_x86.cpp b/jit/codegen_x86.cpp index 74ddaff7..cf656dcc 100644 --- a/jit/codegen_x86.cpp +++ b/jit/codegen_x86.cpp @@ -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 */