[PATCH 0/4] hw/intc/loongarch_pch: Cleanup with register name

Bibo Mao posted 4 patches 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250317094354.1028221-1-maobibo@loongson.cn
Maintainers: Song Gao <gaosong@loongson.cn>, Bibo Mao <maobibo@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
hw/intc/loongarch_pch_pic.c            | 82 +++++++++++---------------
hw/loongarch/virt.c                    |  4 +-
include/hw/intc/loongarch_pic_common.h | 36 ++++-------
3 files changed, 49 insertions(+), 73 deletions(-)
[PATCH 0/4] hw/intc/loongarch_pch: Cleanup with register name
Posted by Bibo Mao 9 months ago
Here is cleanup with register name, the width of some registers are 64 bit.
To emulate 32 bit memory access, it is split into two registers with suffix
name low and high. Here register name and (register name + 4) is used
rather than splitting into two registers.

There is no function change in this patch set.

Bibo Mao (4):
  hw/intc/loongarch_pch: Use default path when access some registers
  hw/intc/loongarch_pch: Rename register name
  hw/intc/loongarch_pch: Rename macro PCH_PIC_xxx_OFFSET with
    PCH_PIC_xxx
  hw/intc/loongarch_pch: Remove some duplicate macro

 hw/intc/loongarch_pch_pic.c            | 82 +++++++++++---------------
 hw/loongarch/virt.c                    |  4 +-
 include/hw/intc/loongarch_pic_common.h | 36 ++++-------
 3 files changed, 49 insertions(+), 73 deletions(-)


base-commit: aa90f1161bb17a4863e16ec2f75104cff0752d4e
-- 
2.39.3