Search found 231 matches

by darthnvader
Thu May 22, 2025 5:15 pm
Forum: General Macintosh Emulation
Topic: arch64 qemu linux.
Replies: 4
Views: 5258

Re: arch64 qemu linux.


If you are on a macOS M(Series) host and you want to run Linux in the hypervisor here is the basic commands with VGA networking and sound support. Some reason I could not get CoreAudio up, but SDL works great for sound.

This is an ultra fast way to run Linux adjust to fit your needs. If people ...
by darthnvader
Sun May 18, 2025 11:02 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available

Cat_7 wrote: Sun May 18, 2025 9:14 pm Will that run without mac99,via=pmu?

Best,
Cat_7
Thanks, I think that's it!
by darthnvader
Sun May 18, 2025 7:47 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available






I've noticed an impressive speed/performance boost in my Mac OS 10.4.11 Qemu VM :shock: :mrgreen: Any chance to get a dual-core build but with sound support too?

Andrew_R has patched screamer with SMP, but I think we need to have someone branch Qemu on Github so we can continue with this ...
by darthnvader
Sun May 18, 2025 10:57 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

Now I'm working on making it cross platform for arch ppc/aarch64/x86 using SSE2 and NEON as well as VSX/VMX.

https://drive.google.com/file/d/14vJlt8 ... share_link
by darthnvader
Sat May 17, 2025 5:44 pm
Forum: General Macintosh Emulation
Topic: arch64 qemu linux.
Replies: 4
Views: 5258

arch64 qemu linux.

If you are on a macOS M(Series) host and you want to run Linux in the hypervisor here is the basic commands with VGA networking and sound support. Some reason I could not get CoreAudio up, but SDL works great for sound.

This is an ultra fast way to run Linux adjust to fit your needs. If people ...
by darthnvader
Sat May 17, 2025 3:47 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available






I've noticed an impressive speed/performance boost in my Mac OS 10.4.11 Qemu VM :shock: :mrgreen: Any chance to get a dual-core build but with sound support too?

Andrew_R has patched screamer with SMP, but I think we need to have someone branch Qemu on Github so we can continue with this ...
by darthnvader
Wed May 14, 2025 3:19 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available



A new experimental build enabling dual cpu support has been added to the second post in this thread.

Best,
Cat_7


I've noticed an impressive speed/performance boost in my Mac OS 10.4.11 Qemu VM :shock: :mrgreen: Any chance to get a dual-core build but with sound support too?

Andrew_R has ...
by darthnvader
Wed May 14, 2025 2:12 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available



[...]

Kind of a moot point anyway, as the graphics stack is hopelessly broken in PPC Big Endian upstream anyways, but runs just fine with PPC Little Endian. So if folks want to run PPC linux they can just use the pSeries machine in qemu-system-ppc64.


Well, older Linuxes also exist, at Debian ...
by darthnvader
Sun May 11, 2025 12:40 pm
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.


https://drive.google.com/file/d/1Orbdz6NJ6hWjzoaHi2WMzAIVDPFWQBm8/view?usp=share_link

Linux:

gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c


OS X:

gcc -O3 -faltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c


This version seems to work with ...
by darthnvader
Sun May 11, 2025 12:13 pm
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

https://drive.google.com/file/d/1mfqSnb ... share_link

Linux:

Code: Select all

gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
OS X:

Code: Select all

gcc -O3 -faltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
by darthnvader
Sun May 11, 2025 12:09 pm
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

gcc -O3 -faltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
In file included from altivec_smp_bench.c:6:
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/altivec.h:44:2: warning: #warning Ignoring <altivec.h> because "-faltivec" specified
altivec_smp_bench.c: In function 'thread ...
by darthnvader
Sun May 11, 2025 11:57 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

Code: Select all

./altivec_smp_bench 10000000 100 8
by darthnvader
Sun May 11, 2025 11:53 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

https://drive.google.com/file/d/1mfqSnb ... share_link

Linux

Code: Select all

gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
Mac OS X

Code: Select all

gcc -O3 -faltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
by darthnvader
Sun May 11, 2025 11:45 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

cc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
altivec_smp_bench.c: In function ‘main’:
altivec_smp_bench.c:96:14: error: expected ‘;’ at end of input
96 | targs
| ^
| ;
altivec_smp_bench.c:96:9: error: expected declaration or statement at end of input
96 | targs ...
by darthnvader
Sun May 11, 2025 11:42 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

https://drive.google.com/file/d/1mfqSnbVd_LSbP9ibXqiGBAv7CxKWnegP/view?usp=share_link

