summaryrefslogtreecommitdiff
path: root/src/dev/storage/ide_ctrl.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/storage/ide_ctrl.hh')
-rw-r--r--src/dev/storage/ide_ctrl.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dev/storage/ide_ctrl.hh b/src/dev/storage/ide_ctrl.hh
index 94a9c65e5..24d3da02a 100644
--- a/src/dev/storage/ide_ctrl.hh
+++ b/src/dev/storage/ide_ctrl.hh
@@ -81,6 +81,10 @@ class IdeController : public PciDevice
/** Registers used for bus master interface */
struct BMIRegs
{
+ void reset() {
+ memset(static_cast<void *>(this), 0, sizeof(*this));
+ }
+
BMICommandReg command;
uint8_t reserved0;
BMIStatusReg status;