[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [Qemu-devel] [PATCH 12/19] hw/core/split-irq: Device that
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [Qemu-devel] [PATCH 12/19] hw/core/split-irq: Device that splits IRQ lines |
Date: |
Tue, 27 Feb 2018 12:58:09 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 02/20/2018 10:03 AM, Peter Maydell wrote:
> In some board or SoC models it is necessary to split a qemu_irq line
> so that one input can feed multiple outputs. We currently have
> qemu_irq_split() for this, but that has several deficiencies:
> * it can only handle splitting a line into two
> * it unavoidably leaks memory, so it can't be used
> in a device that can be deleted
>
> Implement a qdev device that encapsulates splitting of IRQs, with a
> configurable number of outputs. (This is in some ways the inverse of
> the TYPE_OR_IRQ device.)
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> hw/core/Makefile.objs | 1 +
> include/hw/core/split-irq.h | 57 +++++++++++++++++++++++++++++
> include/hw/irq.h | 4 +-
> hw/core/split-irq.c | 89
> +++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 150 insertions(+), 1 deletion(-)
> create mode 100644 include/hw/core/split-irq.h
> create mode 100644 hw/core/split-irq.c
Reviewed-by: Richard Henderson <address@hidden>
r~
- [Qemu-arm] [PATCH 00/19] Add Cortex-M33 and mps2-an505 board model, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 11/19] qdev: Add new qdev_init_gpio_in_named_with_opaque(), Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 13/19] hw/misc/mps2-fpgaio: FPGA control block for MPS2 AN505, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 12/19] hw/core/split-irq: Device that splits IRQ lines, Peter Maydell, 2018/02/20
- Re: [Qemu-arm] [Qemu-devel] [PATCH 12/19] hw/core/split-irq: Device that splits IRQ lines,
Richard Henderson <=
- [Qemu-arm] [PATCH 10/19] include/hw/or-irq.h: Add missing include guard, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 09/19] hw/misc/unimp: Move struct to header file, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 17/19] hw/misc/iotkit-secctl: Add remaining simple registers, Peter Maydell, 2018/02/20
- [Qemu-arm] [PATCH 14/19] hw/misc/tz-ppc: Model TrustZone peripheral protection controller, Peter Maydell, 2018/02/20