aica arm: stop the cpu if setting an illegal mode instead of crashing

Fixes MINIDUMP-70
This commit is contained in:
Flyinghead 2023-02-03 11:03:08 +01:00
parent 6cfbdf6586
commit f0e4574132
1 changed files with 2 additions and 1 deletions

View File

@ -209,8 +209,9 @@ static void CPUSwitchMode(int mode, bool saveState)
reg[RN_SPSR].I = reg[SPSR_UND].I;
break;
default:
// An illegal mode causes the processor to enter an unrecoverable state
ERROR_LOG(AICA_ARM, "Unsupported ARM mode %02x", mode);
die("Arm error..");
Arm7Enabled = false;
break;
}
armMode = mode;