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:
parent
0271d73b85
commit
0281105bc4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue