Re: [PATCH v2 7/9] hw/riscv/virt.c: use s->memmap in create_fdt_virtio()

2025-04-30 Thread Alistair Francis
On Tue, Apr 29, 2025 at 11:02 PM Daniel Henrique Barboza wrote: > > 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 loo

[PATCH v2 7/9] hw/riscv/virt.c: use s->memmap in create_fdt_virtio()

2025-04-29 Thread Daniel Henrique Barboza
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