Skip to content

Commit

Permalink
Add logging when loading a save state that has "unknown-prefix-mode" set
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jun 14, 2023
1 parent 76c4064 commit 4a4cd3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/MIPS/ARM/ArmJit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions Core/MIPS/ARM64/Arm64Jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions Core/MIPS/x86/Jit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a4cd3d

Please sign in to comment.