KVM: x86 emulator: simplify REX.W check
(x && (x & y)) == (x & y) Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -2358,7 +2358,6 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt)
|
|||||||
done_prefixes:
|
done_prefixes:
|
||||||
|
|
||||||
/* REX prefix. */
|
/* REX prefix. */
|
||||||
if (c->rex_prefix)
|
|
||||||
if (c->rex_prefix & 8)
|
if (c->rex_prefix & 8)
|
||||||
c->op_bytes = 8; /* REX.W */
|
c->op_bytes = 8; /* REX.W */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user