ia64/xen-unstable

changeset 17375:b89a5d046aa7

ioemu: advertise write cache as enabled only when it actually is.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 02 15:30:26 2008 +0100 (2008-04-02)
parents c4a47a5657d9
children 6c83e17c6e89
files tools/ioemu/hw/ide.c
line diff
     1.1 --- a/tools/ioemu/hw/ide.c	Wed Apr 02 13:46:57 2008 +0100
     1.2 +++ b/tools/ioemu/hw/ide.c	Wed Apr 02 15:30:26 2008 +0100
     1.3 @@ -660,7 +660,7 @@ static void ide_identify(IDEState *s)
     1.4      put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
     1.5      put_le16(p + 84, (1 << 14));
     1.6      /* 14=nop 5=write_cache */
     1.7 -    put_le16(p + 85, (1 << 14) | (1 << 5));
     1.8 +    put_le16(p + 85, (1 << 14) | (s->write_cache << 5));
     1.9      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
    1.10      put_le16(p + 86, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
    1.11      put_le16(p + 87, (1 << 14));