diff options
author | Anthony Liguori | 2012-03-13 02:50:09 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-03-13 02:50:09 +0100 |
commit | 79122e933cd8bda0917c56c1bdac3f2b8d49fb23 (patch) | |
tree | 024464f125c49fd112a43df397ecedec8616a64e /exec-all.h | |
parent | Merge remote-tracking branch 'stefanha/tracing' into staging (diff) | |
parent | memory: get rid of cpu_register_io_memory() (diff) | |
download | qemu-79122e933cd8bda0917c56c1bdac3f2b8d49fb23.tar.gz qemu-79122e933cd8bda0917c56c1bdac3f2b8d49fb23.tar.xz qemu-79122e933cd8bda0917c56c1bdac3f2b8d49fb23.zip |
Merge remote-tracking branch 'qemu-kvm/memory/core' into staging
* qemu-kvm/memory/core:
memory: get rid of cpu_register_io_memory()
memory: dispatch directly via MemoryRegion
exec: fix code tlb entry misused as iotlb in get_page_addr_code()
memory: store section indices in iotlb instead of io indices
memory: make phys_page_find() return an unadjusted section
Diffstat (limited to 'exec-all.h')
-rw-r--r-- | exec-all.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/exec-all.h b/exec-all.h index 51d01f260b..3ec60a2c49 100644 --- a/exec-all.h +++ b/exec-all.h @@ -299,10 +299,11 @@ extern void *tci_tb_ptr; #if !defined(CONFIG_USER_ONLY) -uint64_t io_mem_read(int index, target_phys_addr_t addr, unsigned size); -void io_mem_write(int index, target_phys_addr_t addr, uint64_t value, - unsigned size); -extern struct MemoryRegion *io_mem_region[IO_MEM_NB_ENTRIES]; +struct MemoryRegion *iotlb_to_region(target_phys_addr_t index); +uint64_t io_mem_read(struct MemoryRegion *mr, target_phys_addr_t addr, + unsigned size); +void io_mem_write(struct MemoryRegion *mr, target_phys_addr_t addr, + uint64_t value, unsigned size); void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx, void *retaddr); |