summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-02 18:01:09 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-02 18:01:09 -0700
commit80aa771dbc1a779b5c6fc7341e9b52f968cb7123 (patch)
tree06e227f6e51a9059931c4e9f72e8330288eee62b /src/dev
parentaff57202b4665b997ea257609dee0f9e68169b0f (diff)
downloadgem5-80aa771dbc1a779b5c6fc7341e9b52f968cb7123.tar.xz
IDE: Configure the IDE control to reflect the initial value of the command register.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/ide_ctrl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev/ide_ctrl.cc b/src/dev/ide_ctrl.cc
index 3d4e71888..a8cceda1f 100644
--- a/src/dev/ide_ctrl.cc
+++ b/src/dev/ide_ctrl.cc
@@ -107,6 +107,9 @@ IdeController::IdeController(Params *p)
}
primary.select(false);
secondary.select(false);
+
+ ioEnabled = (config.command & htole(PCI_CMD_IOSE));
+ bmEnabled = (config.command & htole(PCI_CMD_BME));
}
bool