mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
Memory bugs fixed
This commit is contained in:
parent
369c667faa
commit
c9cd80c089
8 changed files with 33 additions and 30 deletions
|
@ -658,13 +658,13 @@ public:
|
|||
{
|
||||
case MFC_PUT_CMD:
|
||||
{
|
||||
memcpy(Memory + ea, Memory + dmac.ls_offset + lsa, size);
|
||||
memcpy(Memory + ea, Memory + (dmac.ls_offset + lsa), size);
|
||||
return;
|
||||
}
|
||||
|
||||
case MFC_GET_CMD:
|
||||
{
|
||||
memcpy(Memory + dmac.ls_offset + lsa, Memory + ea, size);
|
||||
memcpy(Memory + (dmac.ls_offset + lsa), Memory + ea, size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -841,7 +841,7 @@ public:
|
|||
{
|
||||
const u32 last_q = (buf[last].hi == reservation.data[last].hi);
|
||||
|
||||
if (InterlockedCompareExchange64((volatile long long*)(Memory + (u32)ea + last * 16 + last_q * 8),
|
||||
if (InterlockedCompareExchange64((volatile long long*)(Memory + ((u32)ea + last * 16 + last_q * 8)),
|
||||
buf[last]._u64[last_q], reservation.data[last]._u64[last_q]) == reservation.data[last]._u64[last_q])
|
||||
{
|
||||
MFCArgs.AtomicStat.PushUncond(MFC_PUTLLC_SUCCESS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue