Skip to content

Commit

Permalink
Partial revert of 3be687c
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Apr 28, 2020
1 parent 7da8ba5 commit 9a38661
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions rpcs3/Emu/Cell/PPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,21 +1045,10 @@ static T ppu_load_acquire_reservation(ppu_thread& ppu, u32 addr)
}
}())
{
ppu.rtime = vm::reservation_acquire(addr, sizeof(T));

if (ppu.rtime & 127)
{
if (!(ppu.state & cpu_flag::wait))
{
ppu.state += cpu_flag::wait;
}

continue;
}

ppu.rtime = vm::reservation_acquire(addr, sizeof(T)) & -128;
ppu.rdata = data;

if (vm::reservation_acquire(addr, sizeof(T)) == ppu.rtime) [[likely]]
if ((vm::reservation_acquire(addr, sizeof(T)) & -128) == ppu.rtime) [[likely]]
{
ppu.test_stopped();

Expand Down

0 comments on commit 9a38661

Please sign in to comment.