]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
ioemu: advertise write cache as enabled only when it actually is.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Apr 2008 14:12:20 +0000 (15:12 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Apr 2008 14:12:20 +0000 (15:12 +0100)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xen-unstable changeset:   17373:b89a5d046aa73918a6fb41a948357d73cbc54bb2
xen-unstable date:        Wed Apr 02 15:30:26 2008 +0100

tools/ioemu/hw/ide.c

index b325be81c99a4340f48ce11471bbff17d153bde0..78ba7d6e623c72f32a537544ceecc5338c0fa36f 100644 (file)
@@ -650,7 +650,7 @@ static void ide_identify(IDEState *s)
     put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     put_le16(p + 84, (1 << 14));
     /* 14=nop 5=write_cache */
-    put_le16(p + 85, (1 << 14) | (1 << 5));
+    put_le16(p + 85, (1 << 14) | (s->write_cache << 5));
     /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
     put_le16(p + 86, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     put_le16(p + 87, (1 << 14));