mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
CDROM detection fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1794 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
307b0c24de
commit
1298fe6316
2
hw/ide.c
2
hw/ide.c
@ -1669,7 +1669,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
||||
case WIN_PIDENTIFY:
|
||||
if (s->is_cdrom) {
|
||||
ide_atapi_identify(s);
|
||||
s->status = READY_STAT;
|
||||
s->status = READY_STAT | SEEK_STAT;
|
||||
ide_transfer_start(s, s->io_buffer, 512, ide_transfer_stop);
|
||||
} else {
|
||||
ide_abort_command(s);
|
||||
|
Loading…
Reference in New Issue
Block a user