qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [6930] target-alpha: bug fix: avoid nop to override next in


From: Aurelien Jarno
Subject: [Qemu-devel] [6930] target-alpha: bug fix: avoid nop to override next instruction
Date: Sun, 29 Mar 2009 01:04:40 +0000

Revision: 6930
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6930
Author:   aurel32
Date:     2009-03-29 01:04:39 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
target-alpha: bug fix: avoid nop to override next instruction

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>
Signed-off-by: Aurelien Jarno <address@hidden>

Modified Paths:
--------------
    trunk/target-alpha/translate.c

Modified: trunk/target-alpha/translate.c
===================================================================
--- trunk/target-alpha/translate.c      2009-03-29 00:22:12 UTC (rev 6929)
+++ trunk/target-alpha/translate.c      2009-03-29 01:04:39 UTC (rev 6930)
@@ -2379,10 +2379,10 @@
                 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();





reply via email to

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