From b19c089f2a1925006b6db9ba960b288828b348c4 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Thu, 4 Apr 2024 21:21:45 +0300 Subject: [PATCH] Improve stateload cpu tracer error check --- newcpu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newcpu.cpp b/newcpu.cpp index d92df9de..d5ce2e06 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -491,8 +491,9 @@ static bool get_trace(uaecptr addr, int accessmode, int size, uae_u32 *data) x_do_cycles(c); return false; } - if (cputrace.memoryoffset > 0 || cputrace.cyclecounter_pre) { - gui_message(_T("CPU trace: GET %08x %d %d NOT FOUND!\n"), addr, accessmode, size); + if ((cputrace.writecounter > 0 || cputrace.readcounter > 0) && cputrace.cyclecounter_pre) { + gui_message(_T("CPU trace: GET %08x %d %d (%d %d %d) NOT FOUND!\n"), + addr, accessmode, size, cputrace.readcounter, cputrace.writecounter, cputrace.cyclecounter_pre); } check_trace(); *data = 0; -- 2.47.3