When structures are only accessed read-only, it is safer to mark
them const to protect against invalid API (ab)uses. This is also
an useful hint to compilers.
v2: Remove 'xlat' patch (Peter)
Philippe Mathieu-Daudé (6):
system/memory: Constify various AddressSpace arguments (checks)
system/memory: Constify various AddressSpace arguments (flat-range)
system/memory: Constify various AddressSpace arguments (notify)
system/memory: Constify various AddressSpace arguments (cache)
system/memory: Constify various AddressSpace arguments (access)
system/memory: Constify various MemoryRegionCache arguments
include/system/memory.h | 18 +++++++++-------
include/system/memory_cached.h | 20 +++++++++---------
include/system/memory_ldst_cached.h.inc | 15 +++++++------
system/memory.c | 16 +++++++-------
system/physmem.c | 28 +++++++++++++------------
5 files changed, 53 insertions(+), 44 deletions(-)
--
2.53.0