mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 19:33:39 +08:00
Add comment to windows SCSI hack.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5295 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
48d7c50f84
commit
64c68080da
@ -1199,6 +1199,11 @@ again:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (insn_processed > 10000 && !s->waiting) {
|
if (insn_processed > 10000 && !s->waiting) {
|
||||||
|
/* Some windows drivers make the device spin waiting for a memory
|
||||||
|
location to change. If we have been executed a lot of code then
|
||||||
|
assume this is the case and force an unexpected device disconnect.
|
||||||
|
This is apparently sufficient to beat the drivers into submission.
|
||||||
|
*/
|
||||||
if (!(s->sien0 & LSI_SIST0_UDC))
|
if (!(s->sien0 & LSI_SIST0_UDC))
|
||||||
fprintf(stderr, "inf. loop with UDC masked\n");
|
fprintf(stderr, "inf. loop with UDC masked\n");
|
||||||
lsi_script_scsi_interrupt(s, LSI_SIST0_UDC, 0);
|
lsi_script_scsi_interrupt(s, LSI_SIST0_UDC, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user