1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

SPU Disasm: Detect sys_event_flag_set_bit syscall

This commit is contained in:
Eladash 2022-06-19 20:09:08 +03:00 committed by Ivan
parent 775caabeeb
commit dc80d000aa

View File

@ -337,6 +337,25 @@ void SPUDisAsm::WRCH(spu_opcode_t op)
fmt::append(last_opcode, " #%s", upd == "empty" ? "IMMEDIATE" : upd);
return;
}
case SPU_WrOutIntrMbox:
{
const u32 code = value._u32[3] >> 24;
if (code == 128u)
{
last_opcode += " #sys_event_flag_set_bit";
}
else if (code == 192u)
{
last_opcode += " #sys_event_flag_set_bit_impatient";
}
else
{
fmt::append(last_opcode, " #%s", SignedHex(value._u32[3]));
}
return;
}
default:
{
fmt::append(last_opcode, " #%s", SignedHex(value._u32[3]));