1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 20:41:45 +01:00

Revert d1fd4d5000d72bac4b86f0a9c46ea70020d55d92

This commit is contained in:
Ani 2018-08-19 17:47:54 +01:00 committed by Ivan
parent 25ec3789fe
commit 6fc869e21b

View File

@ -1072,9 +1072,8 @@ extern bool ppu_stwcx(ppu_thread& ppu, u32 addr, u32 reg_value)
if (LIKELY(g_use_rtm))
{
if (data.compare_and_swap_test(static_cast<u32>(ppu.rdata), reg_value))
if (ppu_stwcx_tx(addr, ppu.rtime, ppu.rdata, reg_value))
{
vm::reservation_update(addr, sizeof(u32));
vm::reservation_notifier(addr, sizeof(u32)).notify_all();
ppu.raddr = 0;
return true;
@ -1165,9 +1164,8 @@ extern bool ppu_stdcx(ppu_thread& ppu, u32 addr, u64 reg_value)
if (LIKELY(g_use_rtm))
{
if (data.compare_and_swap_test(ppu.rdata, reg_value))
if (ppu_stdcx_tx(addr, ppu.rtime, ppu.rdata, reg_value))
{
vm::reservation_update(addr, sizeof(u64));
vm::reservation_notifier(addr, sizeof(u64)).notify_all();
ppu.raddr = 0;
return true;