Commit 769bec7271eaaf908a21fb9c1e40937f04af3e90
1 parent
655aa52a
IDE fix for NT4 (Ben Pfaf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1107 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
hw/ide.c
@@ -1477,7 +1477,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) | @@ -1477,7 +1477,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) | ||
1477 | case WIN_SPECIFY: | 1477 | case WIN_SPECIFY: |
1478 | case WIN_RECAL: | 1478 | case WIN_RECAL: |
1479 | s->error = 0; | 1479 | s->error = 0; |
1480 | - s->status = READY_STAT; | 1480 | + s->status = READY_STAT | SEEK_STAT; |
1481 | ide_set_irq(s); | 1481 | ide_set_irq(s); |
1482 | break; | 1482 | break; |
1483 | case WIN_SETMULT: | 1483 | case WIN_SETMULT: |
@@ -1875,6 +1875,7 @@ static void ide_init2(IDEState *ide_state, int irq, | @@ -1875,6 +1875,7 @@ static void ide_init2(IDEState *ide_state, int irq, | ||
1875 | s->heads = 16; | 1875 | s->heads = 16; |
1876 | s->sectors = 63; | 1876 | s->sectors = 63; |
1877 | } | 1877 | } |
1878 | + bdrv_set_geometry_hint(s->bs, s->cylinders, s->heads, s->sectors); | ||
1878 | } | 1879 | } |
1879 | if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM) { | 1880 | if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM) { |
1880 | s->is_cdrom = 1; | 1881 | s->is_cdrom = 1; |