All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: Use X86CPU in disas_insn()
@ 2015-04-24 19:27 Eduardo Habkost
  0 siblings, 0 replies; only message in thread
From: Eduardo Habkost @ 2015-04-24 19:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Igor Mammedov, Richard Henderson, Andreas Färber, Paolo Bonzini

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 target-i386/translate.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/target-i386/translate.c b/target-i386/translate.c
index 305ce50..fdbb4af 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -4402,9 +4402,10 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b,
 
 /* convert one instruction. s->is_jmp is set if the translation must
    be stopped. Return the next pc value */
-static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
+static target_ulong disas_insn(X86CPU *cpu, DisasContext *s,
                                target_ulong pc_start)
 {
+    CPUX86State *env = &cpu->env;
     int b, prefixes;
     int shift;
     TCGMemOp ot, aflag, dflag;
@@ -8025,7 +8026,7 @@ static inline void gen_intermediate_code_internal(X86CPU *cpu,
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
             gen_io_start();
 
-        pc_ptr = disas_insn(env, dc, pc_ptr);
+        pc_ptr = disas_insn(cpu, dc, pc_ptr);
         num_insns++;
         /* stop translation if indicated */
         if (dc->is_jmp)
-- 
2.1.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-24 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-24 19:27 [Qemu-devel] [PATCH] target-i386: Use X86CPU in disas_insn() Eduardo Habkost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.