hw/intc/loongarch_pch: Inherit from loongarch_pic_common
authorBibo Mao <maobibo@loongson.cn>
Wed, 18 Sep 2024 06:45:50 +0000 (14:45 +0800)
committerBibo Mao <maobibo@loongson.cn>
Thu, 19 Dec 2024 07:23:29 +0000 (15:23 +0800)
commit8bf26a9ea3c8067e04c36b0280b219958955196c
tree5cabe0713249fef5717a07baf57f557f6bd7def4
parentb7563779f9e3a319af1a8d39084d0342e5dbb1bb
hw/intc/loongarch_pch: Inherit from loongarch_pic_common

Set TYPE_LOONGARCH_PIC inherit from TYPE_LOONGARCH_PIC_COMMON object,
it shares vmsate and property of TYPE_LOONGARCH_PIC_COMMON, and has
its own realize() function.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_pch_pic.c
hw/intc/loongarch_pic_common.c
hw/intc/meson.build
include/hw/intc/loongarch_pch_pic.h
include/hw/intc/loongarch_pic_common.h