From 5ac888b8bf1c4a2f3cf699c75f6df304246c96a4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 7 Aug 2017 17:46:28 -0700 Subject: [PATCH] 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 Maintainer: Jason Lowe-Power --- src/dev/storage/ide_ctrl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2