[Simh] idling documentation??

Mark Martinec Mark.Martinec+simh at ijs.si
Mon Dec 20 15:02:02 EST 2010


> Have you tried with the vax-idle patch on sourceforge?

Yes, I have. Doesn't help if sim_idle_rate_ms is zero
(which is a result of a sub-millisecond clock resolution).


> Works well for me.

Lucky you.


As a quick hack I tried:

--- sim_timer.c~        2008-11-20 14:03:30.000000000 +0100
+++ sim_timer.c 2010-12-17 17:36:36.166720359 +0100
@@ -446,2 +446,3 @@
 sim_idle_rate_ms = sim_os_ms_sleep_init ();             /* get OS timer rate */
+if (sim_idle_rate_ms <= 0) sim_idle_rate_ms = 1;
 return (sim_idle_rate_ms != 0);

which at least gets me through past the 'Command not allowed',
although the stall still happens after a while, so I guess that more
changes to timing code may be necessary.

  Mark



More information about the Simh mailing list