mirror of
https://github.com/simh/simh.git
synced 2026-01-30 13:27:50 +00:00
SCP: Properly abort simulator startup when timing info is unreasonable
Erratic host system load conditions can cause timing behaviors to not be well behaved.
This commit is contained in:
@@ -1160,7 +1160,9 @@ else {
|
|||||||
fprintf (stderr, "Can't properly determine host system clock capabilities.\n");
|
fprintf (stderr, "Can't properly determine host system clock capabilities.\n");
|
||||||
fprintf (stderr, "Minimum Host Sleep Time: %u ms\n", sim_os_sleep_min_ms);
|
fprintf (stderr, "Minimum Host Sleep Time: %u ms\n", sim_os_sleep_min_ms);
|
||||||
fprintf (stderr, "Minimum Host Sleep Incr Time: %u ms\n", sim_os_sleep_inc_ms);
|
fprintf (stderr, "Minimum Host Sleep Incr Time: %u ms\n", sim_os_sleep_inc_ms);
|
||||||
|
fprintf (stderr, "Idle Rate Milliseconds: %u ms\n", sim_idle_rate_ms);
|
||||||
fprintf (stderr, "Host Clock Resolution: %u ms\n", sim_os_clock_resoluton_ms);
|
fprintf (stderr, "Host Clock Resolution: %u ms\n", sim_os_clock_resoluton_ms);
|
||||||
|
sim_idle_rate_ms = 0; /* Force error return */
|
||||||
}
|
}
|
||||||
return ((sim_idle_rate_ms == 0) || (sim_os_clock_resoluton_ms == 0));
|
return ((sim_idle_rate_ms == 0) || (sim_os_clock_resoluton_ms == 0));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user