mirror of
https://github.com/simh/simh.git
synced 2026-01-13 23:35:57 +00:00
TIMER: Make sure internal timer doesn't restart after a CONTINUE unless needed
This commit is contained in:
parent
f285e939a8
commit
b83dae2db2
@ -1926,6 +1926,7 @@ if ((tmr == newtmr) &&
|
||||
if (sim_calb_tmr == SIM_NTIMERS) { /* was old the internal timer? */
|
||||
sim_debug (DBG_TRC, &sim_timer_dev, "_rtcn_configure_calibrated_clock() - Stopping Internal Calibrated Timer, New Timer = %d (%dHz)\n", tmr, rtc_hz[tmr]);
|
||||
rtc_initd[SIM_NTIMERS] = 0;
|
||||
rtc_hz[SIM_NTIMERS] = 0;
|
||||
sim_cancel (&SIM_INTERNAL_UNIT);
|
||||
/* Migrate any coscheduled devices to the standard queue and they will requeue themselves */
|
||||
while (sim_clock_cosched_queue[SIM_NTIMERS] != QUEUE_LIST_END) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user