ppc/pnv: Introduce PnvChipClass::intc_print_info() method
commit85913070a6c9fcbe1ac6a043f3278b2982702143
authorGreg Kurz <groug@kaod.org>
Fri, 13 Dec 2019 12:00:07 +0000 (13 13:00 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:59:10 +0000 (17 10:59 +1100)
tree8558f5da3fa7db2d819f32700e3df5d03e9bbeb7
parentacc39abb311d75d945c0efb17ae43bf3ef367170
ppc/pnv: Introduce PnvChipClass::intc_print_info() method

The pnv_pic_print_info() callback checks the type of the chip in order
to forward to the request appropriate interrupt controller. This can
be achieved with QOM. Introduce a method for this in the base chip class
and implement it in child classes.

This also prepares ground for the upcoming interrupt controller of POWER10
chips.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157623840755.360005.5002022339473369934.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
include/hw/ppc/pnv.h