From f0e4574132bfc13e9bd089cf290f65c9d2c0c2e0 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 3 Feb 2023 11:03:08 +0100 Subject: [PATCH] aica arm: stop the cpu if setting an illegal mode instead of crashing Fixes MINIDUMP-70 --- core/hw/arm7/arm7.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/hw/arm7/arm7.cpp b/core/hw/arm7/arm7.cpp index 531f48666..8c1c0f212 100644 --- a/core/hw/arm7/arm7.cpp +++ b/core/hw/arm7/arm7.cpp @@ -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;