ppc/xics: Add xics to the monitor "info pic" command
commitb1fc72f0fb0aeae4194ff89c454aabe019983d0d
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Oct 2016 20:33:14 +0000 (17 22:33 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:36:58 +0000 (28 09:36 +1100)
tree983d6053b332ec42592554b3c221fd384b43a48c
parentf77d4ff8506ca4f608052486d87f8a3ed03d5202
ppc/xics: Add xics to the monitor "info pic" command

Useful to debug interrupt problems.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[clg: - updated for qemu-2.7
      - added a test on ->irqs as it is not necessarily allocated
        (PHB3_MSI)
      - removed static variable g_xics and replace with a loop on all
        children to find the xics objects.
      - rebased on InterruptStatsProvider interface ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c