amiberry
amiberry copied to clipboard
Get amiberry to work with clang
For some reason, amiberry doesn't start emulation (amiberry crashes) when compiled with clang on Linux. Even though Amiberry on MacOS, which uses clang, works.
Right now, the GUI shows up but crashes as soon as you try to start the emulator.
Can we get some more specifics on this? E.g. how to set up an environment to recreate the problem, would be helpful :)
Happens on both master (on the Pi) and preview (x86). Set CC to clang and CXX to clang++ and compile, and start amiberry.
It works when JIT is disabled now. That's some progress (it's been a while since I tested it)
The current status is that it crashes when JIT is enabled, due to an "unknown opcode". This sounds like a CLang-specific thing to me, in combination with the JIT implementation of course. Not sure it's worth the trouble to try and find out what exactly triggers this.
Or at least, I don't think it's worth it. If someone else comes along and helps with this, they are of course welcome. :)