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
This commit is contained in:
Mark Pizzolato 2016-05-13 11:43:09 -07:00
parent fdca6384f2
commit e70606c75b

View file

@ -996,7 +996,7 @@ switch (opcode) {
break; break;
case TD_OPINI: case TD_OPINI:
for (unit=0; unit < ctlr->dptr->numunits; unit++) for (unit=0; unit < 2; unit++)
sim_cancel (ctlr->uptr+unit); sim_cancel (ctlr->uptr+unit);
ctlr->ibptr = 0; ctlr->ibptr = 0;
ctlr->obptr = 0; ctlr->obptr = 0;