qemu-e2k/include/exec
Philippe Mathieu-Daudé 3ab6fdc91b softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR
Add the 'memory' bit to the memory attributes to restrict bus
controller accesses to memories.

Introduce flatview_access_allowed() to check bus permission
before running any bus transaction.

Have read/write accessors return MEMTX_ACCESS_ERROR if an access is
restricted.

There is no change for the default case where 'memory' is not set.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211215182421.418374-4-philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[thuth: Replaced MEMTX_BUS_ERROR with MEMTX_ACCESS_ERROR, remove "inline"]
Signed-off-by: Thomas Huth <thuth@redhat.com>
2022-03-21 10:10:58 +01:00
..
user
address-spaces.h
confidential-guest-support.h
cpu_ldst.h exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition 2022-03-06 13:15:42 +01:00
cpu-all.h exec: Make cpu_memory_rw_debug() target agnostic 2022-03-06 13:15:42 +01:00
cpu-common.h softmmu: List CPU types again 2022-03-16 08:43:10 +01:00
cpu-defs.h
cputlb.h
exec-all.h exec/cpu: Make address_space_init/reloading_memory_map target agnostic 2022-03-06 13:15:42 +01:00
gdbstub.h exec/gdbstub: Make gdb_exit() / gdb_set_stop_cpu() target agnostic 2022-03-06 13:15:42 +01:00
gen-icount.h
helper-gen.h
helper-head.h tcg: Remove dh_alias indirection for dh_typecode 2022-02-28 08:04:06 -10:00
helper-proto.h
helper-tcg.h
hwaddr.h
ioport.h
log.h
memattrs.h softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR 2022-03-21 10:10:58 +01:00
memop.h
memopidx.h
memory_ldst_cached.h.inc
memory_ldst_phys.h.inc
memory_ldst.h.inc
memory-internal.h
memory.h
page-vary.h
plugin-gen.h
poison.h target: Use CPUArchState as interface to target-specific CPU state 2022-03-06 22:23:09 +01:00
ram_addr.h
ramblock.h exec/ramblock: Add missing includes 2022-02-21 10:18:06 +01:00
ramlist.h
softmmu-semi.h
target_page.h
translate-all.h
translator.h