versatilepb: Use symbolic indices for ARM PIC
PATCH 1/1 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 <[email protected]>
--- hw/versatilepb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/versatilepb.c +2 -1
@@ -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); }
Signature · 1 line
1.7.10
Quoted 3 lines · Stefan Weil
It is more readable, and all other code does it like that, too.
Signed-off-by Stefan Weil <[email protected]>
Reviewed-by Peter Maydell <[email protected]>
The right long term fix is named pins.
-- PMM
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Weil
It is more readable, and all other code does it like that, too.
Signed-off-by Stefan Weil <[email protected]>--- 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