projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e324345
)
KVM: x86 emulator: fix faulty check for two-byte opcode
author
Avi Kivity
<avi@qumranet.com>
Sun, 22 Jul 2007 12:51:58 +0000
(15:51 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Sat, 13 Oct 2007 08:18:19 +0000
(10:18 +0200)
Right now, the bug is harmless as we never emulate one-byte 0xb6 or 0xb7.
But things may change.
Noted by the mysterious Gabriel C.
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/x86_emulate.c
b/drivers/kvm/x86_emulate.c
index 82b4ea62c982c9f2f884ea0f7f6b9d106ad66e91..ef7518a2d7ac7a19531e22e2b42d2df176fd71dc 100644
(file)
--- a/
drivers/kvm/x86_emulate.c
+++ b/
drivers/kvm/x86_emulate.c
@@
-819,7
+819,7
@@
done_prefixes:
case DstReg:
dst.type = OP_REG;
if ((d & ByteOp)
- && !(twobyte
_table
&& (b == 0xb6 || b == 0xb7))) {
+ && !(twobyte && (b == 0xb6 || b == 0xb7))) {
dst.ptr = decode_register(modrm_reg, _regs,
(rex_prefix == 0));
dst.val = *(u8 *) dst.ptr;