diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-02 18:01:09 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-02 18:01:09 -0700 |
commit | 80aa771dbc1a779b5c6fc7341e9b52f968cb7123 (patch) | |
tree | 06e227f6e51a9059931c4e9f72e8330288eee62b /src | |
parent | aff57202b4665b997ea257609dee0f9e68169b0f (diff) | |
download | gem5-80aa771dbc1a779b5c6fc7341e9b52f968cb7123.tar.xz |
IDE: Configure the IDE control to reflect the initial value of the command register.
Diffstat (limited to 'src')
-rw-r--r-- | src/dev/ide_ctrl.cc | 3 |
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 |