Page 1 of 1

Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Fri Apr 10, 2020 1:49 am
by Crusher
Hello total n00b with SheepShaver and Linux command line. I've been reading the guide and these forums and tinkering for hours, and I've finally got to the error above in the subject. I'm running Elementary OS 5.1.3 Hera, which is based on Ubuntu 18.04 LTS. I edited the /etc/sysctl.conf file (yikes!) I'm using the latest build by Vasi. I've worked through several errors and I finally got to this:

Code: Select all

SheepShaver V2.5 by Christian Bauer and Mar"c" Hellwig
Reading ROM file...
Using SDL/pulseaudio audio output
Using SDL_Renderer driver: opengl
Detected CPU features: MMX SSE SSE2 SSE3 SSSE3
PowerPC CPU emulator by Gwenole Beauchesne
Illegal instruction at 40c6d304, opcode = 0f040000
Aborted
Help!

Re: Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Sat Apr 11, 2020 5:04 pm
by kataetheweirdo
Make sure you disable illegal opcodes - Seems like you came across a twi opcode.

Re: Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Sun Apr 12, 2020 4:29 am
by Crusher
Thanks for the tip! How do I disable illegal opcodes? And what's a twi opcode?

I can see there's a lot to learn before I can get SheepShaver working on Elementary OS. Has anyone considered building it as a flatpak? Is this even possible? I'm just fulla' questions! :-)

Re: Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Sun Apr 12, 2020 11:28 am
by Cat_7
You can set:

ignoresegv true
ignoreillegal true

in your prefs.

Best,
Cat_7

Re: Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Sun Apr 12, 2020 5:48 pm
by Crusher
Hmm... set both to true in the prefs file, now I get a black window, and SheepShaver is using most of my CPU cycles. If I start from the terminal it just endlessly repeats the message:
Illegal instruction at 40c6d304, opcode = 0f040000
Illegal instruction at 40c6d304, opcode = 0f040000
Illegal instruction at 40c6d304, opcode = 0f040000
...

If I start form the GUI I can't shut it down :-(

What's next?

Re: Illegal instruction at 40c6d304, opcode = 0f040000

Posted: Sat Dec 26, 2020 11:29 pm
by Crusher
Well, I'm back again. I still haven't got SheepShaver running on Elementary OS, but I did find a flatpak build of Basilisk II on Flathub, and I'm up and running Mac System 7.5.3 in a window on an Linux distro that look a a lot like Mac OS. Hurrah!

I see that the Basilisk flatpak was posted only a few days ago on Dec. 15. I don't know who built and posted it, but thank you very much! Nice Christmas present. :-)

Anyone want to build a SheepShaver flatpak? I have an old game that requires a PPC emulator, and I'd really like to give it a go.