mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-29 03:24:36 +00:00
SPU: fix atomicity of inaccurate GETLLAR
This commit is contained in:
parent
8170b91f76
commit
0cc981ec18
@ -3451,7 +3451,7 @@ bool spu_thread::process_mfc_cmd()
|
||||
// Need to check twice for it to be accurate, the code is before and not after this check for:
|
||||
// 1. Reduce time between reservation accesses so TSX panelty would be lowered
|
||||
// 2. Increase the chance of change detection: if GETLLAR has been called again new data is probably wanted
|
||||
if (!g_cfg.core.spu_accurate_getllar || (rtime == vm::reservation_acquire(addr) && cmp_rdata(rdata, data)))
|
||||
if (rtime == vm::reservation_acquire(addr) && (!g_cfg.core.spu_accurate_getllar || cmp_rdata(rdata, data)))
|
||||
{
|
||||
if ([&]() -> bool
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user