Project

General

Profile

Actions

Emulator Issues #13526

closed

"Attempted to flush discarded PPC reg 4" durring stepping inside the debugger

Added by Neui 5 months ago. Updated 5 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-21525

Description

Game Name?
Pokemon XD Gale of Darkness (PAL), other versions of the game probably also work

Game ID?
GXXP01

MD5 Hash?
f36d14bebf8fea6a046404bff6adb7e6

What's the problem? Describe what went wrong.
When using the debugger inside Dolphin Emulator and stepping onto a certain instruction, it'll cause an assert. However, it seems to continue running just fine.

What steps will reproduce the problem?

  1. Have the debugger UI open with the code widget open.
  2. Start Pokemon XD Gale of Darkness (PAL version, GXXP01, probably also works on other versions but I don't have them).
  3. Before the health and safety screen disappears, go to 8019f43c (an lwz instruction) in the code widget and set a breakpoint there.
  4. After the health and safety screen disappears, at the beginning of the logo fade in, the breakpoint should hit (twice).
  5. Click on "Step Over" 4 times. On the last Step (on addi), the following message appears:
An error occurred.

Attempted to flush discarded PPC reg 4

Condition: false
File: dolphin-emu/Source/Core/Core/PowerPC/Jit64/RegCache/JitRegCache.cpp
Line: 413
Function: Flush

Ignore and continue?

It doesn't seem to cause any other issues.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
Yes, 5.0-21418, 20665ebce715165c9e126a0c43dddb2453d26535 (compiled manually)

Is the issue present in the latest stable version?
Not tested, but I used an older version before Qt6 became a requirement where I didn't have the issue.

If the issue isn't present in the latest stable version, which is the first broken version?
I haven't bisected yet.

What are your PC specifications?
Ubuntu 20.04
AMD Ryzen 7 5700U with Radeon Graphics

Is there anything else that can help developers narrow down the issue?
This doesn't happen when using JIT → Interpreter Core.
Using "Step" instead of "Step over" doesn't seem to make the issue occur.
I tried to make a minimal example with devkitPro but I was unable to reproduce it there without putting more time into it.

Actions

Also available in: Atom PDF