RPCEmu on Apple Silicon
David Pitt (3386) 1248 posts |
I am having a first look at running the macOS RPCEmu builds on Apple Silicon. RPCEmu-Recompiler does run but very very very slowly. This will be how JIT and Rosetta 2 work together. RPCEmu-Interpreter does rather better and runs faster on the M1 MacBook Air under Rosetta 2 than it does natively on the iMac Pro. (This is a claim that Apple makes.) MIPS romark RPC% iMacPro. 83 114150 64% MacBook Air 124 149224 83% So far I have not worked out how to build a native ARM RPCEmu-Interpreter on the MacBook Air, x86 code in the source is a bit of problem. |
David Pitt (3386) 1248 posts |
Using the right source helps! A build on the M1 MacBook Air does succeed but is for Intel. |
Clive Semmens (2335) 3276 posts |
So it’s a recompiled emulator, possibly with emulated emulation elements. Impressive if it works at all, more so if it’s not glacially slow. |
Chris Gransden (337) 1207 posts |
I managed to get it to build natively using Qt6. It now gets 108% using RISC OS 5.29. Idles at the desktop at 185mips. I noticed the ‘Shift’ key doesn’t do anything but apart from that seems to work OK. Still slow though without a arm64 recompiler. |
David Pitt (3386) 1248 posts |
Qt6 didn’t go too well here. djp@MacBookAir qt5 % /Users/djp/Qt/6.0.0/clang_64/bin/qmake rpcemu.pro … Project ERROR: Unknown module(s) in QT: multimedia djp@MacBookAir qt5 % I used Qt 5.15.2. |
Chris Gransden (337) 1207 posts |
Is that the arm64 version. I couldn’t get it to build natively but Qt6 did.
You haven’t got qtmultimedia installed. :-) |
David Pitt (3386) 1248 posts |
It is conspicuously absent! As far as I can see it is not included in Qt6. OTOH :-
Shift key does work here both in terms of Shift-Start giving the Data Directory dialogue and Capitals in Edit. |
Chris Gransden (337) 1207 posts |
I built Qt6 from source as arm64. First qtbase and then qtmultimedia.
The shift works OK when running RPCEmu with Rosetta using Qt5 but not when built as arm64 using Qt6. |
David Feugey (2125) 2709 posts |
// question. Do you manage to compile the latest version for RISC OS? And does the keyboard could work now? |
Chris Gransden (337) 1207 posts |
The latest version 0.9.3 builds and runs on RISC OS. Idles at about 55 Mips on a Rpi 400 @2.4GHz. There’s still no sound, network or keyboard input support. |
David Feugey (2125) 2709 posts |
Damned :) Could the macOS patch help (they made a specific file for keyboard support as they did have the same problem as us; it’s not portable, but readable)? |