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 /scripts/vmstate-static-checker.py | |
parent | 04c4f8d1ee373b9b8c413619f5600caa3e7b006c (diff) | |
download | qemu-a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5.zip qemu-a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5.tar.gz qemu-a51a88fd5d2784c8f6eaaa386dbb5d621949f3e5.tar.bz2 |
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 'scripts/vmstate-static-checker.py')
0 files changed, 0 insertions, 0 deletions