aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-10-04 22:49:43 +0200
committerStefan Hajnoczi <stefanha@gmail.com>2012-10-05 15:50:09 +0200
commit02cd521f6e207bd8843a7c1309f6d065cf01c6ee (patch)
tree24affb3ee1822f614ee94719b916cd1d6933b41c
parentc36b7de64dfb106ee0384d2634fd4037218ffbca (diff)
downloadqemu-02cd521f6e207bd8843a7c1309f6d065cf01c6ee.zip
qemu-02cd521f6e207bd8843a7c1309f6d065cf01c6ee.tar.gz
qemu-02cd521f6e207bd8843a7c1309f6d065cf01c6ee.tar.bz2
versatilepb: Use symbolic indices for ARM PIC
It is more readable, and all other code does it like that, too. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
-rw-r--r--hw/versatilepb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c
index 7a92034..b3f8077 100644
--- a/hw/versatilepb.c
+++ b/hw/versatilepb.c
@@ -211,7 +211,8 @@ static void versatile_init(ram_addr_t ram_size,
cpu_pic = arm_pic_init_cpu(cpu);
dev = sysbus_create_varargs("pl190", 0x10140000,
- cpu_pic[0], cpu_pic[1], NULL);
+ cpu_pic[ARM_PIC_CPU_IRQ],
+ cpu_pic[ARM_PIC_CPU_FIQ], NULL);
for (n = 0; n < 32; n++) {
pic[n] = qdev_get_gpio_in(dev, n);
}