mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user