mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-24 20:05:33 +00:00
eb75004013
This speeds up MEMORY_LISTENER_CALL noticeably. Right now, with many PCI devices you have N regions added to M AddressSpaces (M = # PCI devices with bus-master enabled) and each call looks up the whole listener list, with at least M listeners in it. Because most of the regions in N are BARs, which are also roughly proportional to M, the whole thing is O(M^3). This changes it to O(M^2), which is the best we can do without rewriting the whole thing. Backports commit 9a54635dcb51a3fcf7507af630168f514a8cd4e7 from qemu |
||
---|---|---|
.. | ||
address-spaces.h | ||
cpu-all.h | ||
cpu-common.h | ||
cpu-defs.h | ||
cpu_ldst.h | ||
cpu_ldst_template.h | ||
cputlb.h | ||
exec-all.h | ||
gen-icount.h | ||
helper-gen.h | ||
helper-head.h | ||
helper-proto.h | ||
helper-tcg.h | ||
hwaddr.h | ||
ioport.h | ||
memattrs.h | ||
memory-internal.h | ||
memory.h | ||
ram_addr.h | ||
ramlist.h | ||
semihost.h | ||
tb-context.h | ||
tb-hash-xx.h | ||
tb-hash.h |