]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv/riscv-iommu: Remove definition of RISCVIOMMU[Pci|Sys]Class
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Fri, 6 Jun 2025 09:24:06 +0000 (17:24 +0800)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jun 2025 10:59:09 +0000 (12:59 +0200)
commit860bb8b925418f3ea55305da2a7387d8318ac00c
treef412bea65f7f5a73872284b1d3acc1402d881af6
parent2f8f01ae3d6b7acae187d700d7358d9bb248a696
hw/riscv/riscv-iommu: Remove definition of RISCVIOMMU[Pci|Sys]Class

RISCVIOMMUPciClass and RISCVIOMMUSysClass are defined with missed
parent class, class_init on them may corrupt their parent class
fields.

It's lucky that parent_realize and parent_phases are not initialized
or used until now, so just remove the definitions. They can be added
back when really necessary.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250606092406.229833-6-zhenzhong.duan@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/riscv/riscv-iommu-pci.c
hw/riscv/riscv-iommu-sys.c
include/hw/riscv/iommu.h