mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 23:22:12 -06:00
target/i386: Do not apply REX to MMX operands
Cc: qemu-stable@nongnu.org Fixes:b3e22b2318
("target/i386: add core of new i386 decoder") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2495 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Link: https://lore.kernel.org/r/20240812025844.58956-2-richard.henderson@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit416f2b16c0
) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
450fe533b7
commit
c42bf733f8
1 changed files with 4 additions and 1 deletions
|
@ -1272,7 +1272,10 @@ static bool decode_op(DisasContext *s, CPUX86State *env, X86DecodedInsn *decode,
|
|||
op->unit = X86_OP_SSE;
|
||||
}
|
||||
get_reg:
|
||||
op->n = ((get_modrm(s, env) >> 3) & 7) | REX_R(s);
|
||||
op->n = ((get_modrm(s, env) >> 3) & 7);
|
||||
if (op->unit != X86_OP_MMX) {
|
||||
op->n |= REX_R(s);
|
||||
}
|
||||
break;
|
||||
|
||||
case X86_TYPE_E: /* ALU modrm operand */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue