diff options
| author | Mat M <mathew1800@gmail.com> | 2018-08-25 12:29:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-25 12:29:02 -0400 |
| commit | 31b4461ff6cdedd3ef557b4bcc0874c21975fec4 (patch) | |
| tree | ad430840ce8a73bc7f5034040d44ae991b8507e8 /Source | |
| parent | 476037d1f232779f30e40d63dc5c7a0d352b2d2c (diff) | |
| parent | 5f95ed5263d795f2b5858d2ea75860d3ffd851b0 (diff) | |
Merge pull request #7361 from BhaaLseN/jit-global
Jit64: get rid of global g_jit accesses
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp index b660906875..bf42fa3774 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStorePaired.cpp @@ -72,7 +72,7 @@ void Jit64::psq_stXX(UGeckoInstruction inst) else { // Stash PC in case asm_routine causes exception - MOV(32, PPCSTATE(pc), Imm32(g_jit->js.compilerPC)); + MOV(32, PPCSTATE(pc), Imm32(js.compilerPC)); // We know what GQR is here, so we can load RSCRATCH2 and call into the store method directly // with just the scale bits. MOV(32, R(RSCRATCH2), Imm32(gqrValue & 0x3F00)); @@ -86,7 +86,7 @@ void Jit64::psq_stXX(UGeckoInstruction inst) else { // Stash PC incase asm_routine causes exception - MOV(32, PPCSTATE(pc), Imm32(g_jit->js.compilerPC)); + MOV(32, PPCSTATE(pc), Imm32(js.compilerPC)); // Some games (e.g. Dirt 2) incorrectly set the unused bits which breaks the lookup table code. // Hence, we need to mask out the unused bits. The layout of the GQR register is // UU[SCALE]UUUUU[TYPE] where SCALE is 6 bits and TYPE is 3 bits, so we have to AND with @@ -154,7 +154,7 @@ void Jit64::psq_lXX(UGeckoInstruction inst) else { // Stash PC in case asm_routine causes exception - MOV(32, PPCSTATE(pc), Imm32(g_jit->js.compilerPC)); + MOV(32, PPCSTATE(pc), Imm32(js.compilerPC)); // Get the high part of the GQR register OpArg gqr = PPCSTATE(spr[SPR_GQR0 + i]); gqr.AddMemOffset(2); |
