Peter Maydell
e3d0814368
hw: Use device_class_set_legacy_reset() instead of opencoding
...
Use device_class_set_legacy_reset() instead of opencoding an
assignment to DeviceClass::reset. This change was produced
with:
spatch --macro-file scripts/cocci-macro-file.h \
--sp-file scripts/coccinelle/device-reset.cocci \
--keep-comments --smpl-spacing --in-place --dir hw
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-id: 20240830145812.1967042-8-peter.maydell@linaro.org
2024-09-13 15:31:44 +01:00
Philippe Mathieu-Daudé
b2580720d0
hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info()
...
Replace Monitor API by HumanReadableText one (see commit f2de406f29
"docs/devel: document expectations for QAPI data modelling for QMP"
for rationale).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com >
Message-Id: <20240610063518.50680-2-philmd@linaro.org >
2024-06-19 12:40:49 +02:00
Richard Henderson
45b1f81d90
hw/intc: Constify VMState
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20231221031652.119827-35-richard.henderson@linaro.org >
2023-12-29 11:17:30 +11:00
Philippe Mathieu-Daudé
b8fc619550
hw/m68k/irqc: Pass CPU using QOM link property
...
Avoid the interrupt controller directly access the 'first_cpu'
global. Pass 'cpu' from the board code.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Thomas Huth <huth@tuxfamily.org >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Message-ID: <20231024083010.12453-2-philmd@linaro.org >
Signed-off-by: Thomas Huth <huth@tuxfamily.org >
2023-11-01 07:20:34 +01:00
Philippe Mathieu-Daudé
65b4c8c759
hw/m68k: Fix typo in SPDX tag
...
Fix 'Identifer' -> 'Identifier' typo.
Cc: Laurent Vivier <laurent@vivier.eu >
Fixes: 8c6df16ff6
("hw/char: add goldfish-tty")
Fixes: 8785559390
("hw/intc: add goldfish-pic")
Fixes: 2fde99ee31
("m68k: add an interrupt controller")
Fixes: 0791bc02b8
("m68k: add a system controller")
Fixes: e1cecdca55
("m68k: add Virtual M68k Machine")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20211103105311.3399293-1-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-11-09 10:11:27 +01:00
Laurent Vivier
2fde99ee31
m68k: add an interrupt controller
...
A (generic) copy of the GLUE device we already have for q800 to use with
the m68k-virt machine.
The q800 one would disappear in the future as q800 uses actually the djMEMC
controller.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20210312214145.2936082-4-laurent@vivier.eu >
2021-03-15 21:02:20 +01:00