summaryrefslogtreecommitdiff
path: root/src/dev/storage/ide_ctrl.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-28 19:52:23 -0700
committerGabe Black <gabeblack@google.com>2019-10-30 08:51:02 +0000
commitf5f60a5e467f74dc14b10d431795363deff33b76 (patch)
tree7eeccdf3db557b269e84eaff9e033b0230640da3 /src/dev/storage/ide_ctrl.cc
parentbff5eba6b77243dda49ffb5ee7411ec397a7ec01 (diff)
downloadgem5-f5f60a5e467f74dc14b10d431795363deff33b76.tar.xz
dev: Get PageBytes from the system in the ide_disk model.
This avoids having to use TheISA::. Change-Id: I020860ab343f9b6fafbcb0e23479d0b64f094512 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22268 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/dev/storage/ide_ctrl.cc')
-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 91f27bea3..3851c8329 100644
--- a/src/dev/storage/ide_ctrl.cc
+++ b/src/dev/storage/ide_ctrl.cc
@@ -124,7 +124,7 @@ IdeController::IdeController(Params *p)
panic("IDE controllers support a maximum "
"of 4 devices attached!\n");
}
- params()->disks[i]->setController(this);
+ params()->disks[i]->setController(this, sys->getPageBytes());
}
primary.select(false);