mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
b88290cd9e
commit
71cd4dace9
2 changed files with 24 additions and 33 deletions
|
@ -108,7 +108,6 @@ struct sPAPRMachineState {
|
|||
char *kvm_type;
|
||||
MemoryHotplugState hotplug_memory;
|
||||
|
||||
uint32_t nr_servers;
|
||||
const char *icp_type;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue