1
0
mirror of https://github.com/simh/simh.git synced 2026-04-27 12:28:49 +00:00

SCSI, VAX & PDP11: Force Read Only attach for CDROM devices

As reported in #1094
This commit is contained in:
Mark Pizzolato
2021-11-07 10:06:40 -08:00
parent 6d9a55d351
commit 4c44975e98
2 changed files with 4 additions and 0 deletions

View File

@@ -2960,6 +2960,8 @@ t_stat rq_attach (UNIT *uptr, CONST char *cptr)
MSC *cp = rq_ctxmap[uptr->cnum];
t_stat r;
if (drv_tab[GET_DTYPE (uptr->flags)].flgs & RQDF_RO)
sim_switches |= SWMASK ('R');
r = sim_disk_attach_ex (uptr, cptr, RQ_NUMBY, sizeof (uint16), (uptr->flags & UNIT_NOAUTO), DBG_DSK,
drv_tab[GET_DTYPE (uptr->flags)].name, 0, 0, (uptr->flags & UNIT_NOAUTO) ? NULL : drv_types);
if (r != SCPE_OK)