From 418e37029cf2e4a03abc111224f0918b79713a6a Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Fri, 22 Aug 2008 11:21:51 +0000 Subject: [PATCH] Typecast function pointer argument of CALL() to void*, since this is not an automatic conversion for GCC. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@267 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/JitAsm.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/JitAsm.cpp b/Source/Core/Core/Src/PowerPC/Jit64/JitAsm.cpp index 5e741d084e..4a86c6b0db 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/JitAsm.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/JitAsm.cpp @@ -93,7 +93,7 @@ void Generate() //MOV(32, R(EBX), Imm32((u32)&Memory::base)); const u8 *outerLoop = GetCodePtr(); - CALL(&CoreTiming::Advance); + CALL(reinterpret_cast(&CoreTiming::Advance)); FixupBranch skipToRealDispatch = J(); //skip the sync and compare first time dispatcher = GetCodePtr(); @@ -104,7 +104,7 @@ void Generate() FixupBranch bail = J_CC(CC_BE); if (Core::bReadTrace || Core::bWriteTrace) { - CALL(&Core::SyncTrace); + CALL(reinterpret_cast(&Core::SyncTrace)); // CMP(32, R(EAX),Imm32(0)); // bail2 = J_CC(); } @@ -138,7 +138,7 @@ void Generate() //Ok, no block, let's jit PUSH(32, M(&PowerPC::ppcState.pc)); - CALL(&Jit); + CALL(reinterpret_cast(&Jit)); ADD(32, R(ESP), Imm8(4)); JMP(dispatcherNoCheck); // no point in special casing this @@ -147,7 +147,7 @@ void Generate() MOV(32, R(EAX), M(&PC)); MOV(32, M(&NPC), R(EAX)); OR(32, M(&PowerPC::ppcState.Exceptions), Imm32(EXCEPTION_FPU_UNAVAILABLE)); - CALL(&PowerPC::CheckExceptions); + CALL(reinterpret_cast(&PowerPC::CheckExceptions)); MOV(32, R(EAX), M(&NPC)); MOV(32, M(&PC), R(EAX)); JMP(dispatcher); @@ -155,14 +155,14 @@ void Generate() SetJumpTarget(bail); doTiming = GetCodePtr(); - CALL(&CoreTiming::Advance); + CALL(reinterpret_cast(&CoreTiming::Advance)); testExceptions = GetCodePtr(); TEST(32, M(&PowerPC::ppcState.Exceptions), Imm32(0xFFFFFFFF)); FixupBranch skipExceptions = J_CC(CC_Z); MOV(32, R(EAX), M(&PC)); MOV(32, M(&NPC), R(EAX)); - CALL(&PowerPC::CheckExceptions); + CALL(reinterpret_cast(&PowerPC::CheckExceptions)); MOV(32, R(EAX), M(&NPC)); MOV(32, M(&PC), R(EAX)); SetJumpTarget(skipExceptions);