mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
409e9f7131
commit
d4454e41d7
2 changed files with 10 additions and 2 deletions
|
@ -133,6 +133,7 @@ struct MOS6522State {
|
|||
uint64_t frequency;
|
||||
|
||||
qemu_irq irq;
|
||||
uint8_t last_irq_levels;
|
||||
};
|
||||
|
||||
#define TYPE_MOS6522 "mos6522"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue