On Fri, Jun 16, 2017 at 10:32:14 +0200, Paolo Bonzini wrote: > On 16/06/2017 01:04, Emilio G. Cota wrote: > > va = dest_gpr(ctx, ra); > > if (ctx->tb->cflags & CF_USE_ICOUNT) { > > - gen_io_start(); > > + gen_io_start(cpu_env); > > gen_helper_load_pcc(va, cpu_env); > > - gen_io_end(); > > + gen_io_start(cpu_env); > > Careful, looks like a cut-and-paste issue here.
Ouch, messed up the regex there -- thanks. Fixed in the upcoming v2, which doesn't need to go through all this churn and instead takes the value from tcg_ctx as Richard pointed out. E.