Emulator Issues #12716
closedError when running simple Hello World program with printf call
0%
Description
What's the problem? Describe what went wrong.
When compiling a simple Hello World program that contains a printf
call with devkitPro/devkitPPC, and executing the resulting ELF/DOL in Dolphin by using -b -e
, it reports an error:
#include <stdio.h>
int main(int argc, char **argv) {
printf("Hello, world!\n");
}
IntCPU: Unknown instruction 00000000 at PC = 80001800 last_PC = 00000000 LR = 80007208
It looks like the error is reported after the print call was intercepted and completed:
59:21:014 Core/HLE/HLE_OS.cpp:85 N[OSREPORT]: 800057cc->800057c0| Hello, world!
What steps will reproduce the problem?
Run a program with a printf
call, see example above.
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, in 5.0-15377.
Is the issue present in the latest stable version?
No, 5.0 works.
If the issue isn't present in the latest stable version, which is the first broken version?
5.0-10956, i.e. https://github.com/dolphin-emu/dolphin/pull/8370 broke it.
What are your PC specifications? (CPU, GPU, Operating System, more)
- OS: macOS 10.15.7
- CPU: 2.9 GHz 6-Core Intel Core i9
- GPUs: Intel UHD Graphics 630, Radeon Pro 560X
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
Files