Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e87e3ef authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: simplify REX.W check



(x && (x & y)) == (x & y)

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent d4709c78
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2358,7 +2358,6 @@ 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 */