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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user