python: Don't assume SimObjects live in the global namespace
[gem5.git] / src / dev / storage / ide_ctrl.hh
index 94a9c65e58b373d2a547c5c3790ca4441d25900b..24d3da02a0bf7ebdde13ae4116df032034596a98 100644 (file)
@@ -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;