From: Philippe Mathieu-Daudé Date: Tue, 28 Oct 2025 18:12:43 +0000 (+0100) Subject: hw/s390x: Use memory_region_size() X-Git-Tag: v10.2.0-rc1~25^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0281105bc4c3bff5764b1caa18ee95c14798bccb;p=thirdparty%2Fqemu.git hw/s390x: Use memory_region_size() MemoryRegion::size is private data of MemoryRegion, use the proper memory_region_size() getter to get it. Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20251028181300.41475-10-philmd@linaro.org> Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by: Thomas Huth --- diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c index a3bb5aa221..5841dfc4fe 100644 --- a/hw/s390x/s390-pci-inst.c +++ b/hw/s390x/s390-pci-inst.c @@ -396,7 +396,7 @@ static MemoryRegion *s390_get_subregion(MemoryRegion *mr, uint64_t offset, uint64_t subregion_size; QTAILQ_FOREACH(subregion, &mr->subregions, subregions_link) { - subregion_size = int128_get64(subregion->size); + subregion_size = memory_region_size(subregion); if ((offset >= subregion->addr) && (offset + len) <= (subregion->addr + subregion_size)) { mr = subregion;