<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 21, 2018, at 7:36 AM, Segher Boessenkool <<a href="mailto:segher@kernel.crashing.org" class="">segher@kernel.crashing.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Sun, Jan 21, 2018 at 09:29:18AM +0000, Mark Cave-Ayland wrote:<br class=""><blockquote type="cite" class="">On 20/01/18 15:51, Segher Boessenkool wrote:<br class=""><blockquote type="cite" class="">On Sat, Jan 20, 2018 at 09:38:21AM -0500, Jd Lyons via OpenBIOS wrote:<br class=""><blockquote type="cite" class="">--- a/arch/ppc/qemu/init.c<br class="">+++ b/arch/ppc/qemu/init.c<br class="">@@ -550,6 +550,18 @@ static const struct cpudef ppc_defs[] = {<br class="">         .tlb_size = 0x80,<br class="">         .initfn = cpu_g4_init,<br class="">     },<br class="">+    .iu_version = 0x80030000,<br class="">+    .name = "PowerPC,G4",<br class="">+    .icache_size = 0x8000,<br class="">+    .dcache_size = 0x8000,<br class="">+    .icache_sets = 0x80,<br class="">+    .dcache_sets = 0x80,<br class="">+    .icache_block_size = 0x20,<br class="">+    .dcache_block_size = 0x20,<br class="">+    .tlb_sets = 0x40,<br class="">+    .tlb_size = 0x80,<br class="">+    .initfn = cpu_g4_init,<br class="">+},<br class=""></blockquote><br class="">These numbers are all correct (I checked against the manual).<br class=""><br class="">Should there be something for L2 as well?<br class=""></blockquote><br class="">Good question - I suspect you're the best person to know here ;)  Could <br class="">not having the L2 properties cause strange behaviour, or will the guest <br class="">OS carry on fine without them present? (I presume this isn't a NACK?)<br class=""></blockquote><br class="">This isn't a NAK; the other CPUs are like that as well in the openbios<br class="">code I guess, and some of those have L2.<br class=""><br class="">L2 is described in a node _under_ the "cpu" node in the device tree.<br class="">Linux does not care if it is absent; I don't know about the other OSes<br class="">though.  If everything works it is not a pressing concern ;-)<br class=""><br class=""></div></div></blockquote><div><br class=""></div><div>After installing Linux in the guest, no L2 cache is active, and you can really fell it as to how responsive the system is.</div><div><br class=""></div><div>I don’t know if the L2 cache is emulated on the PPC CPU’s that Qemu support?</div><div><br class=""></div><div>If it is, then we should add this to openbios, but if it isn’t, I don’t know if that would break things?</div><div><br class=""></div><div>On a side note, investigating why BootX hangs when I try to boot OS X with -cpu host, it seem the bless command will create BootX and you can pass it a file to create a costume BootX from.</div><div><br class=""></div><div>If anyone knows anything about this feature, please speak up.</div><div><br class=""></div><div>Steve Smith created a version of BootX to get Mac OS Sever v1.2 booting in Qemu-PPC, and it has some logging features, but it doesn’t work with kernels passed OS X 10.1. I tried to boot the 10.1 CD with it, with -cpu host, but it doesn’t give me any useful info.</div><div><br class=""></div><div><a href="https://github.com/steventroughtonsmith/bootx" class="">https://github.com/steventroughtonsmith/bootx</a></div><div><br class=""></div><div>bless —help </div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">--bootinfo [file]<span class="Apple-tab-span" style="white-space:pre">    </span>Use <file> to create a "BootX" file in the</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span class="Apple-tab-span" style="white-space:pre">                 </span>blessed dir</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Mark, I’ll look over the info you posted and see if I can figure the proper way to submit a patch. I’m having trouble with my email clients on the old PPC machines, and yahoo doesn’t want to play nice. </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">My patch to Qemu is incomplete, seems the cpu I added doesn’t get added to the cpu info list when you invoke —cpu help, and you can’t specify it with -cpu 7447a_v1.5.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">It’s a bit of a leaning curve for me, but I’ll figure all the proper ways to do this stuff.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Hoping we can add some more features to openbios and qemu-ppc as I’ll have quite a few old Macs to help.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Segher<br class=""><br class="">-- <br class="">OpenBIOS                 <a href="http://openbios.org/" class="">http://openbios.org/</a><br class="">Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" class="">http://lists.openbios.org/mailman/listinfo</a><br class="">Free your System - May the Forth be with you<br class=""></div></div></blockquote></div><br class=""></body></html>