mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
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é <philmd@linaro.org> Message-ID: <20251028181300.41475-10-philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
committed by
Thomas Huth
parent
0271d73b85
commit
0281105bc4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user