unicorn/qemu/include
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
..
exec memory: Define API for MemoryRegionOps to take attrs and return status 2018-02-12 17:17:27 -05:00
fpu softfloat: expand out STATUS macro 2018-02-12 13:43:13 -05:00
hw target-i386: clear bsp bit when designating bsp 2018-02-12 16:40:35 -05:00
qapi platform.h move #3 2017-01-21 00:13:21 +11:00
qemu bitops.h: sextract64() return type should be int64_t, not uint64_t 2018-02-12 16:08:14 -05:00
qom exec: make iotlb RCU-friendly 2018-02-12 15:20:39 -05:00
sysemu ffs() is redundant 2017-01-21 11:11:22 +08:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h platform.h move #3 2017-01-21 00:13:21 +11:00
qemu-common.h fix conflicts 2017-01-21 11:06:05 +08:00