ICH9 LPC: handle GSI as qdev GPIO
authorEfimov Vasily <real@ispras.ru>
Wed, 22 Jun 2016 12:24:54 +0000 (15:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 12:03:46 +0000 (14:03 +0200)
commitf999c0de05103ccd91b3efff282eaa1c0ea93015
tree211a349b0866d56c77c4802d6e992ed0fc81a7f7
parent35a6b23c824e54055f1a2ab30fa5b051a82cdda6
ICH9 LPC: handle GSI as qdev GPIO

The ICH9 LPC bridge has 24 output IRQs connected to GSI. Currently the IRQs are
referenced by pointers. The pointers are initialized at startup by direct access
to the structure fields. This violates Qemu device model.

The patch makes the IRQs handling to use GPIO model.

Signed-off-by: Efimov Vasily <real@ispras.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc_q35.c
hw/isa/lpc_ich9.c
include/hw/i386/ich9.h