machine: move UP defaults to class_base_init
commit2c920e4577b29702c0c01b0d491903c159df894a
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 11:23:49 +0000 (21 07:23 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Oct 2020 11:08:40 +0000 (26 07:08 -0400)
tree034e0d069c332bda5d988651a3bc5c047cd113a5
parent9f2931bc65ea7a453b8778e00c3c825923d97b75
machine: move UP defaults to class_base_init

Clean up vl.c, default min/max/default_cpus to uniprocessor
directly in the QOM class initialization code.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
softmmu/vl.c