From a0a7eb27b6a2fca089f062d285882f66415a2041 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 12 Jul 2014 16:20:43 -0700 Subject: [PATCH] VAX: Allow potentially pending console output to be delivered prior to halting back to the sim> prompt --- VAX/vax_cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VAX/vax_cpu.c b/VAX/vax_cpu.c index 8aa276de..f9b9eef8 100644 --- a/VAX/vax_cpu.c +++ b/VAX/vax_cpu.c @@ -2590,6 +2590,15 @@ for ( ;; ) { else if (cpu_unit.flags & UNIT_CONH) /* halt to console? */ cc = con_halt (CON_HLTINS, cc); /* enter firmware */ else { + /* allow potentially pending console output to */ + /* be displayed before dropping back to scp */ + if (sim_interval <= SERIAL_OUT_WAIT) { + sim_interval -= SERIAL_OUT_WAIT; + temp = sim_process_event (); + if (temp) + ABORT (temp); + SET_IRQL; /* update interrupts */ + } ABORT (STOP_HALT); /* halt to simulator */ }