From: Gabe Black Date: Mon, 3 Aug 2009 01:01:09 +0000 (-0700) Subject: IDE: Configure the IDE control to reflect the initial value of the command register. X-Git-Tag: Calvin_Submission~189 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80aa771dbc1a779b5c6fc7341e9b52f968cb7123;p=gem5.git IDE: Configure the IDE control to reflect the initial value of the command register. --- 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