@samitouri / QOSamiQemu / commits / 5293cecb89

hw/cpu: Rename cpu_exec_unrealizefn() -> cpu_common_unrealize()

Keep cpu_common_*() pattern for publicly exposed common methods used by target code. Use cpu_exec_*() pattern for internal ones, mostly to distinct between system / user mode. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260811183410.22428-7-philmd@oss.qualcomm.com>

Philippe Mathieu-Daudé committed Aug 11, 2026 at 08:11 UTC 5293cecb8921aef335471d3649013567daaa0378
3 files changed +6 -4
hw/core/cpu-common.c
+2 -2
@@ -284,10 +284,10 @@ static void cpu_common_unrealizefn(DeviceState *dev)
284 #endif
285
286 /* NOTE: latest generic point before the cpu is fully unrealized */
287 - cpu_exec_unrealizefn(cpu);
287 + cpu_common_unrealize(cpu);
288 }
289
290 -void cpu_exec_unrealizefn(CPUState *cpu)
290 +void cpu_common_unrealize(CPUState *cpu)
291 {
292 cpu_vmstate_unregister(cpu);
293
include/hw/core/cpu.h
+3 -1
@@ -1180,7 +1180,9 @@ void qemu_process_cpu_events(CPUState *cpu);
1180
1181 /** cpu_common_realize: CPU DeviceRealize common handler */
1182 bool cpu_common_realize(CPUState *cpu, Error **errp);
1183 -void cpu_exec_unrealizefn(CPUState *cpu);
1183 +/** cpu_common_realize: CPU DeviceUnrealize common handler */
1184 +void cpu_common_unrealize(CPUState *cpu);
1185 +
1186 void cpu_exec_reset_hold(CPUState *cpu);
1187
1188 extern const VMStateDescription vmstate_cpu_common;
target/ppc/cpu_init.c
+1 -1
@@ -6956,7 +6956,7 @@ static void ppc_cpu_realize(DeviceState *dev, Error **errp)
6956 return;
6957
6958 unrealize:
6959 - cpu_exec_unrealizefn(cs);
6959 + cpu_common_unrealize(cs);
6960 }
6961
6962 static void ppc_cpu_unrealize(DeviceState *dev)