qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Luc Michel <luc.michel@greensocs.com>
To: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, qemu-devel@nongnu.org
Cc: figlesia@xilinx.com, peter.maydell@linaro.org,
	sstabellini@kernel.org, edgar.iglesias@xilinx.com,
	sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com,
	alistair@alistair23.me, richard.henderson@linaro.org,
	frederic.konrad@adacore.com, qemu-arm@nongnu.org,
	komlodi@xilinx.com, philmd@redhat.com
Subject: Re: [PATCH v1 1/1] hw/arm: versal: Use nr_apu_cpus in favor of hard coding 2
Date: Thu, 11 Feb 2021 09:23:07 +0100	[thread overview]
Message-ID: <efd5d4ba-dbd9-8f87-1dd7-f0543e3e4e62@greensocs.com> (raw)
In-Reply-To: <20210210142048.3125878-2-edgar.iglesias@gmail.com>

On 2/10/21 3:20 PM, Edgar E. Iglesias wrote:
> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> 
> Use nr_apu_cpus in favor of hard coding 2.
> 
> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>

Reviewed-by: Luc Michel <luc@lmichel.fr>

> ---
>   hw/arm/xlnx-versal.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c
> index b0777166e8..628e77ef66 100644
> --- a/hw/arm/xlnx-versal.c
> +++ b/hw/arm/xlnx-versal.c
> @@ -67,10 +67,10 @@ static void versal_create_apu_gic(Versal *s, qemu_irq *pic)
>       gicbusdev = SYS_BUS_DEVICE(&s->fpd.apu.gic);
>       gicdev = DEVICE(&s->fpd.apu.gic);
>       qdev_prop_set_uint32(gicdev, "revision", 3);
> -    qdev_prop_set_uint32(gicdev, "num-cpu", 2);
> +    qdev_prop_set_uint32(gicdev, "num-cpu", nr_apu_cpus);
>       qdev_prop_set_uint32(gicdev, "num-irq", XLNX_VERSAL_NR_IRQS + 32);
>       qdev_prop_set_uint32(gicdev, "len-redist-region-count", 1);
> -    qdev_prop_set_uint32(gicdev, "redist-region-count[0]", 2);
> +    qdev_prop_set_uint32(gicdev, "redist-region-count[0]", nr_apu_cpus);
>       qdev_prop_set_bit(gicdev, "has-security-extensions", true);
>   
>       sysbus_realize(SYS_BUS_DEVICE(&s->fpd.apu.gic), &error_fatal);
> 


  parent reply	other threads:[~2021-02-11  8:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10 14:20 [PATCH v1 0/1] hw/arm: versal: Use nr_apu_cpus in favor of hard coding 2 Edgar E. Iglesias
2021-02-10 14:20 ` [PATCH v1 1/1] " Edgar E. Iglesias
2021-02-10 14:48   ` Philippe Mathieu-Daudé
2021-02-11  8:23   ` Luc Michel [this message]
2021-02-11 11:36 ` [PATCH v1 0/1] " Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=efd5d4ba-dbd9-8f87-1dd7-f0543e3e4e62@greensocs.com \
    --to=luc.michel@greensocs.com \
    --cc=alistair@alistair23.me \
    --cc=edgar.iglesias@gmail.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=figlesia@xilinx.com \
    --cc=frasse.iglesias@gmail.com \
    --cc=frederic.konrad@adacore.com \
    --cc=komlodi@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sai.pavan.boddu@xilinx.com \
    --cc=sstabellini@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).