summaryrefslogtreecommitdiff
path: root/hw/dma
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-02-26 17:20:08 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-02-26 17:20:08 +0000
commita5ae7e3984d4bb624d6e8ec95c64fa272deb07fc (patch)
treefce810051a614f9449c4f444c002a7ddcbbfb971 /hw/dma
parent432a0a130e203e18656e54f59e817271bf1c078f (diff)
downloadqemu-a5ae7e3984d4bb624d6e8ec95c64fa272deb07fc.tar.gz
dma/pl330: Fix buffer depth
This is the product of the data-width and the depth arguments, I.e the depth of the FIFO is in terms of data entries and not bytes (which is what the original implementation was suggesting). Fix. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: c34de31031511538ccdb3164b48ee8a6a973ebd4.1393372019.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/dma')
-rw-r--r--hw/dma/pl330.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c
index 303f8b8f2c..b5d586b92b 100644
--- a/hw/dma/pl330.c
+++ b/hw/dma/pl330.c
@@ -1606,7 +1606,7 @@ static void pl330_realize(DeviceState *dev, Error **errp)
pl330_queue_init(&s->read_queue, s->rd_q_dep, s);
pl330_queue_init(&s->write_queue, s->wr_q_dep, s);
- pl330_fifo_init(&s->fifo, s->data_buffer_dep);
+ pl330_fifo_init(&s->fifo, s->data_width / 4 * s->data_buffer_dep);
}
static Property pl330_properties[] = {