aboutsummaryrefslogtreecommitdiff
path: root/hw/ide.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-17 14:55:30 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-17 14:55:30 +0000
commite1f63470e96665b13d8a71ce8df520ab64fdcb12 (patch)
tree5d2c5e9841b416e618657d3bad86566ed1299b5c /hw/ide.c
parent39dfc926df54cd3c85485edc89abba67b39ccb7f (diff)
Don't fail for "revert to poweron defaults" IDE command, by Carlo
Marcelo Arenas Belon. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2485 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ide.c')
-rw-r--r--hw/ide.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ide.c b/hw/ide.c
index d9c02ab0f6..0cd2521737 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -1729,6 +1729,8 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
goto abort_cmd;
/* XXX: valid for CDROM ? */
switch(s->feature) {
+ case 0xcc: /* reverting to power-on defaults enable */
+ case 0x66: /* reverting to power-on defaults disable */
case 0x02: /* write cache enable */
case 0x82: /* write cache disable */
case 0xaa: /* read look-ahead enable */