summaryrefslogtreecommitdiff
path: root/src/dev/arm/amba_device.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-06-09 09:21:12 -0400
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-06-09 09:21:12 -0400
commita9cad92011560fe03c7d6ffde6d679cc84e48816 (patch)
treec7f7e6a0e8a3791126a80ef4bdd1eeba04b3064d /src/dev/arm/amba_device.cc
parentb29e55d44a70de6ed126a03fcd938bfe34a3a8a5 (diff)
downloadgem5-a9cad92011560fe03c7d6ffde6d679cc84e48816.tar.xz
dev, arm: Include PIO size in AmbaDmaDevice constructor
Make it possible to specify the size of the PIO space for an AMBA DMA device. Maintain backwards compatibility and default to zero.
Diffstat (limited to 'src/dev/arm/amba_device.cc')
-rw-r--r--src/dev/arm/amba_device.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/arm/amba_device.cc b/src/dev/arm/amba_device.cc
index 0ba20d087..540d09615 100644
--- a/src/dev/arm/amba_device.cc
+++ b/src/dev/arm/amba_device.cc
@@ -62,9 +62,9 @@ AmbaIntDevice::AmbaIntDevice(const Params *p, Addr pio_size)
-AmbaDmaDevice::AmbaDmaDevice(const Params *p)
+AmbaDmaDevice::AmbaDmaDevice(const Params *p, Addr pio_size)
: DmaDevice(p), ambaId(AmbaVendor | p->amba_id),
- pioAddr(p->pio_addr), pioSize(0),
+ pioAddr(p->pio_addr), pioSize(pio_size),
pioDelay(p->pio_latency),intNum(p->int_num), gic(p->gic)
{
}