On Tue, Apr 1, 2025 at 7:37 PM Jd Lyons <lyons_dj@yahoo.com> wrote:
>
> What is the syntax of the trace you are using, maybe slowing things down on the host will work better.
-trace enable="macio*" -d unimp
as suggested upthread.
>
> Even with you patches on a clean master OS 9 just freezes after about 30 seconds when using SMP aware apps.
For me Cinebench2000 run for much longer than 30 seconds, and finishes
WITH THIS TRACE ENABLED.
But this little program yes, seems to lock something hard in smp mode on os 9.2 (did you have 9.1 or earlier?)
It does not show correct time reading (0.0 seconds!) so not very useful outside of bug hunting yet.
But thanks for finding it!
It freezes on multi cpu test in OS 9.2.2 if I just run qemu normally.
Under Tiger's Classic environment same test runs with all four cpus,
with speedup nearly 3,
but overall it not really faster than native os 9.2 run with -smp 2.
May be my 4 logical core (2smt 2core) AMD FX host just can't deliver more :)
>
> I get further with /* Add CPU-specific properties based on CPU index */
>
> if (i == 0) { /* CPU0 */
>
> PUSH(0x71);
>
> fword("encode-int");
>
> push_str("soft-reset");
>
> fword("property");
>
> PUSH(0x1);
>
> fword("encode-int");
>
> push_str("gpio-mask");
>
> fword("property");
>
>
> PUSH(0x1);
>
> fword("encode-int");
>
> push_str("gpio-value");
>
> fword("property");
>
>
> PUSH(0x73);
>
> fword("encode-int");
>
> push_str("timebase-enable");
>
> fword("property");
>
> } else if (i == 1) { /* CPU1 */
>
> PUSH(0x72);
>
> fword("encode-int");
>
> push_str("soft-reset");
>
> fword("property");
>
>
> PUSH(0x1);
>
> fword("encode-int");
>
> push_str("gpio-mask");
>
> fword("property");
>
>
> PUSH(0x1);
>
> fword("encode-int");
>
> push_str("gpio-value");
>
> fword("property");
>
>
> PUSH(0x73);
>
> fword("encode-int");
>
> push_str("timebase-enable");
>
> fword("property");
>
>
> PUSH(0x74);
>
> fword("encode-int");
>
> push_str("cpu-interrupt-enable");
>
> fword("property");
>
> } else if (i == 2) { /* CPU2 */
>
> PUSH(0x7d);
>
> fword("encode-int");
>
> push_str("soft-reset");
>
> fword("property");
>
>
> PUSH(0x73);
>
> fword("encode-int");
>
> push_str("timebase-enable");
>
> fword("property");
>
> PUSH(0x7f);
>
> fword("encode-int");
>
> push_str("cpu-interrupt-enable");
>
> fword("property");
>
> } else if (i == 3) { /* CPU3 */
>
> PUSH(0x7e);
>
> fword("encode-int");
>
> push_str("soft-reset");
>
> fword("property");
>
>
> PUSH(0x73);
>
> fword("encode-int");
>
> push_str("timebase-enable");
>
> fword("property");
>
> PUSH(0x80);
>
> fword("encode-int");
>
> push_str("cpu-interrupt-enable");
>
> fword("property");
>
> }
>
>
>
>
> However the system always seems to freeze when using Altivec Fractional Carbon in SMP.
>
>
>
>
> On Apr 1, 2025, at 11:41 AM, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
>
> may be host CPU speed/OS matters? Enabling tracing in qemu does not fix your OS 9.2/SMP hangs?
>
>