PDP11, Qbus & Unibus VAX: Fix DUP device loopback on device reset

- When the DUP TXCSR DEVICE_RESET bit is set, which clears the MAISEL bits, any
existing tmxr loopback must also be removed.
This commit is contained in:
Trevor Warwick 2022-05-18 16:38:10 +01:00 committed by Mark Pizzolato
parent b41acb30c1
commit 775e2f1f79

View file

@ -600,6 +600,8 @@ switch ((PA >> 1) & 03) { /* case on PA<2:1> */
dup_txcsr[dup] |= (data & TXCSR_WRITEABLE);
if (dup_txcsr[dup] & TXCSR_M_DRESET) {
dup_clear(dup, dup_W3[dup]);
/* must also clear loopback if it was set */
tmxr_set_line_loopback (&dup_desc.ldsc[dup], FALSE);
break;
}
if (TXCSR_GETMAISEL(dup_txcsr[dup]) != TXCSR_GETMAISEL(orig_val)) { /* Maint Select Changed */