Commit d53db5ef authored by Avi Kivity's avatar Avi Kivity

KVM: x86 emulator: drop DPRINTF()

Failed emulation is reported via a tracepoint; the cmps printk is pointless.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 8a6bcaa6
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <linux/kvm_host.h> #include <linux/kvm_host.h>
#include "kvm_cache_regs.h" #include "kvm_cache_regs.h"
#define DPRINTF(x...) do {} while (0)
#include <linux/module.h> #include <linux/module.h>
#include <asm/kvm_emulate.h> #include <asm/kvm_emulate.h>
...@@ -2796,10 +2795,8 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt) ...@@ -2796,10 +2795,8 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt)
c->execute = opcode.u.execute; c->execute = opcode.u.execute;
/* Unrecognised? */ /* Unrecognised? */
if (c->d == 0 || (c->d & Undefined)) { if (c->d == 0 || (c->d & Undefined))
DPRINTF("Cannot emulate %02x\n", c->b);
return -1; return -1;
}
if (mode == X86EMUL_MODE_PROT64 && (c->d & Stack)) if (mode == X86EMUL_MODE_PROT64 && (c->d & Stack))
c->op_bytes = 8; c->op_bytes = 8;
...@@ -3261,7 +3258,6 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt) ...@@ -3261,7 +3258,6 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
break; break;
case 0xa6 ... 0xa7: /* cmps */ case 0xa6 ... 0xa7: /* cmps */
c->dst.type = OP_NONE; /* Disable writeback. */ c->dst.type = OP_NONE; /* Disable writeback. */
DPRINTF("cmps: mem1=0x%p mem2=0x%p\n", c->src.addr.mem, c->dst.addr.mem);
goto cmp; goto cmp;
case 0xa8 ... 0xa9: /* test ax, imm */ case 0xa8 ... 0xa9: /* test ax, imm */
goto test; goto test;
...@@ -3778,6 +3774,5 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt) ...@@ -3778,6 +3774,5 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
goto writeback; goto writeback;
cannot_emulate: cannot_emulate:
DPRINTF("Cannot emulate %02x\n", c->b);
return -1; return -1;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment