From ab1103def476d985c08362df97ff9cb9c112adfc Mon Sep 17 00:00:00 2001 From: Evgeny Voevodin Date: Wed, 21 Nov 2012 11:43:06 +0400 Subject: TCG: Use gen_opc_instr_start from context instead of global variable. Signed-off-by: Evgeny Voevodin Signed-off-by: Blue Swirl --- translate-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'translate-all.c') diff --git a/translate-all.c b/translate-all.c index 177e95ab0c..2f616bf321 100644 --- a/translate-all.c +++ b/translate-all.c @@ -146,8 +146,9 @@ int cpu_restore_state(TranslationBlock *tb, if (j < 0) return -1; /* now find start of instruction before */ - while (gen_opc_instr_start[j] == 0) + while (s->gen_opc_instr_start[j] == 0) { j--; + } env->icount_decr.u16.low -= s->gen_opc_icount[j]; restore_state_to_opc(env, tb, j); -- cgit v1.2.1