|
| From: | BALATON Zoltan |
| Subject: | Re: OpenMPIC controller emulation in qemu ? |
| Date: | Fri, 17 May 2024 19:55:43 +0200 (CEST) |
On Fri, 17 May 2024, Andrew Randrianasulu wrote:
I also tried to add multiple cpu support in openbios qemu ppc arch like it was done for sparc, but sparc just dump cpus in / of device tree? so same trick ofc failed because I do not really know forth so no idea where to put for() loop start :)
No Forth needed for that. The device tree is constucred in in openbios/arch/ppc/qemu/init.c::arch_of_init(). You can try to put a loop around cpu->initfn(cpu); in this function, you still have the number of CPUs in temp at that point so maybe something like:
for (int i = 0; i < temp; i++)
cpu->initfn(cpu);
might work but I did not try it.
Regards,
BALATON Zoltan
| [Prev in Thread] | Current Thread | [Next in Thread] |