PPU: Fix logging of sys_interrupt syscalls

This commit is contained in:
Eladash 2024-03-28 13:35:11 +02:00 committed by Elad Ashkenazi
parent 2f579311b8
commit cc2fa94fa1

View file

@ -2225,7 +2225,7 @@ void ppu_thread::cpu_sleep()
void ppu_thread::cpu_on_stop() void ppu_thread::cpu_on_stop()
{ {
if (current_function) if (current_function && is_stopped())
{ {
if (start_time) if (start_time)
{ {
@ -2235,10 +2235,10 @@ void ppu_thread::cpu_on_stop()
{ {
ppu_log.warning("'%s' aborted", current_function); ppu_log.warning("'%s' aborted", current_function);
} }
current_function = {};
} }
current_function = {};
// TODO: More conditions // TODO: More conditions
if (Emu.IsStopped() && g_cfg.core.ppu_debug) if (Emu.IsStopped() && g_cfg.core.ppu_debug)
{ {