qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 5/9] cpus: Add DeviceClass::[un]wire() stubs


From: Richard Henderson
Subject: Re: [PATCH 5/9] cpus: Add DeviceClass::[un]wire() stubs
Date: Tue, 28 Jan 2025 12:53:11 -0800
User-agent: Mozilla Thunderbird

On 1/28/25 06:21, Philippe Mathieu-Daudé wrote:
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  hw/core/cpu-common.c | 10 ++++++++++
  1 file changed, 10 insertions(+)

diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
index cb79566cc51..9ee44a00277 100644
--- a/hw/core/cpu-common.c
+++ b/hw/core/cpu-common.c
@@ -219,6 +219,14 @@ static void cpu_common_realizefn(DeviceState *dev, Error 
**errp)
      /* NOTE: latest generic point where the cpu is fully realized */
  }
+static void cpu_common_wire(DeviceState *dev)
+{
+}
+
+static void cpu_common_unwire(DeviceState *dev)
+{
+}
+
  static void cpu_common_unrealizefn(DeviceState *dev)
  {
      CPUState *cpu = CPU(dev);
@@ -311,6 +319,8 @@ static void cpu_common_class_init(ObjectClass *klass, void 
*data)
      k->gdb_write_register = cpu_common_gdb_write_register;
      set_bit(DEVICE_CATEGORY_CPU, dc->categories);
      dc->realize = cpu_common_realizefn;
+    dc->wire = cpu_common_wire;
+    dc->unwire = cpu_common_unwire;
      dc->unrealize = cpu_common_unrealizefn;
      rc->phases.hold = cpu_common_reset_hold;
      cpu_class_init_props(dc);

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

But doesn't need to be split from patch 6.


r~



reply via email to

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