mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
hw/intc/loongarch_extioi: Remove num-cpu property
Since cpu number can be acquired from possible_cpu_arch_ids(), num-cpu property is not necessary. Here remove num-cpu property for object TYPE_LOONGARCH_EXTIOI_COMMON object. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
This commit is contained in:
parent
5a3e068d41
commit
0443b85887
2 changed files with 0 additions and 2 deletions
|
@ -95,7 +95,6 @@ static const VMStateDescription vmstate_loongarch_extioi = {
|
|||
};
|
||||
|
||||
static const Property extioi_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOICommonState, num_cpu, 1),
|
||||
DEFINE_PROP_BIT("has-virtualization-extension", LoongArchExtIOICommonState,
|
||||
features, EXTIOI_HAS_VIRT_EXTENSION, 0),
|
||||
};
|
||||
|
|
|
@ -921,7 +921,6 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
|
|||
|
||||
/* Create EXTIOI device */
|
||||
extioi = qdev_new(TYPE_LOONGARCH_EXTIOI);
|
||||
qdev_prop_set_uint32(extioi, "num-cpu", ms->smp.cpus);
|
||||
if (virt_is_veiointc_enabled(lvms)) {
|
||||
qdev_prop_set_bit(extioi, "has-virtualization-extension", true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue