All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
To: Joel Stanley <joel@jms.id.au>
Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH 03/13] hw/riscv/virt: Use setprop_sized_cells for memory
Date: Tue, 29 Apr 2025 14:22:29 -0300	[thread overview]
Message-ID: <4ad97cc5-ae49-46dd-a084-17e13f308aa0@ventanamicro.com> (raw)
In-Reply-To: <20250429061223.1457166-5-joel@jms.id.au>



On 4/29/25 3:12 AM, Joel Stanley wrote:
> Use qemu_fdt_setprop_sized_cells to do the job of splitting the upper
> and lower 32 bits across cells.
> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---

Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>

>   hw/riscv/virt.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
> index 873d41d10c70..ed28bc06114a 100644
> --- a/hw/riscv/virt.c
> +++ b/hw/riscv/virt.c
> @@ -311,8 +311,7 @@ static void create_fdt_socket_memory(RISCVVirtState *s, int socket)
>       size = riscv_socket_mem_size(ms, socket);
>       mem_name = g_strdup_printf("/memory@%"PRIx64, addr);
>       qemu_fdt_add_subnode(ms->fdt, mem_name);
> -    qemu_fdt_setprop_cells(ms->fdt, mem_name, "reg",
> -        addr >> 32, addr, size >> 32, size);
> +    qemu_fdt_setprop_sized_cells(ms->fdt, mem_name, "reg", 2, addr, 2, size);
>       qemu_fdt_setprop_string(ms->fdt, mem_name, "device_type", "memory");
>       riscv_socket_fdt_write_id(ms, mem_name, socket);
>   }



  reply	other threads:[~2025-04-29 17:23 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-29  6:12 [PATCH 00/13] hw/riscv/virt: device tree reg cleanups Joel Stanley
2025-04-29  6:12 ` [PATCH 01/13] hw/riscv/virt: Fix clint base address type Joel Stanley
2025-04-29 12:59   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 01/13] riscv/virt: Fix address type in create_fdt_socket_clint Joel Stanley
2025-04-29 12:26   ` Daniel Henrique Barboza
2025-04-30 11:36     ` Joel Stanley
2025-04-29  6:12 ` [PATCH 02/13] hw/riscv/virt: Use setprop_sized_cells for clint Joel Stanley
2025-04-29 17:22   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 03/13] hw/riscv/virt: Use setprop_sized_cells for memory Joel Stanley
2025-04-29 17:22   ` Daniel Henrique Barboza [this message]
2025-04-29  6:12 ` [PATCH 04/13] hw/riscv/virt: Use setprop_sized_cells for aplic Joel Stanley
2025-04-29 17:22   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 05/13] hw/riscv/virt: Use setprop_sized_cells for aclint Joel Stanley
2025-04-29 17:23   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 06/13] hw/riscv/virt: Use setprop_sized_cells for plic Joel Stanley
2025-04-29 17:23   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 07/13] hw/riscv/virt: Use setprop_sized_cells for virtio Joel Stanley
2025-04-29 17:23   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 08/13] hw/riscv/virt: Use setprop_sized_cells for reset Joel Stanley
2025-04-29 17:23   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 09/13] hw/riscv/virt: Use setprop_sized_cells for uart Joel Stanley
2025-04-29 17:24   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 10/13] hw/riscv/virt: Use setprop_sized_cells for rtc Joel Stanley
2025-04-29 17:24   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 11/13] hw/riscv/virt: Use setprop_sized_cells for iommu Joel Stanley
2025-04-29 17:24   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 12/13] hw/riscv/virt: Use setprop_sized_cells for pcie Joel Stanley
2025-04-29 17:24   ` Daniel Henrique Barboza
2025-04-29  6:12 ` [PATCH 13/13] NOMERGE: virt: Adjust devices so everything is > 4G Joel Stanley
2025-04-29 23:45 ` [PATCH 00/13] hw/riscv/virt: device tree reg cleanups Alistair Francis

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=4ad97cc5-ae49-46dd-a084-17e13f308aa0@ventanamicro.com \
    --to=dbarboza@ventanamicro.com \
    --cc=joel@jms.id.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.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 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.