* [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC
@ 2012-10-04 20:49 Stefan Weil
2012-10-04 20:55 ` Peter Maydell
2012-10-05 13:50 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Weil @ 2012-10-04 20:49 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Peter Maydell, Paul Brook, Stefan Weil
It is more readable, and all other code does it like that, too.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC
2012-10-04 20:49 [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC Stefan Weil
@ 2012-10-04 20:55 ` Peter Maydell
2012-10-05 13:50 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2012-10-04 20:55 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel, Paul Brook
On 4 October 2012 21:49, Stefan Weil <sw@weilnetz.de> wrote:
> 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>
The right long term fix is named pins.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] versatilepb: Use symbolic indices for ARM PIC
2012-10-04 20:49 [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC Stefan Weil
2012-10-04 20:55 ` Peter Maydell
@ 2012-10-05 13:50 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-10-05 13:50 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, Peter Maydell, qemu-devel, Paul Brook
On Thu, Oct 04, 2012 at 10:49:43PM +0200, Stefan Weil wrote:
> It is more readable, and all other code does it like that, too.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> hw/versatilepb.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-05 13:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-04 20:49 [Qemu-devel] [PATCH] versatilepb: Use symbolic indices for ARM PIC Stefan Weil
2012-10-04 20:55 ` Peter Maydell
2012-10-05 13:50 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.