VERY experimental Nintendo Switch 2 emulator
C++
svcBreak, Signalling to the debugger should not kill execution
David Marcec0cede922910f
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cppindex 6c4af7e47c..7b594ed16a 100644--- a/src/core/hle/kernel/svc.cpp+++ b/src/core/hle/kernel/svc.cpp@@ -303,11 +303,18 @@ static ResultCode ArbitrateUnlock(VAddr mutex_addr) {/// Break program executionstatic void Break(u64 reason, u64 info1, u64 info2) {- LOG_CRITICAL(- Debug_Emulated,- "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",- reason, info1, info2);- ASSERT(false);+ if ((reason & (1 << 31)) == 0) {+ LOG_CRITICAL(+ Debug_Emulated,+ "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",+ reason, info1, info2);+ } else {+ LOG_ERROR(+ Debug_Emulated,+ "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",+ reason, info1, info2);+ ASSERT(false);+ }}/// Used to output a message on a debug hardware unit - does nothing on a retail unit