On 10/1/25 19:27, Philippe Mathieu-Daudé wrote:
SerialState::irq must be set by parent when the object is realized.

Suggested-by: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  hw/char/serial-pci-multi.c | 2 +-
  hw/char/serial-pci.c       | 2 +-
  hw/char/serial.c           | 2 ++
  3 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/hw/char/serial.c b/hw/char/serial.c
index 70044e14a0f..562931685e7 100644
--- a/hw/char/serial.c
+++ b/hw/char/serial.c
@@ -923,6 +923,8 @@ static void serial_realize(DeviceState *dev, Error **errp)
  {
      SerialState *s = SERIAL(dev);
+ assert(s->irq);

Patch incomplete, missing to update serial_mm_realize().

Reply via email to