mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 14:45:34 +00:00
f2c72dc278
This allows sharing flat views between address spaces (AS) when the same root memory region is used when creating a new address space. This is done by walking through all ASes and caching one FlatView per a physical root MR (i.e. not aliased). This removes search for duplicates from address_space_init_shareable() as FlatViews are shared elsewhere and keeping as::ref_count correct seems an unnecessary and useless complication. This should cause no change and memory use or boot time yet. Backports commit 967dc9b1194a9281124b2e1ce67b6c3359a2138f from qemu |
||
---|---|---|
.. | ||
unicorn | ||
list.h | ||
qemu.h | ||
uc_priv.h |