commit | 1e87e3efe764285133866a14ddc71cf211f022c2 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Sun Aug 01 14:42:51 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Oct 24 10:50:34 2010 +0200 |
tree | 9e514242f2b0802863f8c77f755a90ed47960494 | |
parent | d4709c78eeff2b272e0b9727748b72371b0e71ab [diff] [blame] |
KVM: x86 emulator: simplify REX.W check (x && (x & y)) == (x & y) Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 7d2c715..a832019 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c
@@ -2358,9 +2358,8 @@ 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];