mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-26 20:37:09 +00:00
SPU MFC: Clamp tag and size (#3803)
This commit is contained in:
parent
a4de495093
commit
91fd1465f2
@ -141,8 +141,8 @@ bool RawSPUThread::write_reg(const u32 addr, const u32 value)
|
||||
|
||||
case MFC_Size_Tag_offs:
|
||||
{
|
||||
g_tls_mfc[index].tag = value & 0xff;
|
||||
g_tls_mfc[index].size = value >> 16;
|
||||
g_tls_mfc[index].tag = value & 0x1f;
|
||||
g_tls_mfc[index].size = (value >> 16) & 0x7fff;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1422,13 +1422,13 @@ bool SPUThread::set_ch_value(u32 ch, u32 value)
|
||||
|
||||
case MFC_Size:
|
||||
{
|
||||
ch_mfc_cmd.size = value & 0xffff;
|
||||
ch_mfc_cmd.size = value & 0x7fff;
|
||||
return true;
|
||||
}
|
||||
|
||||
case MFC_TagID:
|
||||
{
|
||||
ch_mfc_cmd.tag = value & 0xff;
|
||||
ch_mfc_cmd.tag = value & 0x1f;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user