memory: Replace io_mem_read/write with memory_region_dispatch_read/write
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 26 Apr 2015 15:49:23 +0000 (16:49 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 26 Apr 2015 15:49:23 +0000 (16:49 +0100)
commit3b6434953934e6d4a776ed426d8c6d6badee176f
tree0c2afed915cf5687dd0be64cc9042475c34cfc9e
parentcc05c43ad942165ecc6ffd39e41991bee43af044
memory: Replace io_mem_read/write with memory_region_dispatch_read/write

Rather than retaining io_mem_read/write as simple wrappers around
the memory_region_dispatch_read/write functions, make the latter
public and change all the callers to use them, since we need to
touch all the callsites anyway to add MemTxAttrs and MemTxResult
support. Delete io_mem_read and io_mem_write entirely.

(All the callers currently pass MEMTXATTRS_UNSPECIFIED
and convert the return value back to bool or ignore it.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
exec.c
hw/s390x/s390-pci-inst.c
hw/vfio/pci.c
include/exec/exec-all.h
include/exec/memory.h
memory.c
softmmu_template.h