qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler


From: Richard Henderson
Subject: Re: [PATCH v3 24/24] cpus: Remove CPUClass::has_work() handler
Date: Sun, 26 Jan 2025 04:31:44 -0800
User-agent: Mozilla Thunderbird

On 1/25/25 09:01, Philippe Mathieu-Daudé wrote:
diff --git a/cpu-target.c b/cpu-target.c
index 98e9e7cc4a1..778f622b07a 100644
--- a/cpu-target.c
+++ b/cpu-target.c
@@ -230,6 +230,14 @@ void cpu_class_init_props(DeviceClass *dc)
      device_class_set_props(dc, cpu_common_props);
  }
+void cpu_exec_class_post_init(CPUClass *cc, void *data)
+{
+#ifndef CONFIG_USER_ONLY
+    /* Check mandatory SysemuCPUOps handlers */
+    g_assert(cc->sysemu_ops->has_work);
+#endif
+}
+

Does this really need to be split from...

@@ -319,6 +313,11 @@ static void cpu_common_class_init(ObjectClass *klass, void 
*data)
      dc->user_creatable = false;
  }
+static void cpu_common_post_class_init(ObjectClass *klass, void *data)
+{
+    cpu_exec_class_post_init(CPU_CLASS(klass), data);
+}

... here?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]