mirror of
https://github.com/open-simh/simh.git
synced 2026-01-19 01:27:53 +00:00
PDP11: Fix regression where, depending on CPU model, the SR register disappears
This change fixes #623.
This commit is contained in:
parent
3736f4c385
commit
a9061b0332
@ -414,8 +414,10 @@ for (i = 0; i < (int32) dibp->lnt; i = i + 2) { /* create entries */
|
||||
if ((dibp->rd == NULL) && (dibp->wr == NULL) && (dibp->vnum == 0))
|
||||
iodibp[idx] = NULL; /* deregister DIB */
|
||||
else {
|
||||
iodispR[idx] = dibp->rd; /* set rd dispatch */
|
||||
iodispW[idx] = dibp->wr; /* set wr dispatch */
|
||||
if (dibp->rd)
|
||||
iodispR[idx] = dibp->rd; /* set rd dispatch */
|
||||
if (dibp->wr)
|
||||
iodispW[idx] = dibp->wr; /* set wr dispatch */
|
||||
iodibp[idx] = dibp; /* remember DIB */
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user