From 880292592c420e94634cc8e00cdc0110ca285e21 Mon Sep 17 00:00:00 2001 From: Mike <99037623+MikeIsAStar@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:35:50 -0400 Subject: [PATCH] Log the contents of the General Purpose Registers when an unrecoverable exception occurs (#66) This information is valuable for individuals utilizing Lime3DS to assist in debugging processes. --- src/core/arm/dynarmic/arm_dynarmic.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp index dbf6ea71c..2cdc9c119 100644 --- a/src/core/arm/dynarmic/arm_dynarmic.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic.cpp @@ -99,6 +99,9 @@ public: case Dynarmic::A32::Exception::PreloadInstruction: return; } + for (int i = 0; i < 16; i++) { + LOG_CRITICAL(Debug, "r{:02d} = {:08X}", i, parent.GetReg(i)); + } ASSERT_MSG(false, "ExceptionRaised(exception = {}, pc = {:08X}, code = {:08X})", exception, pc, MemoryReadCode(pc).value()); }