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

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
Keir Fraser committed 2008-04-02 15:30:26 +01:00
1 parent 68a232d6d9
commit cb359ce6b1
1 file changed
+1 -1
+1 -1
View File
@@ -660,7 +660,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));
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.