rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/qemu-pc9821/qemu/hw/ide/core.c @ 77  →  /qemu-pc9821/qemu/hw/ide/core.c @ 78
/qemu-pc9821/qemu/hw/ide/core.c
@@ -1770,8 +1770,10 @@
break;
case 6:
/* FIXME: HOB readback uses bit 7 */
bus->ifs[0].select = (val & ~0x10) | (bus->ifs[0].chs ? 0x80 : 0xa0);
bus->ifs[1].select = (val | 0x10) | (bus->ifs[1].chs ? 0x80 : 0xa0);
bus->ifs[0].select = (val & ~0x10) |
(bus->ifs[0].support_chs ? 0x80 : 0xa0);
bus->ifs[1].select = (val | 0x10) |
(bus->ifs[1].support_chs ? 0x80 : 0xa0);
/* select drive */
bus->unit = (val >> 4) & 1;
break;
@@ -1808,7 +1810,7 @@
ide_set_irq(s->bus);
break;
case WIN_SPECIFY:
if (!(s->select & 0x40)) {
if (s->support_chs && !(s->select & 0x40)) {
uint64_t sectors;
bdrv_get_geometry(s->bs, &sectors);
s->heads = (s->select & 0xf) + 1;