[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a new ics |
Date: |
Tue, 25 Oct 2016 16:12:35 +1100 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Sat, Oct 22, 2016 at 11:46:47AM +0200, Cédric Le Goater wrote:
> Interrupt Control Sources (ICS) are now maintained under a list.
>
> Signed-off-by: Cédric Le Goater <address@hidden>
Reviewed-by: David Gibson <address@hidden>
> ---
> hw/intc/xics.c | 6 ++++++
> include/hw/ppc/xics.h | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/hw/intc/xics.c b/hw/intc/xics.c
> index 095c16a30082..f24787e95013 100644
> --- a/hw/intc/xics.c
> +++ b/hw/intc/xics.c
> @@ -151,6 +151,12 @@ static void xics_common_reset(DeviceState *d)
> }
> }
>
> +void xics_insert_ics(XICSState *xics, ICSState *ics)
> +{
> + ics->xics = xics;
> + QLIST_INSERT_HEAD(&xics->ics, ics, list);
> +}
> +
> static void xics_prop_get_nr_irqs(Object *obj, Visitor *v, const char *name,
> void *opaque, Error **errp)
> {
> diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
> index beb232e616c5..f31eef8c9f6c 100644
> --- a/include/hw/ppc/xics.h
> +++ b/include/hw/ppc/xics.h
> @@ -228,6 +228,7 @@ void ics_simple_write_xive(ICSState *ics, int nr, int
> server,
> void ics_set_irq_type(ICSState *ics, int srcno, bool lsi);
>
> ICSState *xics_find_source(XICSState *icp, int irq);
> +void xics_insert_ics(XICSState *xics, ICSState *ics);
>
> typedef struct PnvChip PnvChip;
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [Qemu-ppc] [PATCH v5 12/17] ppc/pnv: add a XICS native to each PowerNV chip, (continued)
[Qemu-ppc] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a new ics, Cédric Le Goater, 2016/10/22
- Re: [Qemu-ppc] [PATCH v5 14/17] ppc/xics: introduce a helper to insert a new ics,
David Gibson <=
[Qemu-ppc] [PATCH v5 15/17] ppc/pnv: Add cut down PSI bridge model and hookup external interrupt, Cédric Le Goater, 2016/10/22
[Qemu-ppc] [PATCH v5 16/17] ppc/pnv: Add OCC model stub with interrupt support, Cédric Le Goater, 2016/10/22
[Qemu-ppc] [PATCH v5 17/17] ppc/pnv: Add Naples chip support for LPC interrupts, Cédric Le Goater, 2016/10/22
[Qemu-ppc] [PATCH v5 01/17] ppc: add skiboot firmware for the pnv platform, Cédric Le Goater, 2016/10/22
Re: [Qemu-ppc] [PATCH v5 00/17] ppc/pnv: booting the kernel and reaching user space, David Gibson, 2016/10/24