The current code allows us direct lookup from physical address (or TLB entry) to a MemoryRegion, yet we still dispatch accesses via the ram_addr returned by cpu_register_io_memory(). This is clumsy, so remove this extra indirection.
Avi Kivity (5): memory: make phys_page_find() return an unadjusted section memory: store section indices in iotlb instead of io indices exec: fix code tlb entry misused as iotlb in get_page_addr_code() memory: dispatch directly via MemoryRegion memory: get rid of cpu_register_io_memory() cpu-all.h | 8 - exec-all.h | 9 +- exec-obsolete.h | 3 - exec.c | 362 ++++++++++++++++++++-------------------------------- memory.c | 13 +- softmmu_template.h | 40 +++--- 6 files changed, 168 insertions(+), 267 deletions(-) -- 1.7.9