KVM: x86 emulator: do not munge rep prefix
[deliverable/linux.git] / arch / x86 / kvm / emulate.c
index 0ad47b819a8b2eb1743810e9b9dd19c9d5b59a3d..075bb6fc73ae8c8067d95bc104f6458543c1fb16 100644 (file)
@@ -2692,10 +2692,8 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)
                        c->lock_prefix = 1;
                        break;
                case 0xf2:      /* REPNE/REPNZ */
-                       c->rep_prefix = REPNE_PREFIX;
-                       break;
                case 0xf3:      /* REP/REPE/REPZ */
-                       c->rep_prefix = REPE_PREFIX;
+                       c->rep_prefix = c->b;
                        break;
                default:
                        goto done_prefixes;
This page took 0.026171 seconds and 5 git commands to generate.