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>
This commit is contained in:
Gabe Black
2019-10-28 19:52:23 -07:00
parent bff5eba6b7
commit f5f60a5e46
3 changed files with 12 additions and 8 deletions

View File

@@ -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);