Simulate edge-triggered interrupt in master PIC for time-drift-fix
The following patch fixes
1a483ef4040ed380bf69d684783d06a617073256 so that the
parent PIC pointer is used to send the edge irq0 instead of the PIC pair and
that is an incompatible pointer type as reported in :
qemu/hw/i8259.c: In function `pic_read_irq':
qemu/hw/i8259.c:248:
warning: passing arg 1 of `pic_set_irq1' from incompatible pointer type
qemu/hw/i8259.c:249:
warning: passing arg 1 of `pic_set_irq1' from incompatible pointer type
the code is equivalent as the compiler packs the PicState2 struct for s in a
way that makes "s" and "&s->pics[0]" point to the same address.
Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Signed-off-by: Avi Kivity <avi@qumranet.com>