1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +00:00

Fixed sim_idle to account for a reasonable number of cycles which have passed when an asynchrnous event terminated the idle wait.

Also corrected the text of a printf which described the units of the asynch latency variable as nano seconds instead of microseconds.
This commit is contained in:
Mark Pizzolato
2011-04-22 05:47:26 -07:00
parent 049540aa20
commit f7b53a5fe9
2 changed files with 8 additions and 1 deletions

2
scp.c
View File

@@ -1823,7 +1823,7 @@ else {
fprintf (st, " event delay %d, queue time %d\n", uptr->a_event_time, uptr->a_sim_interval);
}
}
fprintf (st, "asynch latency: %d microseconds\n", sim_asynch_latency);
fprintf (st, "asynch latency: %d nanoseconds\n", sim_asynch_latency);
fprintf (st, "asynch instruction latency: %d instructions\n", sim_asynch_inst_latency);
pthread_mutex_unlock (&sim_asynch_lock);
#endif