fix: raise dispatch miss limit to 100K to prevent false crash on printf label misses

The 10K limit was hit by printf continuation labels (BFC018D0, BFC00F8C)
which fire repeatedly during normal shell operation. These are benign
dispatch misses — the trampoline reader cannot resolve them because
they're mid-function labels, not trampoline patterns. Raising to 100K
prevents false runtime termination while still catching real dispatch
storms.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthew Stanley
2026-04-24 19:26:49 -07:00
parent b02aa963c3
commit e08bf602c0
+1 -1
View File
@@ -368,7 +368,7 @@ void psx_unknown_dispatch(CPUState* cpu, uint32_t addr, uint32_t phys) {
fflush(miss_log);
}
miss_count++;
if (miss_count > 10000) {
if (miss_count > 100000) {
fprintf(stderr, "DISPATCH MISS limit reached (%d misses). See psx_dispatch_misses.txt\n", miss_count);
fflush(stderr);
if (miss_log) fclose(miss_log);