The #UD for being outside of protected mode gets raised for ARPL only
after having read the memory operand - correct this by moving up the
respective construct.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
/* arpl */
unsigned int src_rpl = dst.val & 3;
+ generate_exception_if(!in_protmode(ctxt, ops), EXC_UD);
+
dst = ea;
dst.bytes = 2;
if ( dst.type == OP_REG )
_regs.eflags &= ~X86_EFLAGS_ZF;
dst.type = OP_NONE;
}
- generate_exception_if(!in_protmode(ctxt, ops), EXC_UD);
}
break;