ppc/xics: add a xics_set_nr_servers common routine
commit2bb0d10aebf2018d98b9413ab960dc8d728b2f5a
authorCédric Le Goater <clg@kaod.org>
Tue, 18 Oct 2016 08:06:32 +0000 (18 10:06 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:36:58 +0000 (28 09:36 +1100)
treef03a644a36945eb8c1f6cbf4febc80bdd62af865
parent14fd8ab26752c725b16766c823952e3138924293
ppc/xics: add a xics_set_nr_servers common routine

xics_spapr and xics_kvm nearly define the same 'set_nr_servers'
handler. Only the type of the ICP differs. So let's make a common one
to remove some duplicated code.

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