[6930] target-alpha: bug fix: avoid nop to override next instruction
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 <[email protected]>
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-alpha/translate.c
Modified: trunk/target-alpha/translate.c
===================================================================
target-alpha/translate.c +3 -3
@@ -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 ();