Illegal instruction at 40c6d304, opcode = 0f040000

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
Crusher
Space Cadet
Posts: 6
Joined: Fri Apr 10, 2020 1:25 am

Illegal instruction at 40c6d304, opcode = 0f040000

Post 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!
kataetheweirdo
Master Emulator
Posts: 313
Joined: Sun Feb 01, 2009 4:55 pm

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

Post by kataetheweirdo »

Make sure you disable illegal opcodes - Seems like you came across a twi opcode.
Crusher
Space Cadet
Posts: 6
Joined: Fri Apr 10, 2020 1:25 am

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

Post 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! :-)
User avatar
Cat_7
Expert User
Posts: 6171
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

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

Post by Cat_7 »

You can set:

ignoresegv true
ignoreillegal true

in your prefs.

Best,
Cat_7
Crusher
Space Cadet
Posts: 6
Joined: Fri Apr 10, 2020 1:25 am

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

Post 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?
Crusher
Space Cadet
Posts: 6
Joined: Fri Apr 10, 2020 1:25 am

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

Post 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.
Post Reply