qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 05/24] bug fix: avoid nop to override next instructi


From: Tristan Gingold
Subject: [Qemu-devel] [PATCH 05/24] bug fix: avoid nop to override next instruction
Date: Thu, 19 Mar 2009 15:35:37 +0100

While searching PC, always store the pc of a new instruction.
Instructions that didn't generate tcg code (such as nop) prevented the next
one to be referenced.

Signed-off-by: Tristan Gingold <address@hidden>
---
 target-alpha/translate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 09065ac..df50d1c 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2380,10 +2380,10 @@ static always_inline void 
gen_intermediate_code_internal (CPUState *env,
                 lj++;
                 while (lj < j)
                     gen_opc_instr_start[lj++] = 0;
-                gen_opc_pc[lj] = ctx.pc;
-                gen_opc_instr_start[lj] = 1;
-                gen_opc_icount[lj] = num_insns;
             }
+            gen_opc_pc[lj] = ctx.pc;
+            gen_opc_instr_start[lj] = 1;
+            gen_opc_icount[lj] = num_insns;
         }
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
             gen_io_start();
-- 
1.6.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]