mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
s390x: initialize cpu firstly
By initializing the CPU firstly, we are able to retrieve and use the CPU model features when initializing other subsystem or devices. Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
fb32d2385a
commit
3720d3356d
1 changed files with 3 additions and 3 deletions
|
@ -122,6 +122,9 @@ static void ccw_init(MachineState *machine)
|
|||
s390_sclp_init();
|
||||
s390_memory_init(machine->ram_size);
|
||||
|
||||
/* init CPUs */
|
||||
s390_init_cpus(machine);
|
||||
|
||||
s390_flic_init();
|
||||
|
||||
/* get a BUS */
|
||||
|
@ -138,9 +141,6 @@ static void ccw_init(MachineState *machine)
|
|||
/* register hypercalls */
|
||||
virtio_ccw_register_hcalls();
|
||||
|
||||
/* init CPUs */
|
||||
s390_init_cpus(machine);
|
||||
|
||||
if (kvm_enabled()) {
|
||||
kvm_s390_enable_css_support(s390_cpu_addr2state(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue