Commit 64c68080da429edf30a9857e3a698cb9ed335bd3
1 parent
48d7c50f
Add comment to windows SCSI hack.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5295 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
0 deletions
hw/lsi53c895a.c
... | ... | @@ -1199,6 +1199,11 @@ again: |
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); | ... | ... |