Sorry for the wrong cmd. It'a typo after I edit the sample command.
my command is: ./qemu-system-arm -M mymachine -smp cpus=2 -kernel test1.elf -bios test2.elf -serial stdio -serial tcp::5678,server=on,wait=off
which use 'kernel' and "bios" to load different firmwares to the 2 cpus.
You should only call armv7m_load_kernel() once, even if there
is more than one CPU in the system.
So I need to use generic loader to load file into cpu and then do cpu reset by myself(which was done in armv7m_load_kernel).
Thank you. I will try it.
I have a few further question:
in such cases, do I need a second sysbus? or can the 2 cpus use the same sysbus?
and why the armv7m_load_kernel can only be called once?
Thank you for your time.