accel: Rename accel_cpu_realize() -> accel_cpu_common_realize()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 3 Oct 2023 12:30:21 +0000 (14:30 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Oct 2023 15:00:25 +0000 (08:00 -0700)
accel_cpu_realize() is a generic function working with CPUs
from any target. Rename it using '_common_' to emphasis it is
not target specific.

Suggested-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20231003123026.99229-4-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/accel-common.c
cpu.c
include/qemu/accel.h
target/i386/kvm/kvm-cpu.c

index 2e30b9d8f0450a12f0e53d5c760518bcfd2c9aa5..53cf08a89a0599ae4c0e7cfb40cf0bb50b5714c3 100644 (file)
@@ -119,7 +119,7 @@ void accel_cpu_instance_init(CPUState *cpu)
     }
 }
 
-bool accel_cpu_realize(CPUState *cpu, Error **errp)
+bool accel_cpu_common_realize(CPUState *cpu, Error **errp)
 {
     CPUClass *cc = CPU_GET_CLASS(cpu);
 
diff --git a/cpu.c b/cpu.c
index 61c9760e622e8a3b865aaa6815258e5f647b1c55..1e2649a7064ee782be29e20eb9af9e12dc59b614 100644 (file)
--- a/cpu.c
+++ b/cpu.c
@@ -136,7 +136,7 @@ void cpu_exec_realizefn(CPUState *cpu, Error **errp)
     /* cache the cpu class for the hotpath */
     cpu->cc = CPU_GET_CLASS(cpu);
 
-    if (!accel_cpu_realize(cpu, errp)) {
+    if (!accel_cpu_common_realize(cpu, errp)) {
         return;
     }
 
index cb64a07b8435933b917db7d6d3e87e6931ff056e..898159c001b0b4150d6e71b0be7c49aeef56a959 100644 (file)
@@ -90,11 +90,11 @@ void accel_setup_post(MachineState *ms);
 void accel_cpu_instance_init(CPUState *cpu);
 
 /**
- * accel_cpu_realize:
+ * accel_cpu_common_realize:
  * @cpu: The CPU that needs to call accel-specific cpu realization.
  * @errp: currently unused.
  */
-bool accel_cpu_realize(CPUState *cpu, Error **errp);
+bool accel_cpu_common_realize(CPUState *cpu, Error **errp);
 
 /**
  * accel_supported_gdbstub_sstep_flags:
index 9a5e105e4ea552d550f62d1b9759c3678584c6da..56c72f3c4588c4ad6a9cbb5ecca53cfc8cdd8bed 100644 (file)
@@ -35,7 +35,7 @@ static bool kvm_cpu_realizefn(CPUState *cs, Error **errp)
      * x86_cpu_realize():
      *  -> x86_cpu_expand_features()
      *  -> cpu_exec_realizefn():
-     *            -> accel_cpu_realize()
+     *            -> accel_cpu_common_realize()
      *               kvm_cpu_realizefn() -> host_cpu_realizefn()
      *  -> check/update ucode_rev, phys_bits, mwait
      */