Skip to content

ppc: Fix reversed operands in tw opcode implementation - #237

Merged
dingusdev merged 2 commits into
dingusdev:masterfrom
mihaip:upstream-fix-tw-opcode
Oct 11, 2026
Merged

dingusdev merged 2 commits into
dingusdev:masterfrom
mihaip:upstream-fix-tw-opcode

Conversation

@mihaip

@mihaip mihaip commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

The manual decode swapped rA and rB. Fix thix by using the standard ppc_grab_regsab decode helper. This fixes Macintosh Common Lisp 4.2 hanging at startup (with 7.5.5 booting using the 7500 ROM).

I also audited other manual decodes in ppcopcodes.cpp - the rest were correct, but I switched them to decode helpers anyway, to make things more uniform.

The manual decode swapped rA and rB. Fix thix by using the standard
`ppc_grab_regsab` decode helper.

Fixes Macintosh Common Lisp 4.2 hanging at startup (with 7.5.5 booting
using the 7500 ROM).
Use existing helpers for more instructions instructions (twi, mtsr,
mtmsr, etc.). Prompted by the recent fix for tw - these were all correct
already, but might as well make things more uniform.
mihaip added a commit to mihaip/infinite-mac that referenced this pull request Oct 11, 2026
Picks up dingusdev/dingusppc#237, which fixes Macintosh Common Lisp.

For #219
@dingusdev
dingusdev merged commit 325cc8a into dingusdev:master Oct 11, 2026
7 checks passed
@mihaip
mihaip deleted the upstream-fix-tw-opcode branch October 14, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants