workaround TRealXMultiply branching to invalid instruction

This commit is contained in:
Ash Wolf 2019-12-26 01:58:07 +00:00
parent c70ea2828b
commit c3e6c95542
1 changed files with 1 additions and 0 deletions

View File

@ -365,6 +365,7 @@ uint32_t ARM710::execDataProcessing(bool I, uint32_t Opcode, bool S, uint32_t Rn
if (Rd == 15) { if (Rd == 15) {
// Writing to PC // Writing to PC
// Special things occur here! // Special things occur here!
GPRs[Rd] &= ~3; // TODO is this really necessary??
prefetchCount = 0; prefetchCount = 0;
if (S && isPrivileged()) { if (S && isPrivileged()) {
// We SHOULD be privileged // We SHOULD be privileged