x86emul: MOVRS are NOREP
PATCH 1/1 x86emul: MOVRS are NOREP
REP prefixes alter the encoding (to, presently, #UD), which wants reflecting in what is recorded during decode.
Fixes 59b18eb757db ("x86emul: support non-SIMD MOVRS")
Reported-by Roger Pau Monné <[email protected]>
Signed-off-by Jan Beulich <[email protected]>
xen/arch/x86/x86_emulate/decode.c +2 -0
@@ -918,6 +918,8 @@ decode_0f38(struct x86_emulate_state *s, s->desc = DstReg | SrcMem | Mov;if ( !(ctxt->opcode &1 ) ) s->desc |= ByteOp; +if ( s->vex.pfx >= vex_f3 ) + ctxt->opcode |=MASK_INSR (s->vex.pfx,X86EMUL_OPC_PFX_MASK ); s->simd_size = simd_none;break ;
Quoted 6 lines · Jan Beulich
REP prefixes alter the encoding (to, presently, #UD), which wants reflecting in what is recorded during decode.
Fixes 59b18eb757db ("x86emul: support non-SIMD MOVRS")Reported-by Roger Pau Monné <[email protected]>Signed-off-by Jan Beulich <[email protected]>
Acked-by Andrew Cooper <[email protected]>