In multi-target binary, the target list is more than one, so we need register them all by iterating target list for system-emu. The user-emu still register the accel-$cpu_Type in the old way as it's stil contains only a single target, and it do not have the target list in QOM way.
This is an alternative way to Link: https://lore.kernel.org/qemu-devel/[email protected]/ Link: https://lore.kernel.org/qemu-devel/[email protected]/ Link: https://lore.kernel.org/qemu-devel/[email protected]/ doesn't means this is a blocker of them, they can co-exist. Yonggang Luo (2): target-info: cache the QOM target list before MODULE_INIT_QOM accel: register CPU parent for each target accel/accel-common.c | 6 ++---- accel/accel-internal.h | 1 + accel/accel-system.c | 24 +++++++++++++++++++++++ accel/accel-user.c | 7 +++++++ include/qemu/target-info-qom.h | 4 ++++ system/vl.c | 2 +- target-info-qom.c | 26 ++++++++++++++++++++++++- tests/qtest/fuzz/fuzz.c | 2 +- tests/unit/test-multi-target.c | 35 +++++++++++++++++++++++++++------- 9 files changed, 93 insertions(+), 14 deletions(-) -- 2.55.0.windows.3
