[PATCH 0/5] hw/intc/loongarch_pch: Split into pic common and

Bibo Mao posted 5 patches 2 months, 1 week ago
hw/intc/loongarch_pch_pic.c            | 107 ++++++++-----------------
hw/intc/loongarch_pic_common.c         |  97 ++++++++++++++++++++++
hw/intc/meson.build                    |   2 +-
hw/loongarch/virt.c                    |   2 +-
include/hw/intc/loongarch_pch_pic.h    |  71 ++++------------
include/hw/intc/loongarch_pic_common.h |  82 +++++++++++++++++++
6 files changed, 231 insertions(+), 130 deletions(-)
create mode 100644 hw/intc/loongarch_pic_common.c
create mode 100644 include/hw/intc/loongarch_pic_common.h
[PATCH 0/5] hw/intc/loongarch_pch: Split into pic common and
Posted by Bibo Mao 2 months, 1 week ago
In order to support irqchip_in_kenrel method, split loongarch pch pic
driver into two parts, pic common and pic TCG driver. LoongArch pic common
driver includes vmstate and property interface, also vmstate load and
store interface is defined in pic common driver.

In future LoongArch pic kvm driver can inherit from pic common driver.

bibo mao (5):
  hw/intc/loongarch_pic: Add loongarch pch pic common driver
  hw/intc/loongarch_pch: Merge instance_init() into realize()
  include: Add loongarch_pic_common header file
  hw/intc/loongarch_pch: Inherit from loongarch_pic_common
  hw/intc/loongarch_pch: Cleanup loongarch_pch_pic

 hw/intc/loongarch_pch_pic.c            | 107 ++++++++-----------------
 hw/intc/loongarch_pic_common.c         |  97 ++++++++++++++++++++++
 hw/intc/meson.build                    |   2 +-
 hw/loongarch/virt.c                    |   2 +-
 include/hw/intc/loongarch_pch_pic.h    |  71 ++++------------
 include/hw/intc/loongarch_pic_common.h |  82 +++++++++++++++++++
 6 files changed, 231 insertions(+), 130 deletions(-)
 create mode 100644 hw/intc/loongarch_pic_common.c
 create mode 100644 include/hw/intc/loongarch_pic_common.h


base-commit: a4eb31c678400472de0b4915b9154a7c20d8332f
-- 
2.39.3