Received: from eggs.gnu.org ([208.118.235.92]:41379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJsMd-0005Pe-PZ for qemu-devel@nongnu.org; Thu, 04 Oct 2012 16:49:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJsMc-0004fb-HV for qemu-devel@nongnu.org; Thu, 04 Oct 2012 16:49:47 -0400 From: Stefan Weil Date: Thu, 4 Oct 2012 22:49:43 +0200 Message-Id: <1349383783-21392-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Peter Maydell , Paul Brook , Stefan Weil It is more readable, and all other code does it like that, too. Signed-off-by: Stefan Weil --- hw/versatilepb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 1.7.10