qemu版本 7.2.13
make传入-smp "4",但在am/src/x86/qemu/trm.c的__am_lapic_init()最后只能识别到1个
如果把qemu.mk中的-smp "$(smp)"改为-smp "$(smp),sockets=$(smp),cores=1"好像可以解决问题
qemu的文档中说
For example, the following option defines a machine board with 2 sockets of 1 core before 6.2 and 1 socket of 2 cores after 6.2:
-smp 2