Il 29/05/2014 16:22, Peter Crosthwaite ha scritto:
>
> +bool memory_region_is_mapped(MemoryRegion *mr)
> +{
Is it not enough to just return mr->parent? Memory mapping assertion
will happen if you try and map the same twice, even if one of the
mappings is not contained within an AddressSpace. Checking for just
the parent mr may be a simpler and more accurate check.

I can see a difference if the memory region is completely overlapped by a higher-priority one. Igor, what was your idea with this function?

Paolo

Reply via email to