* [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef
@ 2022-05-09 20:20 Philippe Mathieu-Daudé
2022-05-10 20:53 ` Bernhard Beschow
2022-05-13 9:50 ` Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-05-09 20:20 UTC (permalink / raw)
To: qemu-devel
Cc: Alistair Francis, Bernhard Beschow, qemu-arm, Peter Maydell,
Edgar E. Iglesias, qemu-trivial, Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
Except hw/core/irq.c which implements the forward-declared opaque
qemu_irq structure, hw/adc/zynq-xadc.{c,h} are the only files not
using the typedef. Fix this single exception.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/adc/zynq-xadc.c | 4 ++--
include/hw/adc/zynq-xadc.h | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/hw/adc/zynq-xadc.c b/hw/adc/zynq-xadc.c
index cfc7bab065..032e19cbd0 100644
--- a/hw/adc/zynq-xadc.c
+++ b/hw/adc/zynq-xadc.c
@@ -86,7 +86,7 @@ static void zynq_xadc_update_ints(ZynqXADCState *s)
s->regs[INT_STS] |= INT_DFIFO_GTH;
}
- qemu_set_irq(s->qemu_irq, !!(s->regs[INT_STS] & ~s->regs[INT_MASK]));
+ qemu_set_irq(s->irq, !!(s->regs[INT_STS] & ~s->regs[INT_MASK]));
}
static void zynq_xadc_reset(DeviceState *d)
@@ -262,7 +262,7 @@ static void zynq_xadc_init(Object *obj)
memory_region_init_io(&s->iomem, obj, &xadc_ops, s, "zynq-xadc",
ZYNQ_XADC_MMIO_SIZE);
sysbus_init_mmio(sbd, &s->iomem);
- sysbus_init_irq(sbd, &s->qemu_irq);
+ sysbus_init_irq(sbd, &s->irq);
}
static const VMStateDescription vmstate_zynq_xadc = {
diff --git a/include/hw/adc/zynq-xadc.h b/include/hw/adc/zynq-xadc.h
index 2017b7a803..c10cc4c379 100644
--- a/include/hw/adc/zynq-xadc.h
+++ b/include/hw/adc/zynq-xadc.h
@@ -39,8 +39,7 @@ struct ZynqXADCState {
uint16_t xadc_dfifo[ZYNQ_XADC_FIFO_DEPTH];
uint16_t xadc_dfifo_entries;
- struct IRQState *qemu_irq;
-
+ qemu_irq irq;
};
#endif /* ZYNQ_XADC_H */
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef
2022-05-09 20:20 [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef Philippe Mathieu-Daudé
@ 2022-05-10 20:53 ` Bernhard Beschow
2022-05-13 9:50 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Bernhard Beschow @ 2022-05-10 20:53 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: QEMU Developers, Alistair Francis, open list:Versatile PB,
Peter Maydell, Edgar E. Iglesias, qemu-trivial,
Philippe Mathieu-Daudé
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
On Mon, May 9, 2022 at 10:20 PM Philippe Mathieu-Daudé <
philippe.mathieu.daude@gmail.com> wrote:
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> Except hw/core/irq.c which implements the forward-declared opaque
> qemu_irq structure, hw/adc/zynq-xadc.{c,h} are the only files not
> using the typedef. Fix this single exception.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
$ git grep --files-with-matches --perl-regexp "\bIRQState\b"
hw/core/irq.c
include/qemu/typedefs.h
Reviewed-By: Bernhard Beschow <shentey@gmail.com>
[-- Attachment #2: Type: text/html, Size: 1116 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef
2022-05-09 20:20 [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef Philippe Mathieu-Daudé
2022-05-10 20:53 ` Bernhard Beschow
@ 2022-05-13 9:50 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2022-05-13 9:50 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Alistair Francis, Bernhard Beschow, qemu-arm,
Edgar E. Iglesias, qemu-trivial, Philippe Mathieu-Daudé
On Mon, 9 May 2022 at 21:20, Philippe Mathieu-Daudé
<philippe.mathieu.daude@gmail.com> wrote:
>
> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> Except hw/core/irq.c which implements the forward-declared opaque
> qemu_irq structure, hw/adc/zynq-xadc.{c,h} are the only files not
> using the typedef. Fix this single exception.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> hw/adc/zynq-xadc.c | 4 ++--
> include/hw/adc/zynq-xadc.h | 3 +--
> 2 files changed, 3 insertions(+), 4 deletions(-)
Applied to target-arm.next, thanks.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-13 9:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 20:20 [PATCH] hw/adc/zynq-xadc: Use qemu_irq typedef Philippe Mathieu-Daudé
2022-05-10 20:53 ` Bernhard Beschow
2022-05-13 9:50 ` Peter Maydell
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.