Fail when VEX.L is set in SSE instructions (AVX is not supported)

Closes #1656
This commit is contained in:
Duncan Ogilvie 2022-07-20 13:48:13 +02:00
parent 6c1cbef6ac
commit 22ea31cdf7
1 changed files with 4 additions and 0 deletions

View File

@ -3378,6 +3378,10 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b,
if (is_xmm)
reg |= rex_r;
mod = (modrm >> 6) & 3;
/* VEX.L (256 bit) encodings are not supported */
if (s->vex_l != 0) {
goto illegal_op; // perhaps it should be unknown_op?
}
if (sse_fn_epp == SSE_SPECIAL) {
b |= (b1 << 8);
switch(b) {