aboutsummaryrefslogtreecommitdiff
path: root/exec-all.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-01-02 13:12:08 +0200
committerAvi Kivity <avi@redhat.com>2012-01-04 13:34:50 +0200
commita621f38de85598a13d8d8524d1a94fc6a1818215 (patch)
tree1b72656e5b100a967a0c1f399287c27d84d62a39 /exec-all.h
parent1ec9b909ff207a44d5ef2609cb4a2e3d449d485f (diff)
Direct dispatch through MemoryRegion
Now that all mmio goes through MemoryRegions, we can convert io_mem_opaque to be a MemoryRegion pointer, and remove the thunks that convert from old-style CPU{Read,Write}MemoryFunc to MemoryRegionOps. Signed-off-by: Avi Kivity <avi@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/exec-all.h b/exec-all.h
index 3d7295293f..51d01f260b 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -302,9 +302,7 @@ extern void *tci_tb_ptr;
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 CPUWriteMemoryFunc *_io_mem_write[IO_MEM_NB_ENTRIES][4];
-extern CPUReadMemoryFunc *_io_mem_read[IO_MEM_NB_ENTRIES][4];
-extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];
+extern struct MemoryRegion *io_mem_region[IO_MEM_NB_ENTRIES];
void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx,
void *retaddr);