From e70606c75bd5579112493e9512b82fd53363ea88 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 13 May 2016 11:43:09 -0700 Subject: [PATCH] PDP11, all VAX: Fix handling of TU58 initialization command. The processing of initialization commands improperly attempted to initialize all controllers AND these attempts (for controllers beyond 0) referenced beyond the bounds of the unit array. This problem was reported in issue #309 --- PDP11/pdp11_td.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP11/pdp11_td.c b/PDP11/pdp11_td.c index 8d05b26c..7f02861b 100644 --- a/PDP11/pdp11_td.c +++ b/PDP11/pdp11_td.c @@ -996,7 +996,7 @@ switch (opcode) { break; case TD_OPINI: - for (unit=0; unit < ctlr->dptr->numunits; unit++) + for (unit=0; unit < 2; unit++) sim_cancel (ctlr->uptr+unit); ctlr->ibptr = 0; ctlr->obptr = 0;