summaryrefslogtreecommitdiff
path: root/src/dev/arm/vio_mmio.cc
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2018-08-30 16:43:02 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2018-09-10 10:24:10 +0000
commit579443c64fd176ec2af4c7f38b3d37484ad21ffa (patch)
tree30fef6eda22a6ea0e7b334c59a6ca62e06e94850 /src/dev/arm/vio_mmio.cc
parent4c9ba9cd2925c83889c6388b4f5a15820bd9986b (diff)
downloadgem5-579443c64fd176ec2af4c7f38b3d37484ad21ffa.tar.xz
dev-arm: Factory SimObject for generating ArmInterruptPin
With this patch the python ArmInterruptPin SimObject matches to the C++ ArmInterruptPinGen. The latter is in charge of generating the ArmInterruptPin (which is not a SimObject anymore). This is meant to ease the generation of ArmInterruptPins: by not being SimObjects we are not forced to instantiate them in the configuration script; we can generate them dynamically instead throughout simulation. Change-Id: I917d73a26168447221f5993c8ae975ee3771e3bf Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/12401 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/arm/vio_mmio.cc')
-rw-r--r--src/dev/arm/vio_mmio.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dev/arm/vio_mmio.cc b/src/dev/arm/vio_mmio.cc
index 1dcaf8cd9..9f7bf1333 100644
--- a/src/dev/arm/vio_mmio.cc
+++ b/src/dev/arm/vio_mmio.cc
@@ -48,7 +48,8 @@ MmioVirtIO::MmioVirtIO(const MmioVirtIOParams *params)
: BasicPioDevice(params, params->pio_size),
hostFeaturesSelect(0), guestFeaturesSelect(0), pageSize(0),
interruptStatus(0),
- callbackKick(this), vio(*params->vio), interrupt(params->interrupt)
+ callbackKick(this), vio(*params->vio),
+ interrupt(params->interrupt->get())
{
fatal_if(!interrupt, "No MMIO VirtIO interrupt specified\n");