diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-09 16:48:57 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-10-09 16:48:57 +0000 |
commit | 769bec7271eaaf908a21fb9c1e40937f04af3e90 (patch) | |
tree | a716773d1c3a574d7cbdcd59089f871b02595c2f | |
parent | 655aa52a90fd6bce4499bbc0eb4264ebd420b3bc (diff) | |
download | qemu-769bec7271eaaf908a21fb9c1e40937f04af3e90.zip qemu-769bec7271eaaf908a21fb9c1e40937f04af3e90.tar.gz qemu-769bec7271eaaf908a21fb9c1e40937f04af3e90.tar.bz2 |
IDE fix for NT4 (Ben Pfaf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1107 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/ide.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1477,7 +1477,7 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) case WIN_SPECIFY: case WIN_RECAL: s->error = 0; - s->status = READY_STAT; + s->status = READY_STAT | SEEK_STAT; ide_set_irq(s); break; case WIN_SETMULT: @@ -1875,6 +1875,7 @@ static void ide_init2(IDEState *ide_state, int irq, s->heads = 16; s->sectors = 63; } + bdrv_set_geometry_hint(s->bs, s->cylinders, s->heads, s->sectors); } if (bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM) { s->is_cdrom = 1; |