On 3/19/26 12:10 PM, Philippe Mathieu-Daudé wrote:
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.

Philippe Mathieu-Daudé (8):
   system/memory: Constify various AddressSpace arguments (flatview)
   system/memory: Constify various AddressSpace arguments (checks)
   system/memory: Constify various AddressSpace arguments (xlat)
   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                 | 32 +++++++++---------
  include/system/memory_cached.h          | 20 +++++------
  system/memory-internal.h                |  5 +--
  include/system/memory_ldst_cached.h.inc | 15 +++++----
  system/memory.c                         | 18 +++++-----
  system/physmem.c                        | 44 ++++++++++++++-----------
  6 files changed, 73 insertions(+), 61 deletions(-)


Series:
Reviewed-by: Pierrick Bouvier <[email protected]>


Reply via email to