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

Backport qemu/qemu@75b208c #1861

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Backport qemu/qemu@75b208c #1861

merged 1 commit into from
Aug 4, 2023

Conversation

basavesh
Copy link
Contributor

@basavesh basavesh commented Aug 3, 2023

target/i386: fix operand order for PDEP and PEXT

For PDEP and PEXT, the mask is provided in the memory (mod+r/m) operand, and therefore is loaded in s->T0 by gen_ldst_modrm. The source is provided in the second source operand (VEX.vvvv) and therefore is loaded in s->T1. Fix the order in which they are passed to the helpers.

target/i386: fix operand order for PDEP and PEXT

For PDEP and PEXT, the mask is provided in the memory (mod+r/m)
operand, and therefore is loaded in s->T0 by gen_ldst_modrm.
The source is provided in the second source operand (VEX.vvvv)
and therefore is loaded in s->T1. Fix the order in which
they are passed to the helpers.
@wtdcode
Copy link
Member

wtdcode commented Aug 4, 2023

Thanks!

@wtdcode wtdcode merged commit 0619dee into unicorn-engine:dev Aug 4, 2023
@basavesh basavesh deleted the dev branch August 4, 2023 07:54
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