diff options
-rw-r--r-- | arch/x86/kvm/emulate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index f0415eab6591..8617c344405d 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -1424,9 +1424,9 @@ static inline int emulate_grp3(struct x86_emulate_ctxt *ctxt, | |||
1424 | emulate_1op_rax_rdx("idiv", c->src, *rax, *rdx, ctxt->eflags); | 1424 | emulate_1op_rax_rdx("idiv", c->src, *rax, *rdx, ctxt->eflags); |
1425 | break; | 1425 | break; |
1426 | default: | 1426 | default: |
1427 | return 0; | 1427 | return X86EMUL_UNHANDLEABLE; |
1428 | } | 1428 | } |
1429 | return 1; | 1429 | return X86EMUL_CONTINUE; |
1430 | } | 1430 | } |
1431 | 1431 | ||
1432 | static inline int emulate_grp45(struct x86_emulate_ctxt *ctxt, | 1432 | static inline int emulate_grp45(struct x86_emulate_ctxt *ctxt, |
@@ -3172,7 +3172,7 @@ special_insn: | |||
3172 | ctxt->eflags ^= EFLG_CF; | 3172 | ctxt->eflags ^= EFLG_CF; |
3173 | break; | 3173 | break; |
3174 | case 0xf6 ... 0xf7: /* Grp3 */ | 3174 | case 0xf6 ... 0xf7: /* Grp3 */ |
3175 | if (!emulate_grp3(ctxt, ops)) | 3175 | if (emulate_grp3(ctxt, ops) != X86EMUL_CONTINUE) |
3176 | goto cannot_emulate; | 3176 | goto cannot_emulate; |
3177 | break; | 3177 | break; |
3178 | case 0xf8: /* clc */ | 3178 | case 0xf8: /* clc */ |