1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

TIMER: Make sure remnant usecs are always explicitly removed

This commit is contained in:
Mark Pizzolato
2016-12-30 15:38:40 -08:00
parent dbed84c370
commit 711f6167fb
2 changed files with 7 additions and 6 deletions

View File

@@ -2338,6 +2338,7 @@ if ((sim_calb_tmr != -1) && (rtc_hz[sim_calb_tmr])) { /* Calibrated Timer
if (inst_delay_d > (double)0x7fffffff)
inst_delay_d = (double)0x7fffffff; /* Bound delay to avoid overflow. */
inst_delay = (int32)inst_delay_d;
uptr->usecs_remaining = 0.0; /* make sure there is no remnant here */
#if defined(SIM_ASYNCH_CLOCKS)
if ((sim_asynch_timer) &&
(usec_delay > sim_idle_rate_ms*1000.0)) {