Skip to content

target/i386/tcg: fix REPScalar with memory operand

Paolo Bonzini qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/i386/tcg: extract validate_cr0_exceptions()target/i386/tcg/decode-new.c.inc+29 -101 reply
2/3target/i386/tcg: move validate_vex() before all operand decodingtarget/i386/tcg/decode-new.c.inc+7 -101 reply
3/3target/i386/tcg: clarify return value of decode_insntarget/i386/tcg/decode-new.c.inc+4 -52 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchZhao Liu
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] target/i386/tcg: fix REPScalar with memory operand

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: <[email protected]>

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(-)
Signature · 1 line
2.55.0