Project

macemu-jit

maintained

Basilisk II and SheepShaver with experimental ARM64 JITs, packaged for the Raspberry Pi.

Overview

macemu-jit is a fork of the Basilisk II (68K) and SheepShaver (PowerPC) Mac emulators that adds experimental AArch64 JIT backends to both. It also builds them for the Raspberry Pi with SDL2 on framebuffer/KMS, so they run without X11 or a desktop environment, and publishes .deb packages and Docker images.

How it works

The Basilisk II JIT translates 68K code to native ARM64 at run time. Its default optimisation level generates native code; B2_JIT_MAX_OPTLEV=1 falls back to interpreter dispatch. The SheepShaver JIT compiles PowerPC blocks to ARM64 and hands unsupported forms to the interpreter instead of compiling them. Both boot to the Mac OS desktop on Linux arm64.

For the Raspberry Pi, SDL2 is built without OpenGL, X11, Wayland or PulseAudio and draws to the framebuffer through KMS. GitHub Actions builds arm64 and armhf packages and pushes the container images to GHCR when a version tag is pushed. The containers run privileged so they can reach the framebuffer, DRM, input and sound devices.

Features

⚡

Basilisk II ARM64 JIT

Boots to the Finder at both optimisation levels, runs Speedometer 4.02 (Graphics score 210 against a Mac Classic) and passes a 301-vector opcode equivalence suite.

⚡

SheepShaver ARM64 JIT

Covers integer, FPU, AltiVec, condition-register, branch and memory instructions, and passes 303 interpreter-versus-JIT equivalence cases. In one warm, dispatch-heavy benchmark loop it is still 1.9 times slower than the interpreter.

📦

Packages and containers

arm64 .deb packages in GitHub Releases, installed with dpkg -i, and Docker images for both emulators.

🖥

VNC access

A built-in VNC server with keyboard and mouse input for remote control.

Architecture

68K / PPC guest Mac code ARM64 JITs interpreter fallback Basilisk II 68K SheepShaver PowerPC Linux arm64 host e.g. Raspberry Pi SDL2 display framebuffer / KMS VNC server remote access native code Experimental ARM64 JITs for Basilisk II (68K) and SheepShaver (PowerPC) on Linux

Posts