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.
This commit is contained in:
Mike 2024-04-10 16:35:50 -04:00 committed by GitHub
parent a47bd06da9
commit 880292592c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());
}