system/memory: Constify various AddressSpace arguments (cache)

Mark the AddressSpace structure const when it is only accessed
read-only.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20260616020359.18627-5-philmd@oss.qualcomm.com>
This commit is contained in:
Philippe Mathieu-Daudé
2026-03-19 13:31:40 +01:00
committed by Philippe Mathieu-Daudé
parent e8d053f4de
commit 7c862a8a45
2 changed files with 2 additions and 2 deletions

View File

@@ -3829,7 +3829,7 @@ void cpu_physical_memory_unmap(void *buffer, hwaddr len,
#include "memory_ldst.c.inc"
int64_t address_space_cache_init(MemoryRegionCache *cache,
AddressSpace *as,
const AddressSpace *as,
hwaddr addr,
hwaddr len,
bool is_write)