Search found 20 matches

by Jagmn
Thu May 27, 2021 3:44 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Thanks! Very useful. Interestingly I wasn't initially able to boot with 5.5.1 (ROM patching error) but that might be down to my code base being in transition.
by Jagmn
Mon May 24, 2021 8:49 am
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Thanks for the input adespoton & Ronald P. Regensburg; What I have today seems to work (though I still don't have a dev environment for checking Windows builds - I'd still like to get that set up). I agree that it's worth experimenting with the placement of the signal stack and SheepVars so I'll...
by Jagmn
Fri May 21, 2021 7:53 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Ah, sorry: all my hacking is on top of the kanjitalk755 fork (same base as the Apple Silicon patch I originally supplied and the Arm64 JIT I've been getting up to scratch). I'm happy with your suggestion of the bounds checking functionality. However, looking at the memory map that SheepShaver uses I...
by Jagmn
Fri May 21, 2021 3:19 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Quick update on where I'm at with the memory allocation patch and two usability questions I have: I've cleaned up the issue on MacOS and changed the default approach to allocating the low memory globals, main RAM, ROM and the signal stack. This seems to be working and lets me ask SheepShaver to use ...
by Jagmn
Fri May 21, 2021 7:39 am
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Yes: this seems to be the case on my setup, too. I've just had a look through the code paths for x86_64 vs Arm64 and it is down to how the different builds handle their memory allocation. NATMEM_OFFSET is used for Arm64 whereas x86_64 is using REAL_ADDRESSING. In the latter case, the RAM and ROM are...
by Jagmn
Wed May 19, 2021 12:39 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Will do, I'll keep an eye out to see anyone else mention similar issues. The Universal build (SheepShaver_universal_20210428.zip) seems to run fine for me (well; a boot, reboot, launch-app test works without issue). What do you see if you try running it from Terminal.app? You can launch terminal th...
by Jagmn
Sat Apr 24, 2021 10:12 am
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Is the hang-on-exit reproducer something you can share? I’ll be able to verify if the same patch fixes it if so. I encountered the issue running on the M1; it possibly has a different manifestation on x86_64 than what I saw. I don't have my test rig handy, but I believe one of the situations was du...
by Jagmn
Sat Apr 24, 2021 9:57 am
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

The built-in GUI editor should just build fine for arm64 along with the rest of the project. The biggest hurdle I (and, presumably, kanjitalk755) faced was compiling SDL2 as a universal framework - but that built easily via their provided xcode project (for me). I do not know how far SheepShaver (th...
by Jagmn
Fri Apr 23, 2021 9:03 pm
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Is the hang-on-exit reproducer something you can share? I’ll be able to verify if the same patch fixes it if so. I encountered the issue running on the M1; it possibly has a different manifestation on x86_64 than what I saw.
by Jagmn
Fri Apr 23, 2021 6:24 pm
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Cool :smile: I'm afraid that I still haven't verified the Windows builds with the updated JIT code and atomic/anti-race-condition changes. I've also gotten distracted with looking at the JIT for AArch64-Linux (RaspberryPi 64bit). With the M1 builds based on that patch they should run mostly without ...
by Jagmn
Thu Apr 15, 2021 7:16 pm
Forum: SheepShaver
Topic: Build for RaspberryPi 3a+ Without GUI/GTK/Xorg?
Replies: 3
Views: 1586

Re: Build for RaspberryPi 3a+ Without GUI/GTK/Xorg?

Hi Folks, I've been working on getting SS functional on a few platforms and stumbled across how to make this work on a Raspberry Pi 3 B+ running 32bit Ubuntu-20.04 (though I suspect it should work on other platforms). I needed to rebuild SDL2 for my platform as it didn't seem to have directfb suppor...
by Jagmn
Sun Mar 28, 2021 7:27 pm
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Thanks for the heads up with shmat on 10.13 - I'll see if I can check that with my previous x86 macbook at some point. When I was prodding it I did find that almost anything within the first 4G didn't allocate but > 4G seemed to work. I should dive into it in more detail at some point to see if I co...
by Jagmn
Sun Mar 28, 2021 7:03 am
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Hi kanjitalk755, thanks for the heads up. What do you use for testing? VMs? Q1 ) The JIT is the same as that which was originally extracted (from what I can tell) from Qemu. I've managed to get a GCC-10 brew build (and a fix-up script) to produce viable .o files and get dyngen.c updated enough (in a...
by Jagmn
Sat Mar 27, 2021 8:42 am
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Re: Sheepshaver development and supported platforms

Thanks for the heads up - I'll fire up a BII build to see how that goes (not touched it as yet). And LibRetro looks interesting - first time I've come across it. What is the best way to collaborate with Kanjitalk755? I'm happy to open some gradual pull requests once I'm satisfied things are reasonab...
by Jagmn
Fri Mar 26, 2021 7:55 am
Forum: SheepShaver
Topic: Sheepshaver/BasiliskII development and supported platforms
Replies: 56
Views: 10276

Sheepshaver/BasiliskII development and supported platforms

Hi Folks, I've been getting an Apple Silicon build of SS up to scratch. Lots of stuff to learn and I've been having to use tools such as thread sanitizer to help me bottom out some of the race conditions and other multi-threading issues present for weakly-ordered memory platforms. This has led to me...
by Jagmn
Tue Mar 16, 2021 7:29 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

I do have "idlewait true" in my preferences file. I haven't experimented with flipping it.

With regards to the JIT being buggy: I do see some flakiness occasionally and am zoning in on where I think the problem is (jit-cache invalidate + branching/block behaviour around that).
by Jagmn
Tue Mar 16, 2021 10:10 am
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

I see definite speed advantages with JIT vs no-JIT. This is helpful as I like to do graphics work in OS9 apps and the boost makes it easier/nicer for me to work with larger files. I've been using MacBench 5.0 to compare speeds. My current set of results all running under Apple's M1: SS Downloaded ru...
by Jagmn
Mon Mar 15, 2021 7:45 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Whew. So I've managed to get the JIT running on the M1. What a learning experience that has been! No-where near ready to have anything to submit upstream but it seems to work and boosts performance well above the x86_64-JIT-on-Rosetta experience (nearly 2x). Probably not the right thread for the que...
by Jagmn
Mon Feb 22, 2021 2:30 pm
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

For those interested in a native M1 build: I've managed to get a fairly minimal set of changes to build SS for the M1 using the NATMEM_OFFSET build time option. Running MacBench 5 against a few build combinations on the M1 shows that the SheepShaver JIT on x86_64 (under Rosetta 2) beats the native a...
by Jagmn
Fri Feb 19, 2021 7:44 am
Forum: SheepShaver
Topic: SheepShaver on Apple M1
Replies: 38
Views: 17088

Re: SheepShaver on Apple M1

Just a heads up that I've been experimenting with building SS on the M1. It looks like the main issue is that the zeropage_size linker setting results in binaries that just won't run on aarch64 - though I'm willing to be challenged on this. After some considerable delving into SS's memory management...