spapr/xive: Turn some sanity checks into assertions
commit484d774c3a5cefd7991ff2bee9bd70977bcb9a67
authorGreg Kurz <groug@kaod.org>
Fri, 20 Nov 2020 17:46:39 +0000 (20 18:46 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 14 Dec 2020 04:50:55 +0000 (14 15:50 +1100)
tree80c41d75d3f07f9b3451661008a122038f667087
parent17584289af1aaa72c932e7e47c25d583b329dc45
spapr/xive: Turn some sanity checks into assertions

The sPAPR XIVE device is created by the machine in spapr_irq_init().
The latter overrides any value provided by the user with -global for
the "nr-irqs" and "nr-ends" properties with strictly positive values.

It seems reasonable to assume these properties should never be 0,
which wouldn't make much sense by the way.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20201120174646.619395-2-groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive.c