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

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
parent d52a7835f8
commit 5e59c6049f

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 */