mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
14fd8ab267
commit
2bb0d10aeb
4 changed files with 25 additions and 27 deletions
|
@ -188,6 +188,8 @@ void xics_spapr_free(XICSState *icp, int irq, int num);
|
|||
|
||||
void xics_cpu_setup(XICSState *icp, PowerPCCPU *cpu);
|
||||
void xics_cpu_destroy(XICSState *icp, PowerPCCPU *cpu);
|
||||
void xics_set_nr_servers(XICSState *xics, uint32_t nr_servers,
|
||||
const char *typename, Error **errp);
|
||||
|
||||
/* Internal XICS interfaces */
|
||||
int xics_get_cpu_index_by_dt_id(int cpu_dt_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue