TSX: enable same data optimization for PUTLLC

This commit is contained in:
Nekotekina 2021-12-19 02:06:08 +03:00
parent 61c64d1060
commit c0bafbc804

View File

@ -2555,12 +2555,12 @@ bool spu_thread::do_putllc(const spu_mfc_cmd& args)
// TODO: Limit scope!!
rsx::reservation_lock rsx_lock(addr, 128);
if (!g_use_rtm && rtime != res)
if (rtime != res)
{
return false;
}
if (!g_use_rtm && cmp_rdata(to_write, rdata))
if (cmp_rdata(to_write, rdata))
{
// Writeback of unchanged data. Only check memory change
return cmp_rdata(rdata, vm::_ref<spu_rdata_t>(addr)) && res.compare_and_swap_test(rtime, rtime + 128);