summaryrefslogtreecommitdiff
path: root/dev/ide_ctrl.cc
diff options
context:
space:
mode:
authorMiguel Serrano <mserrano@umich.edu>2005-07-01 15:12:09 -0400
committerMiguel Serrano <mserrano@umich.edu>2005-07-01 15:12:09 -0400
commit4f2480a18bdf98792e2ebf3471ce7cd3109ef824 (patch)
treeb2d8d27e41eae3d659dbe6e6665436d02bcea429 /dev/ide_ctrl.cc
parent16a2357e8637fed706a94ab0da6226df8a2e7f07 (diff)
parentefd0c5d4b04f630f1b591af509458224b6d98655 (diff)
downloadgem5-4f2480a18bdf98792e2ebf3471ce7cd3109ef824.tar.xz
Merge m5read@m5.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/.automount/fox/y/mserrano/m5_new/m5 --HG-- extra : convert_revision : bb3e977e79599c459fb32f309ce5b486f1639afa
Diffstat (limited to 'dev/ide_ctrl.cc')
-rw-r--r--dev/ide_ctrl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/ide_ctrl.cc b/dev/ide_ctrl.cc
index 5e5f534a8..6636a5ff6 100644
--- a/dev/ide_ctrl.cc
+++ b/dev/ide_ctrl.cc
@@ -103,6 +103,8 @@ IdeController::IdeController(Params *p)
// setup the disks attached to controller
memset(disks, 0, sizeof(IdeDisk *) * 4);
+ dev[0] = 0;
+ dev[1] = 0;
if (params()->disks.size() > 3)
panic("IDE controllers support a maximum of 4 devices attached!\n");