x86: qemu: Fix broken multi-core boot
authorBin Meng <bmeng.cn@gmail.com>
Tue, 2 Feb 2021 07:04:47 +0000 (15:04 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 3 Feb 2021 14:54:56 +0000 (22:54 +0800)
commit8cd1a0cf5205a65503351945df3cdbea1a908c15
tree1e54643d514a12c6e8bb62b99f01a60370ccfff5
parentfdcb93e1709ab1a2ebb562455621617c29e2099c
x86: qemu: Fix broken multi-core boot

Unfortunately the multi-core boot for QEMU x86 has been broken since
commit 77a5e2d3bc61 ("x86: mp_init: Set up the CPU numbers at the start").

In order to support QEMU x86 multi-core boot, the /cpus node must be
bound before any actual fix up in qemu_cpu_fixup(). This adds the
uclass_get() call to ensure this, just like what was done before.

Fixes: 77a5e2d3bc61 ("x86: mp_init: Set up the CPU numbers at the start")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/qfw_cpu.c