aboutsummaryrefslogtreecommitdiff
path: root/gen-icount.h
diff options
context:
space:
mode:
authorEvgeny Voevodin <e.voevodin@samsung.com>2012-11-12 13:27:46 +0400
committerBlue Swirl <blauwirbel@gmail.com>2012-11-17 13:53:34 +0000
commitc4afe5c4d30e1dd6fc1f2b0b32ffb50f4d5ada82 (patch)
tree81aefabf03a578333a12d9653816300b82f11b42 /gen-icount.h
parentefd7f48600e0e7803765d7b31cea131aae2b7329 (diff)
TCG: Use gen_opparam_ptr from context instead of global variable.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'gen-icount.h')
-rw-r--r--gen-icount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gen-icount.h b/gen-icount.h
index 430cb446d0..248cf5b16d 100644
--- a/gen-icount.h
+++ b/gen-icount.h
@@ -16,7 +16,7 @@ static inline void gen_icount_start(void)
count = tcg_temp_local_new_i32();
tcg_gen_ld_i32(count, cpu_env, offsetof(CPUArchState, icount_decr.u32));
/* This is a horrid hack to allow fixing up the value later. */
- icount_arg = gen_opparam_ptr + 1;
+ icount_arg = tcg_ctx.gen_opparam_ptr + 1;
tcg_gen_subi_i32(count, count, 0xdeadbeef);
tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label);