summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-12-03 03:07:35 -0800
committerGabe Black <gabeblack@google.com>2014-12-03 03:07:35 -0800
commitecec8cde63666221dc29160629473247aac9a055 (patch)
tree0b113ce23339c74b42686eaa0281261206f0703e
parentbce58726f35a97ad150e129160c611d6f7ca7417 (diff)
downloadgem5-ecec8cde63666221dc29160629473247aac9a055.tar.xz
ide: Accept the IDLE (0xe3) ATA command.
This command is supposed to set up a timer which will put the drive into a standby mode if it isn't sent a command within a given time out. Since most of the timeouts are generally significantly longer than a simulation would run anyway, and we don't have an implementation for standby mode to begin with, we can accept the command, do nothing, and report success.
-rw-r--r--src/dev/ide_disk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dev/ide_disk.cc b/src/dev/ide_disk.cc
index b910c8a6a..4bf1a13c8 100644
--- a/src/dev/ide_disk.cc
+++ b/src/dev/ide_disk.cc
@@ -645,6 +645,7 @@ IdeDisk::startCommand()
case WDSF_SEEK:
case SET_FEATURES:
case WDCC_SETMULTI:
+ case WDCC_IDLE:
devState = Command_Execution;
action = ACT_CMD_COMPLETE;
break;