Skip to content

system/memory: Constify various AddressSpace/MemoryRegionCache arguments

Philippe Mathieu-Daudé qemu-devel 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 2 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6system/memory: Constify various AddressSpace arguments (checks)include/system/memory.h system/physmem.c+3 -20 replies
2/6system/memory: Constify various AddressSpace arguments (flat-range)system/memory.c+6 -40 replies
3/6system/memory: Constify various AddressSpace arguments (notify)include/system/memory.h system/memory.c system/physmem.c+5 -50 replies
4/6system/memory: Constify various AddressSpace arguments (cache)include/system/memory_cached.h system/physmem.c+2 -20 replies
5/6system/memory: Constify various AddressSpace arguments (access)include/system/memory.h system/physmem.c+14 -110 replies
6/6system/memory: Constify various MemoryRegionCache argumentsinclude/system/memory_cached.h include/system/memory_ldst_cached.h.inc system/physmem.c+23 -200 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierrick BouvierRichard Henderson
SeriesR-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] system/memory: Constify various AddressSpace/MemoryRegionCache arguments

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(-)
Signature · 1 line
2.53.0