Update of /cvsroot/hppaqemu/hppaqemu/target-hppa
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv13669
Modified Files:
translate.c
Log Message:
Restore iaoq[1] from tb->cs_base.
Don't call gen_op_exit_tb() twice for branches.
Index: translate.c
===================================================================
RCS file: /cvsroot/hppaqemu/hppaqemu/target-hppa/translate.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- translate.c 21 Mar 2007 00:42:45 -0000 1.35
+++ translate.c 21 Mar 2007 20:20:00 -0000 1.36
@@ -803,9 +803,9 @@
dc->tb = tb;
pc_start = tb->pc;
dc->iaoq[0] = pc_start;
- dc->iaoq[1] = pc_start + 4;
+ dc->iaoq[1] = (target_ulong) tb->cs_base;
last_pc = dc->iaoq[0];
- dc->iasq[0] = dc->iasq[1] = tb->cs_base;
+ dc->iasq[0] = dc->iasq[1] = 0; /* FIXME */
gen_opc_ptr = gen_opc_buf;
gen_opc_end = gen_opc_buf + OPC_MAX_SIZE;
gen_opparam_ptr = gen_opparam_buf;
@@ -859,8 +859,8 @@
{
save_state(dc);
gen_goto_tb(dc, 0, dc->iaoq[0], dc->iaoq[1]);
+ gen_op_exit_tb();
}
- gen_op_exit_tb();
exit_gen_loop:
*gen_opc_ptr = INDEX_op_end;
|