]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/virt: Minor code reshuffling in create_acpi_ged
authorEric Auger <eric.auger@redhat.com>
Mon, 14 Jul 2025 08:05:15 +0000 (10:05 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jul 2025 06:56:40 +0000 (02:56 -0400)
commitcfd4ace6e5faf3064defa559e1b5fd674109186f
tree2eb69c80221694a9457975a3aba68052e0f489f8
parent1a102856652268cf2ec4cbd2cb9b229ef920c31d
hw/arm/virt: Minor code reshuffling in create_acpi_ged

Use a local SysBusDevice handle. Also use the newly introduced
sysbus_mmio_map_name which brings better readability about the region
being mapped. GED device has regions which exist depending on some
external properties and it becomes difficult to guess the index of
a region. Better refer to a region by its name.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20250714080639.2525563-32-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/arm/virt.c
include/hw/acpi/generic_event_device.h