[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v2 10/22] ppc/xics: register the reset handler of
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH v2 10/22] ppc/xics: register the reset handler of ICS objects |
Date: |
Thu, 23 Feb 2017 13:33:12 +1100 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
On Thu, Feb 16, 2017 at 02:47:33PM +0100, Cédric Le Goater wrote:
> The reset of the ICS objects is currently handled by XICS but this can
> be done for each individual ICS. This also reduces the use of the XICS
> list of ICS.
>
> Signed-off-by: Cédric Le Goater <address@hidden>
Reviewed-by: David Gibson <address@hidden>
> ---
> hw/intc/xics.c | 5 -----
> hw/ppc/spapr.c | 1 +
> 2 files changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/hw/intc/xics.c b/hw/intc/xics.c
> index bfd3a539561a..d679313cd49f 100644
> --- a/hw/intc/xics.c
> +++ b/hw/intc/xics.c
> @@ -139,16 +139,11 @@ static void
> ics_simple_pic_print_info(InterruptStatsProvider *obj,
> static void xics_common_reset(DeviceState *d)
> {
> XICSState *xics = XICS_COMMON(d);
> - ICSState *ics;
> int i;
>
> for (i = 0; i < xics->nr_servers; i++) {
> device_reset(DEVICE(&xics->ss[i]));
> }
> -
> - QLIST_FOREACH(ics, &xics->ics, list) {
> - device_reset(DEVICE(ics));
> - }
> }
>
> static void xics_common_initfn(Object *obj)
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index 85a973cce7ae..a2a64d7de41d 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -112,6 +112,7 @@ static XICSState *try_create_xics(sPAPRMachineState
> *spapr,
> }
>
> spapr->ics = ICS_SIMPLE(object_new(type_ics));
> + qdev_set_parent_bus(DEVICE(spapr->ics), sysbus_get_default());
> object_property_add_child(OBJECT(spapr), "ics", OBJECT(spapr->ics),
> NULL);
> object_property_set_int(OBJECT(spapr->ics), nr_irqs, "nr-irqs", &err);
> object_property_add_const_link(OBJECT(spapr->ics), "xics", OBJECT(xics),
--
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
- Re: [Qemu-ppc] [PATCH v2 08/22] ppc/xics: use the QOM interface to resend irqs, (continued)
[Qemu-ppc] [PATCH v2 09/22] ppc/xics: remove xics_find_source(), Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 10/22] ppc/xics: register the reset handler of ICS objects, Cédric Le Goater, 2017/02/16
- Re: [Qemu-ppc] [PATCH v2 10/22] ppc/xics: register the reset handler of ICS objects,
David Gibson <=
[Qemu-ppc] [PATCH v2 11/22] ppc/xics: remove the XICS list of ICS, Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 12/22] ppc/xics: extend the QOM interface to handle ICPs, Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 13/22] ppc/xics: simplify the cpu_setup() handler, Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 14/22] ppc/xics: use the QOM interface to grab an ICP, Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 15/22] ppc/xics: simplify spapr_dt_xics() interface, Cédric Le Goater, 2017/02/16
[Qemu-ppc] [PATCH v2 16/22] ppc/xics: register the reset handler of ICP objects, Cédric Le Goater, 2017/02/16