On Tue, 2023-12-19 17:45:34 -0500, Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> >> I wonder if idle detection plays a role...
> > I have idle detection enabled, and it is working.
>
> Oh, that reminds me: what is it that simh recognizes as an idle loop?
> Someone quoted the code here, but (a) that was a long time ago and I'm
> not sure I can find it easily and (b) it doesn't clearly delinate what
> signals simh versus what is unrelated accident-of-the-implementation
> code.
sys/arch/vax/include/cpu.h:
168 /*
169 * This allows SIMH to recognize the kernel wants to sleep.
170 */
171 static inline void
172 cpu_idle(void)
173 {
174 int ipl = mfpr(PR_IPL);
175 mtpr(1, PR_IPL);
176 mtpr(ipl, PR_IPL);
177 }
MfG, JBG
--
Attachment:
signature.asc
Description: PGP signature