diff options
-rw-r--r-- | arch/x86/kvm/emulate.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index ddbad15c9486..a9a4a0b78a7d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2375,13 +2375,11 @@ done_prefixes: | |||
2375 | 2375 | ||
2376 | /* Opcode byte(s). */ | 2376 | /* Opcode byte(s). */ |
2377 | opcode = opcode_table[c->b]; | 2377 | opcode = opcode_table[c->b]; |
2378 | if (opcode.flags == 0) { | 2378 | /* Two-byte opcode? */ |
2379 | /* Two-byte opcode? */ | 2379 | if (c->b == 0x0f) { |
2380 | if (c->b == 0x0f) { | 2380 | c->twobyte = 1; |
2381 | c->twobyte = 1; | 2381 | c->b = insn_fetch(u8, 1, c->eip); |
2382 | c->b = insn_fetch(u8, 1, c->eip); | 2382 | opcode = twobyte_table[c->b]; |
2383 | opcode = twobyte_table[c->b]; | ||
2384 | } | ||
2385 | } | 2383 | } |
2386 | c->d = opcode.flags; | 2384 | c->d = opcode.flags; |
2387 | 2385 | ||