projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Don't assume SimObjects live in the global namespace
[gem5.git]
/
src
/
dev
/
storage
/
ide_ctrl.hh
diff --git
a/src/dev/storage/ide_ctrl.hh
b/src/dev/storage/ide_ctrl.hh
index 94a9c65e58b373d2a547c5c3790ca4441d25900b..24d3da02a0bf7ebdde13ae4116df032034596a98 100644
(file)
--- 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;