mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/intc/loongarch_pch: Code cleanup about loongarch_pch_pic
Remove definition about LoongArchPCHPIC and LOONGARCH_PCH_PIC, and replace them with LoongArchPICCommonState and LOONGARCH_PIC_COMMON separately. Also remove unnecessary header files. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
36d31cf812
commit
b2799f101c
3 changed files with 11 additions and 19 deletions
|
@ -894,7 +894,7 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
|
|||
/* Add Extend I/O Interrupt Controller node */
|
||||
fdt_add_eiointc_node(lvms, &cpuintc_phandle, &eiointc_phandle);
|
||||
|
||||
pch_pic = qdev_new(TYPE_LOONGARCH_PCH_PIC);
|
||||
pch_pic = qdev_new(TYPE_LOONGARCH_PIC);
|
||||
num = VIRT_PCH_PIC_IRQ_NUM;
|
||||
qdev_prop_set_uint32(pch_pic, "pch_pic_irq_num", num);
|
||||
d = SYS_BUS_DEVICE(pch_pic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue