diff options
author | Avi Kivity <avi@redhat.com> | 2011-11-21 12:27:03 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-01-04 13:34:49 +0200 |
commit | acbbec5d438dcf04234519bac53e1f5263572d76 (patch) | |
tree | 3ea3252affc27c0c6c8818c45e94374724411f44 /exec-all.h | |
parent | f1f6e3b86e0a73e0946f27ecb2b0a86e4665501c (diff) |
memory: move mmio access to functions
Currently mmio access goes directly to the io_mem_{read,write} arrays.
In preparation for eliminating them, add indirection via a function.
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.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/exec-all.h b/exec-all.h index c211242bab..23c4598263 100644 --- a/exec-all.h +++ b/exec-all.h @@ -299,8 +299,11 @@ extern void *tci_tb_ptr; #if !defined(CONFIG_USER_ONLY) -extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4]; -extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4]; +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]; void tlb_fill(CPUState *env1, target_ulong addr, int is_write, int mmu_idx, |