Simulate edge-triggered interrupt in master PIC for time-drift-fix
commit5d733eba33da84cb5a390773491f5c255b6512fc
authorCarlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Sun, 18 Nov 2007 05:25:19 +0000 (17 23:25 -0600)
committerAvi Kivity <avi@qumranet.com>
Sun, 18 Nov 2007 10:43:43 +0000 (18 12:43 +0200)
tree18f71300341c321f797a5d992d01aa5a1e0b83db
parenta4993c72f324ff9ef4c80b9fc5c9644b6f5d26e3
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>
hw/i8259.c