First post, by superfury
When I build my x86EMU using the pspsdk for the PSP (with last SDL&SDL_gfx libraries available installed), when I run it on the PC everything runs fine, but when I run it on the PSP (JPCSP emulator), it's slow, runs up to displaying the framerate and BIOS activation before boot, then doesn't respond to any input, but keeps doing nothing (I notice that a SDL thread is running. The CPU thread must have started, because the BIOS text pops up(which is done in the CPU's first instruction at it's reset vector). Anyone can see why it hangs? Is there an external factor (any timer/hardware hanging?)? I can't seem to figure out why the PC build runs fine, but the PSP build loops infinitely somewhere in there (Running the emulator BIOS POST).
My code is at:
https://bitbucket.org/superfury/x86emu
The BIOS POST is at emu/core/emu_bios_post.c, the main routine(containing startup code(main function) and input loop) is at emu/main.c.
Anyone knows what's going wrong on the PSP build? (I know it's using multitasking by means of thread delays: it won't release the current thread until a delay is executed, after which it switches to another thread if available)
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io