# Linux PPC64 LE / BE, PPC32 BE
gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c

# Mac OS X Tiger/Leopard PPC
gcc -O3 -faltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp ...
by darthnvader
Sun May 11, 2025 11:37 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
altivec_smp_bench.c: In function ‘thread_func’:
altivec_smp_bench.c:31:5: error: ‘vector’ undeclared (first use in this function)
31 | vector float va, vb, vc1, vc2, vc3;
| ^~~~~~
altivec_smp_bench.c:31:5: note: each ...
by darthnvader
Sun May 11, 2025 11:32 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

https://drive.google.com/file/d/1mfqSnb ... share_link

Code: Select all

gcc -O3 -maltivec -std=c89 -lpthread -o altivec_smp_bench altivec_smp_bench.c
by darthnvader
Sun May 11, 2025 11:28 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Re: Qemu SMP FPU/Altivec improvements.

gcc -O3 -maltivec -lpthread -o altivec_smp_bench altivec_smp_bench.c
altivec_smp_bench.c: In function ‘thread_func’:
altivec_smp_bench.c:35:19: warning: implicit declaration of function ‘vec_ld’ [-Wimplicit-function-declaration]
35 | va = vec_ld(0, &arg->a );
| ^~~~~~
altivec_smp_bench.c:35:19 ...
by darthnvader
Sun May 11, 2025 11:13 am
Forum: QEMU
Topic: Qemu SMP FPU/Altivec improvements.
Replies: 12
Views: 5691

Qemu SMP FPU/Altivec improvements.

I figured I start a thread to monitor enhancements in Qemu SMP and see what we can do to speed up the FPU and AltiVec units over time.

Here is a link to a cross platform AltiVec benchmark we wrote so we can see how AltiVec benchmarks between Linux and Mac OS X.

https://drive.google.com/file/d ...
by darthnvader
Sat May 10, 2025 6:10 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available


We are missing the nanosleep in our patch from SMP that makes Linux able to kickstart up to 4 CPU's
static void cpu_kick(void *opaque, int n, int level)
{
PowerPCCPU *cpu = opaque;
CPUState *cs = CPU(cpu);
/* small delay to let the target see the reset pulse */
struct timespec ts = { 0 ...
by darthnvader
Sat May 10, 2025 3:37 pm
Forum: QEMU
Topic: Qemu package and guide for OSX available
Replies: 460
Views: 694453

Re: Qemu package and guide for OSX available


Experimental builds. Be warned!

15-04-2025
Qemu-system-ppc64-smp-universal-experimental-15-04-2025
https://surfdrive.surf.nl/files/index.php/s/WJ6dVlH1UbOrijm/download
This contains experimental qemu and openbios builds that enable dual cpu support. Read the readme.
The patches applied to the ...
by darthnvader
Fri Apr 04, 2025 7:58 pm
Forum: QEMU
Topic: question about low-level SMP detail;s in G4 Macs?
Replies: 36
Views: 20382

Re: question about low-level SMP detail;s in G4 Macs?



SMP should work with 2 CPUs as far back as 10.2; before that, I have no idea.

I saw your comments regarding OS 9 and the 2nd CPU issues; could it be something to do with the different ways that OF is managing the hardware between OS 9 and OS X? Something OS 9 isn't checking? If so, could we ...
by darthnvader
Fri Apr 04, 2025 12:00 am
Forum: QEMU
Topic: question about low-level SMP detail;s in G4 Macs?
Replies: 36
Views: 20382

Re: question about low-level SMP detail;s in G4 Macs?


SMP should work with 2 CPUs as far back as 10.2; before that, I have no idea.

I saw your comments regarding OS 9 and the 2nd CPU issues; could it be something to do with the different ways that OF is managing the hardware between OS 9 and OS X? Something OS 9 isn't checking? If so, could we just ...
by darthnvader
Wed Apr 02, 2025 1:14 am
Forum: QEMU
Topic: question about low-level SMP detail;s in G4 Macs?
Replies: 36
Views: 20382

Re: question about low-level SMP detail;s in G4 Macs?


Wow, that's great! How long until this gets into one of the unified experimental builds (multiple displays, screamer, etc.)?


Hopefully Cat7 can work us up an experimental build with SMP.

For now OS 9 is a no go for SMP, but I'm still working on it and have some idea what is casing the system ...
by darthnvader
Mon Mar 31, 2025 6:50 am
Forum: QEMU
Topic: question about low-level SMP detail;s in G4 Macs?
Replies: 36
Views: 20382

Re: question about low-level SMP detail;s in G4 Macs?

Image

If 2 is good, 4 is better!