[6931] target-ppc: avoid nop to override next instruction
Revision: 6931
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6931 Author: aurel32 Date: 2009-03-29 01:18:03 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
target-ppc: 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.
Based on patch for target-alpha, r6930.
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/translate.c
===================================================================
target-ppc/translate.c +3 -3
@@ -8213,10 +8213,10 @@ lj++;while (lj < j) gen_opc_instr_start[lj++] =0 ; - gen_opc_pc[lj] = ctx.nip; - gen_opc_instr_start[lj] =1 ; - gen_opc_icount[lj] = num_insns; } + gen_opc_pc[lj] = ctx.nip; + gen_opc_instr_start[lj] =1 ; + gen_opc_icount[lj] = num_insns; }LOG_DISAS ("----------------\n" ); LOG_DISAS("nip=" ADDRX " super=%d ir=%d\n",