From 4a4cd3d97785b73721e98f21ccc84033be38e228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 14 Jun 2023 10:23:03 +0200 Subject: [PATCH] Add logging when loading a save state that has "unknown-prefix-mode" set --- Core/MIPS/ARM/ArmJit.cpp | 3 +++ Core/MIPS/ARM64/Arm64Jit.cpp | 3 +++ Core/MIPS/x86/Jit.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/Core/MIPS/ARM/ArmJit.cpp b/Core/MIPS/ARM/ArmJit.cpp index 9105d5bd8af3..f8613d0826bb 100644 --- a/Core/MIPS/ARM/ArmJit.cpp +++ b/Core/MIPS/ARM/ArmJit.cpp @@ -132,6 +132,9 @@ void ArmJit::DoState(PointerWrap &p) if (!s) return; + if (p.mode == PointerWrap::MODE_READ && !js.startDefaultPrefix) { + WARN_LOG(CPU, "Jit: An uneaten prefix was previously detected. Jitting in unknown-prefix mode."); + } Do(p, js.startDefaultPrefix); if (s >= 2) { Do(p, js.hasSetRounding); diff --git a/Core/MIPS/ARM64/Arm64Jit.cpp b/Core/MIPS/ARM64/Arm64Jit.cpp index f50294ede589..7f7f4592569a 100644 --- a/Core/MIPS/ARM64/Arm64Jit.cpp +++ b/Core/MIPS/ARM64/Arm64Jit.cpp @@ -129,6 +129,9 @@ void Arm64Jit::DoState(PointerWrap &p) { return; Do(p, js.startDefaultPrefix); + if (p.mode == PointerWrap::MODE_READ && !js.startDefaultPrefix) { + WARN_LOG(CPU, "Jit: An uneaten prefix was previously detected. Jitting in unknown-prefix mode."); + } if (s >= 2) { Do(p, js.hasSetRounding); if (p.mode == PointerWrap::MODE_READ) { diff --git a/Core/MIPS/x86/Jit.cpp b/Core/MIPS/x86/Jit.cpp index 36acbf5c996c..85285d055c39 100644 --- a/Core/MIPS/x86/Jit.cpp +++ b/Core/MIPS/x86/Jit.cpp @@ -144,6 +144,9 @@ void Jit::DoState(PointerWrap &p) { return; Do(p, js.startDefaultPrefix); + if (p.mode == PointerWrap::MODE_READ && !js.startDefaultPrefix) { + WARN_LOG(CPU, "Jit: An uneaten prefix was previously detected. Jitting in unknown-prefix mode."); + } if (s >= 2) { Do(p, js.hasSetRounding); if (p.mode == PointerWrap::MODE_READ) {