mirror of https://github.com/bsnes-emu/bsnes.git
Fine tuning the stack-overflow tester detection
This commit is contained in:
parent
edf93abff1
commit
18ec502cfe
|
@ -82,7 +82,7 @@ static void vblank(GB_gameboy_t *gb)
|
||||||
|
|
||||||
/* Detect common crashes and stop the test early */
|
/* Detect common crashes and stop the test early */
|
||||||
if (frames < test_length - 1) {
|
if (frames < test_length - 1) {
|
||||||
if (gb->backtrace_size >= 0x300) {
|
if (gb->backtrace_size >= 0x200 || (gb->registers[GB_REGISTER_SP] >= 0xfe00 && gb->registers[GB_REGISTER_SP] < 0xff80)) {
|
||||||
GB_log(gb, "A stack overflow has probably occurred.\n");
|
GB_log(gb, "A stack overflow has probably occurred.\n");
|
||||||
frames = test_length - 1;
|
frames = test_length - 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue