<div dir="auto">Hello, I see this list mostly for Linux kernel patches, but we are trying to get two-processor virtual mac99 machine going in qemu, and sadly it does not work without singlestepping on boot cpu in <div dir="auto"><br></div><div dir="auto">smp_core99_kick_cpu()</div><div dir="auto"><br></div><div dir="auto"><a href="https://elixir.bootlin.com/linux/v6.12.17/source/arch/powerpc/platforms/powermac/smp.c#L796" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://elixir.bootlin.com/linux/v6.12.17/source/arch/powerpc/platforms/powermac/smp.c#L796</a></div><div dir="auto"><br></div><div dir="auto">just single stepping after switching to second thread/vCPU  ends with my naive gdb script erroring out ;)</div><div dir="auto"><br></div><div dir="auto">Last email in chain on qemu-ppc list:</div><div dir="auto"><br></div><div dir="auto"><a href="https://lists.gnu.org/archive/html/qemu-ppc/2025-03/msg00136.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.gnu.org/archive/html/qemu-ppc/2025-03/msg00136.html</a></div><div dir="auto"><br></div><div dir="auto">latest gdb log attached to</div><div dir="auto"><br></div><div dir="auto"><a href="https://lists.gnu.org/archive/html/qemu-ppc/2025-03/msg00132.html" rel="noreferrer noreferrer" target="_blank">https://lists.gnu.org/archive/html/qemu-ppc/2025-03/msg00132.html</a></div><div dir="auto"><br></div><div dir="auto">MacOS X 10.4.11 strangely works out of the box with two CPUs . Users reported even macos 9 (with selected applications like Quicktime) works!</div><div dir="auto"><br></div><div dir="auto">I can't test NetBSD/macppc due to some trouble in my crosscompiler? From netbsd/amd64 machine using standart NetBSD  build.sh script. So I put NetBSD aside for now.</div><div dir="auto"><br></div><div dir="auto">I use 'remote' gdb running in Debian ppc sid/trixie VM on the same NetBSD/amd64 host. </div><div dir="auto"><br></div><div dir="auto">Linux kernel 6.12.17 was compiled under emulation with localmodconfig where I changed ext4 and SCSI  disk.drivers to be builtin (for faster bootup without initrd). I disabled CPU_HOTPLUG after disabling sleep/hibernation support in hope it will help booting second cpu. But I was wrong about this. Recompiling might take 30 hours or so I prefer to reuse kernel I have ;) I see mac ppc SMP code was not changed much since at least 2.6.24 times of Gentoo 2008.0 so I hope it works on real machines!</div><div dir="auto"><br></div><div dir="auto">I might spotted typo in comment</div><div dir="auto"><br></div><div dir="auto"><a href="https://elixir.bootlin.com/linux/v6.12.17/source/arch/powerpc/kernel/head_book3s_32.S#L239" target="_blank" rel="noreferrer">https://elixir.bootlin.com/linux/v6.12.17/source/arch/powerpc/kernel/head_book3s_32.S#L239</a></div><div dir="auto"><br></div><div dir="auto">"/* core99 pmac starts the seconary here by changing the vector, and</div><pre>   putting it back to what it was (unknown_async_exception) when done.  */</pre><div dir="auto">"</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">secondary not seconary ?</div><div dir="auto"><br></div><div dir="auto">but apart from this I am mostly clueless how PowerPC works, especially in those dual G4 machines ....</div><div dir="auto"><br></div><div dir="auto">If you need link to deb of this kernel, .config, qemu/openbios patches, gdb script - just ask!</div><div dir="auto"><br></div><div dir="auto">Not sure if I should crosspost this back to qemu-ppc  list?</div></div>