All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] target/i386/tcg: fix REPScalar with memory operand
@ 2026-09-30  6:54 Paolo Bonzini
  2026-09-30  6:54 ` [PATCH 1/3] target/i386/tcg: extract validate_cr0_exceptions() Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Paolo Bonzini @ 2026-09-30  6:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: Zhao Liu, Andrey Polivoda

By the time validate_vex() runs, e->s2 is not used anymore and
decode->op[2].ot has already been filled in by decode_size().
Commit b7d4ec4832d ("target/i386/tcg: move VEX validation early",
2026-08-26) did the change from decode->op[2].ot to e->s2, but
did not move validate_vex() early enough.  Fix it, which also
allows to implement the VEX.LIG case that is needed for unary
AVX operations.

Paolo

Supersedes: <20260923124749.273446-1-pbonzini@redhat.com>

Paolo Bonzini (3):
  target/i386/tcg: extract validate_cr0_exceptions()
  target/i386/tcg: move validate_vex() before all operand decoding
  target/i386/tcg: clarify return value of decode_insn

 target/i386/tcg/decode-new.c.inc | 63 ++++++++++++++++++++------------
 1 file changed, 39 insertions(+), 24 deletions(-)

-- 
2.55.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-30 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30  6:54 [PATCH v2 0/3] target/i386/tcg: fix REPScalar with memory operand Paolo Bonzini
2026-09-30  6:54 ` [PATCH 1/3] target/i386/tcg: extract validate_cr0_exceptions() Paolo Bonzini
2026-09-30  8:29   ` Zhao Liu
2026-09-30  6:54 ` [PATCH 2/3] target/i386/tcg: move validate_vex() before all operand decoding Paolo Bonzini
2026-09-30  8:30   ` Zhao Liu
2026-09-30  6:54 ` [PATCH 3/3] target/i386/tcg: clarify return value of decode_insn Paolo Bonzini
2026-09-30  8:30   ` Zhao Liu
2026-09-30 19:49   ` Andrey Polivoda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.