summaryrefslogtreecommitdiff
path: root/src/dev/storage
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-08-07 17:46:28 -0700
committerGabe Black <gabeblack@google.com>2017-08-12 00:50:04 +0000
commit5ac888b8bf1c4a2f3cf699c75f6df304246c96a4 (patch)
tree4b5b0709166de320b72c60e32755ced19c746f59 /src/dev/storage
parent51ea222ba98fb39280e19680b0d6adeb09e5112d (diff)
downloadgem5-5ac888b8bf1c4a2f3cf699c75f6df304246c96a4.tar.xz
dev: Fix an IDE error check.
The error message says an IDE controller can support at most 4 disks, but the check would fail if there were more than 3 disks. Change-Id: Ic7d5d8c941fe2580da43019f53991377d4727bb9 Reviewed-on: https://gem5-review.googlesource.com/4460 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/dev/storage')
-rw-r--r--src/dev/storage/ide_ctrl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/storage/ide_ctrl.cc b/src/dev/storage/ide_ctrl.cc
index feed9cfd2..6d507269f 100644
--- a/src/dev/storage/ide_ctrl.cc
+++ b/src/dev/storage/ide_ctrl.cc
@@ -102,7 +102,7 @@ IdeController::IdeController(Params *p)
ioEnabled(false), bmEnabled(false),
ioShift(p->io_shift), ctrlOffset(p->ctrl_offset)
{
- if (params()->disks.size() > 3)
+ if (params()->disks.size() > 4)
panic("IDE controllers support a maximum of 4 devices attached!\n");
// Assign the disks to channels