linux-user/elfload: Rely on walk_memory_regions for vmas
commit50e33f52fbc476f71eb006e0c8d3fa355539c3e1
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Feb 2024 17:58:41 +0000 (27 07:58 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:03:52 +0000 (29 11:03 -1000)
tree2b99a62c45a65ae4b613edaa2d324dce8d017e1f
parent1928d50bec7ef7956499e408ac3a501f02c57c47
linux-user/elfload: Rely on walk_memory_regions for vmas

Rather than creating new data structures for vma,
rely on the IntervalTree used by walk_memory_regions.

Use PAGE_* constants, per the page table api, rather
than PROT_* constants, per the mmap api.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c