Skip to content

Commit f32678c

Browse files
committed
SPU: Fix spu_thread::reservation_check(hash)
1 parent e0fdc26 commit f32678c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpcs3/Emu/Cell/SPUThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5594,7 +5594,7 @@ bool spu_thread::reservation_check(u32 addr, u32 hash, atomic_t<u64, 64>* range_
55945594
if ((addr >> 28) < 2 || (addr >> 28) == 0xd)
55955595
{
55965596
// Always-allocated memory does not need strict checking (vm::main or vm::stack)
5597-
return compute_rdata_hash32(*vm::get_super_ptr<decltype(rdata)>(addr)) == hash;
5597+
return compute_rdata_hash32(*vm::get_super_ptr<decltype(rdata)>(addr)) != hash;
55985598
}
55995599

56005600
// Ensure data is allocated (HACK: would raise LR event if not)

0 commit comments

Comments
 (0)