qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6930] target-alpha: bug fix: avoid nop to override next instruction
@ 2009-03-29  1:04 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-03-29  1:04 UTC (permalink / raw)
  To: qemu-devel

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 <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

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();

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

only message in thread, other threads:[~2009-03-29  1:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29  1:04 [Qemu-devel] [6930] target-alpha: bug fix: avoid nop to override next instruction Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).