diff options
author | Mark Cave-Ayland | 2022-03-05 16:09:54 +0100 |
---|---|---|
committer | Mark Cave-Ayland | 2022-03-09 10:28:28 +0100 |
commit | d4454e41d74b85c92fbca06a30622a18545aad81 (patch) | |
tree | da5e8122f94330d4f6cf19473743e8bd89b8037f /include/hw/misc | |
parent | mos6522: add "info via" HMP command for debugging (diff) | |
download | qemu-d4454e41d74b85c92fbca06a30622a18545aad81.tar.gz qemu-d4454e41d74b85c92fbca06a30622a18545aad81.tar.xz qemu-d4454e41d74b85c92fbca06a30622a18545aad81.zip |
mos6522: record last_irq_levels in mos6522_set_irq()
To detect edge-triggered IRQs it is necessary to store the last state of each
IRQ in a last_irq_levels bitmap.
Note: this is a migration break for machines which use mos6522 instances which
are g3beige/mac99 (PPC) and q800 (m68k).
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220305150957.5053-10-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include/hw/misc')
-rw-r--r-- | include/hw/misc/mos6522.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/mos6522.h b/include/hw/misc/mos6522.h index 193a3dc870..babea99e06 100644 --- a/include/hw/misc/mos6522.h +++ b/include/hw/misc/mos6522.h @@ -133,6 +133,7 @@ struct MOS6522State { uint64_t frequency; qemu_irq irq; + uint8_t last_irq_levels; }; #define TYPE_MOS6522 "mos6522" |