spapr: remove the 'nr_servers' field from the machine
commit71cd4dace9abf51469cfbf6db622124993955f78
authorCédric Le Goater <clg@kaod.org>
Wed, 5 Apr 2017 06:37:44 +0000 (5 08:37 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:41:55 +0000 (26 12:41 +1000)
tree9d9099d7841c6e0bac7728dce07dea1d73a9d410
parentb88290cd9ea474fea38c4733f365a3cd2519723e
spapr: remove the 'nr_servers' field from the machine

xics_system_init() does not need 'nr_servers' anymore as it is only
used to define the 'interrupt-controller' node in the device tree. So
let's just compute the value when calling spapr_dt_xics().

This also gives us an opportunity to simplify the xics_system_init()
routine and introduce a specific spapr_ics_create() helper to create
the sPAPR ICS object.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
include/hw/ppc/spapr.h