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: 3
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
Apple Corer
Posts: 287
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: 3
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: 5054
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: 3
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?
Post Reply