summary refs log tree commit diff stats
path: root/hw/dma/pl330.c
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
commit024c6e2ea575d6ca2e3e1cfb8fcff7f218bb5daf (patch)
tree7e8c159c2e939b471a293b5de94ef17807ccd3c7 /hw/dma/pl330.c
parent63a31905cbce5e7c2503dd22bf5977636df271e5 (diff)
downloadfocaccia-qemu-024c6e2ea575d6ca2e3e1cfb8fcff7f218bb5daf.tar.gz
focaccia-qemu-024c6e2ea575d6ca2e3e1cfb8fcff7f218bb5daf.zip
dma/pl330: Fix misleading type
This type really should just be a regular int as no usages rely on it's
32 bitness (it's only meaningful as a bit position and not a bit mask).
This also fixes a printf which uses the variable with a regular %d.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 2a99d31f377aee371476d9da8fd0d1b7efa30f63.1393372019.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/dma/pl330.c')
-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 68adf39e33..d36f0bc20f 100644
--- a/hw/dma/pl330.c
+++ b/hw/dma/pl330.c
@@ -1310,7 +1310,7 @@ static void pl330_iomem_write(void *opaque, hwaddr offset,
                               uint64_t value, unsigned size)
 {
     PL330State *s = (PL330State *) opaque;
-    uint32_t i;
+    int i;
 
     DB_PRINT("addr: %08x data: %08x\n", (unsigned)offset, (unsigned)value);