Hi, I'd like to enforce some CpuClass handlers to take a const CPUState* argument, but before I need to clean each target. RFC starting with ARM, mostly to get feedback on const_cpu_env() and const_env_archcpu().
Thanks, Phil. Based-on: <[email protected]> "softfloat: Constify helpers returning float_status field" Philippe Mathieu-Daudé (2): cpus: Introduce const_cpu_env() and const_env_archcpu() target/arm: Constify lot of helpers taking CPUARMState argument include/exec/cpu-common.h | 5 +++ include/hw/core/cpu.h | 6 ++++ target/arm/cpu-features.h | 2 +- target/arm/cpu.h | 71 ++++++++++++++++++++------------------- target/arm/internals.h | 10 +++--- target/arm/helper.c | 25 +++++++------- target/arm/ptw.c | 2 +- target/arm/tcg/m_helper.c | 8 ++--- target/arm/vfp_helper.c | 6 ++-- 9 files changed, 74 insertions(+), 61 deletions(-) -- 2.47.1
