Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEXCore: Fallback to the memcpy slow path for overlaps within 32 bytes #3501

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

bylaws
Copy link
Collaborator

@bylaws bylaws commented Mar 20, 2024

Take e.g a forward rep movsb copy from addr 0 to 1, the expected
behaviour since this is a bytewise copy is:
before: aaabbbb...
after: aaaaaaa...
but by copying in 32-byte chunks we end up with:
after: aaaabbbb...
due to the self overwrites not occuring within a single 32 bit copy.

Fixes: #3498
Also removes a needless alignment check.

bylaws added 3 commits March 20, 2024 20:54
Take e.g a forward rep movsb copy from addr 0 to 1, the expected
behaviour since this is a bytewise copy is:
before: aaabbbb...
after: aaaaaaa...
but by copying in 32-byte chunks we end up with:
after: aaaabbbb...
due to the self overwrites not occuring within a single 32 bit copy.
@Sonicadvance1 Sonicadvance1 merged commit 167896d into FEX-Emu:main Mar 21, 2024
10 checks passed
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.

Memcpy optimization crashing Sonic Mania movie player
3 participants