mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 00:45:37 +00:00
Correctness fix for RSXIOMem
- Make RSXIOMem volatile. - Hint the compiler to check only once the address returned.
This commit is contained in:
parent
b7da3ea5cd
commit
fc253165e2
3 changed files with 17 additions and 13 deletions
|
|
@ -1086,8 +1086,8 @@ s32 cellGcmUnmapEaIoAddress(u32 ea)
|
|||
|
||||
for (u32 i = 0; i < size; i++)
|
||||
{
|
||||
RSXIOMem.io[ea + i] = offsetTable.ioAddress[ea + i] = 0xFFFF;
|
||||
RSXIOMem.ea[io + i] = offsetTable.eaAddress[io + i] = 0xFFFF;
|
||||
RSXIOMem.io[ea + i].release(offsetTable.ioAddress[ea + i] = 0xFFFF);
|
||||
RSXIOMem.ea[io + i].release(offsetTable.eaAddress[io + i] = 0xFFFF);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1109,8 +1109,8 @@ s32 cellGcmUnmapIoAddress(u32 io)
|
|||
|
||||
for (u32 i = 0; i < size; i++)
|
||||
{
|
||||
RSXIOMem.io[ea + i] = offsetTable.ioAddress[ea + i] = 0xFFFF;
|
||||
RSXIOMem.ea[io + i] = offsetTable.eaAddress[io + i] = 0xFFFF;
|
||||
RSXIOMem.io[ea + i].release(offsetTable.ioAddress[ea + i] = 0xFFFF);
|
||||
RSXIOMem.ea[io + i].release(offsetTable.eaAddress[io + i] = 0xFFFF);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue