Skip to content

[INTERP] Added unaligned handling for more opcodes#4013

Open
ksco wants to merge 1 commit into
ptitSeb:mainfrom
ksco:fix-unaligned-3
Open

[INTERP] Added unaligned handling for more opcodes#4013
ksco wants to merge 1 commit into
ptitSeb:mainfrom
ksco:fix-unaligned-3

Conversation

@ksco

@ksco ksco commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/emu/x64run66f0.c
GETEW(0);
GETGW;
#if defined(DYNAREC) && !defined(TEST_INTERPRETER)
if(((uintptr_t)ED)&1) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is an improvement? Using a lock instead of the partial atomic move seems a regression to me.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old code is not really unaligned. I guess I could fix it but I decided to align with other similar opcode (to simply use a lock).

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, well, old code is buggy, as it was supposed to use _b instead if _h...

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