From 91db4b724c1639cb297730d268c7f3eade9c9606 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 13 Oct 2020 17:46:03 +0300 Subject: [PATCH] SPU: fix PUTLLC (TSX-FA) Some forgotten checks may affect performance. --- rpcs3/Emu/Cell/SPUThread.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 491946ecda..1d3ac2c0a0 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -495,6 +495,14 @@ const auto spu_putllc_tx = build_function_asm(cpu_flag::pause)); + c.jc(fail3); + c.mov(x86::rax, x86::qword_ptr(x86::rbx)); + c.and_(x86::rax, -128); + c.cmp(x86::rax, x86::r13); + c.jne(fail2); c.xbegin(tx1); if (s_tsx_avx)