fix ide detection with raw images
This change makes files passed to -hda be detected again with current CVS
Jani
Index: hw/ide.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/ide.c,v
retrieving revision 1.26
ide.c +1 -2
@@ -1655,10 +1655,9 @@break ;default :case 7 : -if ((!ide_if[0 ].bs && !ide_if[1 ].bs) || - (s != ide_if && !s->bs)) +if (!ide_if[0 ].bs && !ide_if[1 ].bs) ret =0 ;
else
ret = s->status;Could you explain better?
Quoted 15 lines
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En nombre de Jani Monoses
Enviado el: jueves, 05 de agosto de 2004 16:36
Para: [email protected]
Asunto: [Qemu-devel] fix ide detection with raw imagesThis change makes files passed to -hda be detected again with current CVS
Jani
Quoted 1 line
Could you explain better?
I should have added 'for me'. Detecting the ide driver from ecos does not work because that case in the switch always returned 0; only there in the switch the bs field was checked for NULL. So reading the status register always gave 0 => no chance for the READY bit to be seen asserted.
Quoted 2 lines
Quoted 2 lines
This change makes files passed to -hda be detected again with current CVS