hw/cpu: Rename cpu_common_realizefn() -> cpu_exec_realize()
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-5-philmd@oss.qualcomm.com>
Philippe Mathieu-Daudé committed
Aug 10, 2026 at 16:34 UTC
dc6c2e66727fbd8a670ba821f75f82e80d7b9216
2 files changed
+3
-3
hw/core/cpu-common.c
+2
-2
@@ -246,7 +246,7 @@ bool cpu_exec_realizefn(CPUState *cpu, Error **errp)
246
return true;
247
}
248
249
-static void cpu_common_realizefn(DeviceState *dev, Error **errp)
249
+static void cpu_exec_realize(DeviceState *dev, Error **errp)
250
{
251
CPUState *cpu = CPU(dev);
252
Object *machine = qdev_get_machine();
@@ -379,7 +379,7 @@ static void cpu_common_class_init(ObjectClass *klass, const void *data)
379
k->gdb_read_register = cpu_common_gdb_read_register;
380
k->gdb_write_register = cpu_common_gdb_write_register;
381
set_bit(DEVICE_CATEGORY_CPU, dc->categories);
382
- dc->realize = cpu_common_realizefn;
382
+ dc->realize = cpu_exec_realize;
383
dc->unrealize = cpu_common_unrealizefn;
384
rc->phases.hold = cpu_common_reset_hold;
385
rc->phases.exit = cpu_common_reset_exit;
target/i386/kvm/kvm-cpu.c
+1
-1
@@ -63,7 +63,7 @@ static bool kvm_cpu_realizefn(CPUState *cs, Error **errp)
63
* host_cpu_realizefn()
64
* kvm_set_guest_phys_bits()
65
* check/update ucode_rev, phys_bits, guest_phys_bits, mwait
66
- * cpu_common_realizefn() (via xcc->parent_realize)
66
+ * cpu_exec_realize() (via xcc->parent_realize)
67
*/
68
if (xcc->max_features) {
69
if (enable_cpu_pm) {