projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4709c7
)
KVM: x86 emulator: simplify REX.W check
author
Avi Kivity
<avi@redhat.com>
Sun, 1 Aug 2010 11:42:51 +0000
(14:42 +0300)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:50:34 +0000
(10:50 +0200)
(x && (x & y)) == (x & y)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 7d2c715f1a2adc8193b2dc2a1e917cd816bb7b01..a832019138f38eb03c1c38e7049fe4081fac2590 100644
(file)
--- a/
arch/x86/kvm/emulate.c
+++ b/
arch/x86/kvm/emulate.c
@@
-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];