On 2/26/26 2:02 PM, Philippe Mathieu-Daudé wrote:
Since AddressSpace root MemoryRegion can be remapped, it is
bogus to use the MemoryRegion address as the AddressSpace
absolute address. Besides, the AddressSpace APIs take an
@addr argument expecting AddressSpaces start at 0x0000.0000.

Substract the MemoryRegion address in mtree_print_mr() to
display AddressSpaces starting at 0x0000.0000.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  system/memory.c | 13 +++++++------
  1 file changed, 7 insertions(+), 6 deletions(-)


Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to