CEmu icon indicating copy to clipboard operation
CEmu copied to clipboard

Doesn't work on big-endian architectures

Open Heath123 opened this issue 1 year ago • 4 comments

(Thanks for reporting an issue! Please make sure to fill out the blanks below.)

What's wrong, and with what software version?

Operating System: Debian for big-endian PowerPC emulated under qemu-user, or the Casio CG50 calculator CEmu version: … (see in the About CEmu menu) I'm using the SDL GUI so there is no menu but it's the latest commit from GitHub Describe your issue:
This happens: [CEmu] NMI reset caused by writing to the stack limit at address 000000. Hint: Probably a stack overflow (aka too much recursion). and I see a black screen

What are the steps to reproduce this issue?

  1. Modify the SDL build to actually print out the messages like this:
void gui_console_printf(const char *format, ...)
{
    va_list args;
    va_start(args, format);
    vprintf(format, args);
    va_end(args);
}

void gui_console_err_printf(const char *format, ...)
{
    va_list args;
    va_start(args, format);
    vfprintf(stderr, format, args);
    va_end(args);
}
  1. Compile it for a big-endian system
  2. Run it with cemu-sdl -r /ti-84ce.rom and see this

Any logs, error output, screenshot, other comments...?

[CEmu] NMI reset caused by writing to the stack limit at address 000000. Hint: Probably a stack overflow (aka too much recursion). image

Heath123 avatar May 18 '23 10:05 Heath123