Le 24/02/2022 à 12:59, Mark Cave-Ayland a écrit :
For historical reasons each mos6522 instance implements its own setting and
update of the IFR flag bits using methods exposed by MOS6522DeviceClass. As
of today this is no longer required, and it is now possible to implement
the mos6522 IRQs as standard qdev gpios.
Switch over to use qdev gpios for the mos6522 device and update all instances
accordingly.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
---
hw/misc/mac_via.c | 56 +++++++--------------------------------
hw/misc/macio/cuda.c | 5 ++--
hw/misc/macio/pmu.c | 4 +--
hw/misc/mos6522.c | 15 +++++++++++
include/hw/misc/mac_via.h | 5 ----
include/hw/misc/mos6522.h | 2 ++
6 files changed, 31 insertions(+), 56 deletions(-)
Reviewed-by: Laurent Vivier <laur...@vivier.eu>