From 6c92b785e6a8678a5e005d5af6cfaf34a729f123 Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Thu, 17 Sep 2015 19:14:18 +0200 Subject: [PATCH] JIT: always use __fastcall on Windows, also for FS-UAE --- include/sysdeps.h | 2 +- jit/codegen_x86.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.47.3