On Mon, 2023-09-25 20:28:57 +0200, Johnny Billquist <bqt%softjar.se@localhost> wrote: > However, long time ago we (well, not me I think) added a little hack to > allow simh to detect if the CPU is idle by playing with the IPL, if I > remember right. In /usr/src/sys/arch/vax/include/cpu.h: 173 /* 174 * This allows SIMH to recognize the kernel wants to sleep. 175 */ 176 static inline void 177 cpu_idle(void) 178 { 179 int ipl = mfpr(PR_IPL); 180 mtpr(1, PR_IPL); 181 mtpr(ipl, PR_IPL); 182 } MfG, JBG --
Attachment:
signature.asc
Description: PGP signature