qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenMPIC controller emulation in qemu ?


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]