diff options
| author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2025-04-29 09:58:09 -0300 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2025-05-19 13:42:56 +1000 |
| commit | a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5 (patch) | |
| tree | ab1d768e6abe5919c2b07094ae5e9383908a55fe /include/hw/pci-host | |
| parent | 04c4f8d1ee373b9b8c413619f5600caa3e7b006c (diff) | |
| download | focaccia-qemu-a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5.tar.gz focaccia-qemu-a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5.zip | |
hw/riscv/virt.c: use s->memmap in create_fdt_virtio()
create_fdt_virtio() can use s->memmap instead of having an extra argument for it. While we're at it rewrite it a little bit to avoid the clunky line in 'name' and code repetition: - declare 'virtio_base' out of the loop since it never changes; - declare a 'size' variable. Use it to calculate the address of the virtio device in an 'addr' variable; - use 'addr' in the 'name' g_strdup_printf(); - use 'addr' and 'size' when creating the 'reg' property. Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20250429125811.224803-8-dbarboza@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/hw/pci-host')
0 files changed, 0 insertions, 0 deletions