aboutsummaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
authorEvgeny Voevodin <e.voevodin@samsung.com>2012-11-21 11:43:06 +0400
committerBlue Swirl <blauwirbel@gmail.com>2012-12-08 14:24:43 +0000
commitab1103def476d985c08362df97ff9cb9c112adfc (patch)
treea9c44f45ca4f54bdf7d7b30624b02d63a54c7c1f /translate-all.c
parentc9c99c22d5f8e9cfa83260fbe236a57e7383d673 (diff)
TCG: Use gen_opc_instr_start from context instead of global variable.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c3
1 files changed, 2 insertions, 1 deletions
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);