]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/intc/loongson_ipi: Declare QOM types using DEFINE_TYPES() macro
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 10 Jul 2023 18:24:51 +0000 (20:24 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 23 Jul 2024 18:30:36 +0000 (20:30 +0200)
commit13e8ec6cf319913df4ae4f3e2e221f0b3df52acf
treeb165ed9a1625ce381185098a0a95aa2a86b995a1
parent0c2086bc7360565dfb9933181dafaefe2c94cddf
hw/intc/loongson_ipi: Declare QOM types using DEFINE_TYPES() macro

When multiple QOM types are registered in the same file,
it is simpler to use the the DEFINE_TYPES() macro. Replace
the type_init() / type_register_static() combination.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20240718133312.10324-2-philmd@linaro.org>
hw/intc/loongson_ipi.c