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

Fix NOP padding #325

Merged
merged 2 commits into from Apr 30, 2014
Merged

Fix NOP padding #325

merged 2 commits into from Apr 30, 2014

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Apr 30, 2014

This fixes PR #304 (optimize NOPs).

The new NOP emitter breaks when called with a negative count. As it turns out, it did happen when deoptimizing 8 bit stores because they are only 4 bytes long and need no BSWAP.

The new NOP emitter breaks when called with a negative count. As it
turns out, it did happen when deoptimizing 8 bit MOVs because they are
only 4 bytes long and need no BSWAP.
and use MOVSX directly if needed.
@Tilka
Copy link
Member Author

Tilka commented Apr 30, 2014

(Fixed the lint error.)

@@ -8,6 +8,9 @@
#include "Common/x64Analyzer.h"
#include "Common/x64Emitter.h"

// We need at least this many bytes for backpatching.
const int BACKPATCH_SIZE = 5;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

delroth added a commit that referenced this pull request Apr 30, 2014
@delroth delroth merged commit 951612f into dolphin-emu:master Apr 30, 2014
@Tilka Tilka deleted the nop branch April 30, 2014 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants