Re: [PATCH] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[]

2022-08-03 Thread Cédric Le Goater
On 8/4/22 01:32, Daniel Henrique Barboza wrote: We're not storing all GPIO lines we're retrieving with qdev_get_gpio_in() in mal_irqs[]. We're storing just the last one in the first index: for (i = 0; i < ARRAY_SIZE(mal_irqs); i++) { mal_irqs[0] = qdev_get_gpio_in(uic[2], 3 + i);

Re: [PATCH] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[]

2022-08-03 Thread BALATON Zoltan
On Wed, 3 Aug 2022, Daniel Henrique Barboza wrote: We're not storing all GPIO lines we're retrieving with qdev_get_gpio_in() in mal_irqs[]. We're storing just the last one in the first index: for (i = 0; i < ARRAY_SIZE(mal_irqs); i++) { mal_irqs[0] = qdev_get_gpio_in(uic[2], 3 + i);

[PATCH] hw/ppc: sam460ex.c: store all GPIO lines in mal_irqs[]

2022-08-03 Thread Daniel Henrique Barboza
We're not storing all GPIO lines we're retrieving with qdev_get_gpio_in() in mal_irqs[]. We're storing just the last one in the first index: for (i = 0; i < ARRAY_SIZE(mal_irqs); i++) { mal_irqs[0] = qdev_get_gpio_in(uic[2], 3 + i); } ppc4xx_mal_init(env, 4, 16, mal_irqs); mal