From e8949267f03e4ee9416e192ee83f9e6fb5b89712 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Tue, 30 Dec 2008 03:45:16 +0000 Subject: [PATCH] I think I figured out why stb and stbu JIT is broken on Linux 64-bit. I don't want to actually attempt to fix it because I can't really test... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1720 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/Jit_LoadStore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_LoadStore.cpp index acfc331ce2..cc74cd53fe 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_LoadStore.cpp @@ -392,6 +392,8 @@ FixupBranch unsafe_addr = J_CC(CC_NZ); BSWAP(accessSize, ABI_PARAM1); #ifdef _M_X64 + // FIXME: On Linux x64, when accessSize == 8, R(ABI_PARAM1) + // refers to BH when we want DIL! MOV(accessSize, MComplex(RBX, ABI_PARAM2, SCALE_1, 0), R(ABI_PARAM1)); #else AND(32, R(ABI_PARAM2), Imm32(Memory::MEMVIEW32_MASK));