1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

PDP11, VAXen: Avoid potential for incorrect unit names on VH device

This commit is contained in:
Mark Pizzolato 2022-07-06 06:52:47 -10:00
parent 05d3d2c320
commit 8612ec38ae

View File

@ -1692,6 +1692,10 @@ static t_stat vh_reset ( DEVICE *dptr )
}
for (i = 0; i < VH_MUXES; i++) {
if (i < vh_desc.lines/VH_LINES) {
char uname[16];
snprintf (uname, sizeof (uname), "%s%d", vh_dev.name, i);
sim_set_uname (&vh_unit[i], uname);
/* if Unibus, force DHU mode */
if (UNIBUS)
vh_unit[i].flags |= UNIT_MODEDHU;