]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/intc/loongarch_pch: Use relative address in MemoryRegionOps
authorBibo Mao <maobibo@loongson.cn>
Wed, 7 May 2025 02:31:37 +0000 (10:31 +0800)
committerSong Gao <gaosong@loongson.cn>
Wed, 14 May 2025 07:44:45 +0000 (15:44 +0800)
commitab3ab67348b1e34630272b05f9f7f187fd6a1f8f
tree455800d1f6ffbf60a1daad8de01bab1d3cea67d9
parentc2658b0de5cb24b6eb49751c92380d30f1d9258f
hw/intc/loongarch_pch: Use relative address in MemoryRegionOps

Parameter address for read and write callback in MemoryRegionOps is
relative offset with base address of this MemoryRegionOps. It can
be directly used as offset and offset calculation can be removed.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20250507023148.1877287-6-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/intc/loongarch_pch_pic.c