implement msr and mrs for the x64 JIT

This commit is contained in:
RSDuck
2020-04-25 19:35:40 +02:00
parent 68d552074b
commit a9dd6e30ad
4 changed files with 134 additions and 2 deletions

View File

@ -427,6 +427,10 @@ Info Decode(bool thumb, u32 num, u32 instr)
res.Kind = ak_UNK;
}
}
if (res.Kind == ak_MRS && !(instr & (1 << 22)))
res.ReadFlags |= flag_N | flag_Z | flag_C | flag_V;
if ((res.Kind == ak_MSR_IMM || res.Kind == ak_MSR_REG) && instr & (1 << 19))
res.WriteFlags |= flag_N | flag_Z | flag_C | flag_V;
if (data & A_Read0)
res.SrcRegs |= 1 << (instr & 0xF);