mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/intc/loongson_ipi: Remove property num_cpu from loongson_ipi_common
With mips64 loongson ipi, num_cpu property is used. With loongarch ipi, num_cpu can be acquired from possible_cpu_arch_ids. Here remove property num_cpu from loongson_ipi_common, and put it into loongson and loongarch ipi separately. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn>
This commit is contained in:
parent
5b82177add
commit
ce78dacf7e
3 changed files with 12 additions and 6 deletions
|
@ -9,7 +9,6 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/intc/loongson_ipi_common.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "qemu/log.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "trace.h"
|
||||
|
@ -301,10 +300,6 @@ static const VMStateDescription vmstate_loongson_ipi_common = {
|
|||
}
|
||||
};
|
||||
|
||||
static const Property ipi_common_properties[] = {
|
||||
DEFINE_PROP_UINT32("num-cpu", LoongsonIPICommonState, num_cpu, 1),
|
||||
};
|
||||
|
||||
static void loongson_ipi_common_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
@ -314,7 +309,6 @@ static void loongson_ipi_common_class_init(ObjectClass *klass, void *data)
|
|||
&licc->parent_realize);
|
||||
device_class_set_parent_unrealize(dc, loongson_ipi_common_unrealize,
|
||||
&licc->parent_unrealize);
|
||||
device_class_set_props(dc, ipi_common_properties);
|
||||
dc->vmsd = &vmstate_loongson_ipi_common;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue