unicorn/qemu/include/exec
Peter Maydell b2962f4613
memory: Define API for MemoryRegionOps to take attrs and return status
Define an API so that devices can register MemoryRegionOps whose read
and write callback functions are passed an arbitrary pointer to some
transaction attributes and can return a success-or-failure status code.
This will allow us to model devices which:
* behave differently for ARM Secure/NonSecure memory accesses
* behave differently for privileged/unprivileged accesses
* may return a transaction failure (causing a guest exception)
for erroneous accesses

This patch defines the new API and plumbs the attributes parameter through
to the memory.c public level functions io_mem_read() and io_mem_write(),
where it is currently dummied out.

The success/failure response indication is also propagated out to
io_mem_read() and io_mem_write(), which retain the old-style
boolean true-for-error return.

Backports commit cc05c43ad942165ecc6ffd39e41991bee43af044 from qemu
2018-02-12 17:17:27 -05:00
..
address-spaces.h import 2015-08-21 15:04:50 +08:00
cpu-all.h import 2015-08-21 15:04:50 +08:00
cpu-common.h delete qemu/include/exec/poison.h 2017-01-20 13:58:50 +08:00
cpu-defs.h Fix for MIPS issue. (#733) 2017-01-23 12:39:34 +08:00
cpu_ldst.h cpu_ldst.h: Allow NB_MMU_MODES to be 7 2018-02-12 11:21:19 -05:00
cpu_ldst_template.h This code should now build the x86_x64-softmmu part 2. 2017-01-19 22:50:28 +11:00
cputlb.h exec: make iotlb RCU-friendly 2018-02-12 15:20:39 -05:00
exec-all.h exec: make iotlb RCU-friendly 2018-02-12 15:20:39 -05:00
gen-icount.h tcg: Change translator-side labels to a pointer 2018-02-09 14:17:56 -05:00
helper-gen.h import 2015-08-21 15:04:50 +08:00
helper-head.h import 2015-08-21 15:04:50 +08:00
helper-proto.h import 2015-08-21 15:04:50 +08:00
helper-tcg.h This code should now build the x86_x64-softmmu part 2. 2017-01-19 22:50:28 +11:00
hwaddr.h platform.h move #3 2017-01-21 00:13:21 +11:00
ioport.h import 2015-08-21 15:04:50 +08:00
memattrs.h memory: Define API for MemoryRegionOps to take attrs and return status 2018-02-12 17:17:27 -05:00
memory-internal.h import 2015-08-21 15:04:50 +08:00
memory.h memory: Define API for MemoryRegionOps to take attrs and return status 2018-02-12 17:17:27 -05:00
ram_addr.h we dont need to handle VGA & Migration memories 2017-01-20 17:03:39 +08:00