Skip to content

Commit

Permalink
TCG: Use gen_opparam_ptr from context instead of global variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Voevodin <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
Evgeny Voevodin authored and blueswirl committed Nov 17, 2012
1 parent efd7f48 commit c4afe5c
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 146 deletions.
2 changes: 1 addition & 1 deletion gen-icount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit c4afe5c

Please sign in to comment.