提交 1e87e3ef 编写于 作者: A Avi Kivity

KVM: x86 emulator: simplify REX.W check

(x && (x & y)) == (x & y)
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 d4709c78
......@@ -2358,9 +2358,8 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt)
done_prefixes:
/* REX prefix. */
if (c->rex_prefix)
if (c->rex_prefix & 8)
c->op_bytes = 8; /* REX.W */
if (c->rex_prefix & 8)
c->op_bytes = 8; /* REX.W */
/* Opcode byte(s). */
opcode = opcode_table[c->b];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册