[patch 1 of 2] Rename REP prefixes

Guillaume Thouvenin
2007-11-23T12:56:42Z

This patch renames REP prefix with more suitable name.

Signed-off-by:: Guillaume Thouvenin <guillaume.thouvenin-Z51IpKcfGtLk1uMJSBkQmQ@public.gmane.org>
---

drivers/kvm/x86_emulate.c | 4 ++--
drivers/kvm/x86_emulate.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index ff7010c..cee60eb 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -829,10 +829,10 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
c->lock_prefix = 1;
break;
case 0xf2: /* REPNE/REPNZ */
- c->rep_prefix = REPNE_REPNZ;
+ c->rep_prefix = REPNE_PREFIX;
break;
case 0xf3: /* REP/REPE/REPZ */
- c->rep_prefix = REP_REPE_REPZ;
+ c->rep_prefix = REPE_PREFIX;
break;
default:
goto done_prefixes;
diff --git a/drivers/kvm/x86_emulate.h b/drivers/kvm/x86_emulate.h
index 5ce4c0c..61762f9 100644
--- a/drivers/kvm/x86_emulate.h
+++ b/drivers/kvm/x86_emulate.h
@@ -162,8 +162,8 @@ struct x86_emulate_ctxt {
};

/* Repeat String Operation Prefix */
-#define REP_REPE_REPZ 1
-#define REPNE_REPNZ 2
+#define REPE_PREFIX 1
+#define REPNE_PREFIX 2

/* Execution mode, passed to the emulator. */
#define X86EMUL_MODE_REAL 0 /* Real mode. */