Skip to content

system/memory: Constify various AddressSpace/MemoryRegionCache arguments

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8system/memory: Constify various AddressSpace arguments (flatview)include/system/memory.h system/memory-internal.h system/memory.c+5 -40 replies
2/8system/memory: Constify various AddressSpace arguments (checks)include/system/memory.h system/physmem.c+5 -40 replies
3/8system/memory: Constify various AddressSpace arguments (xlat)include/system/memory.h system/physmem.c+8 -61 reply
4/8system/memory: Constify various AddressSpace arguments (flat-range)system/memory.c+6 -40 replies
5/8system/memory: Constify various AddressSpace arguments (notify)include/system/memory.h system/memory.c system/physmem.c+5 -50 replies
6/8system/memory: Constify various AddressSpace arguments (cache)include/system/memory_cached.h system/physmem.c+2 -20 replies
7/8system/memory: Constify various AddressSpace arguments (access)include/system/memory.h system/physmem.c+19 -160 replies
8/8system/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

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPierrick Bouvier
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH-for-11.1 0/8] 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.

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