Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added code to update the PC before doing a fastmem write. Fixes games…
… with freezing and FIFO errors since r2a339c926e43c11f7b9acc8d3af202f0be54e2b0.
  • Loading branch information
skidau committed Oct 5, 2013
1 parent 6498a77 commit 2d00c3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/Core/Src/PowerPC/JitCommon/Jit_Util.cpp
Expand Up @@ -277,6 +277,7 @@ void EmuCodeBlock::SafeWriteRegToReg(X64Reg reg_value, X64Reg reg_addr, int acce
#endif
)
{
MOV(32, M(&PC), Imm32(jit->js.compilerPC)); // Helps external systems know which instruction triggered the write
u8 *mov = UnsafeWriteRegToReg(reg_value, reg_addr, accessSize, offset, !(flags & SAFE_WRITE_NO_SWAP));
if (accessSize == 8)
{
Expand Down

0 comments on commit 2d00c3a

Please sign in to comment.