mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
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:
parent
fdca6384f2
commit
e70606c75b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user