Revision 64c68080

b/hw/lsi53c895a.c
1199 1199
        }
1200 1200
    }
1201 1201
    if (insn_processed > 10000 && !s->waiting) {
1202
        /* Some windows drivers make the device spin waiting for a memory
1203
           location to change.  If we have been executed a lot of code then
1204
           assume this is the case and force an unexpected device disconnect.
1205
           This is apparently sufficient to beat the drivers into submission.
1206
         */
1202 1207
        if (!(s->sien0 & LSI_SIST0_UDC))
1203 1208
            fprintf(stderr, "inf. loop with UDC masked\n");
1204 1209
        lsi_script_scsi_interrupt(s, LSI_SIST0_UDC, 0);

Also available in: Unified diff