From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLwKt-0002dh-RX for qemu-devel@nongnu.org; Fri, 16 Jun 2017 14:51:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLwKq-00039R-Ot for qemu-devel@nongnu.org; Fri, 16 Jun 2017 14:51:11 -0400 Date: Fri, 16 Jun 2017 14:50:56 -0400 From: "Emilio G. Cota" Message-ID: <20170616185056.GA3055@flamenco> References: <1497567879-13734-1-git-send-email-cota@braap.org> <1497567879-13734-2-git-send-email-cota@braap.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 2/2] gen-icount: pass cpu_env as a parameter to gen_* inlines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Richard Henderson , Peter Maydell , "Edgar E . Iglesias" , Eduardo Habkost , Michael Walle , Laurent Vivier , Aurelien Jarno , Yongbok Kim , Anthony Green , Chris Wulff , Marek Vasut , Stafford Horne , David Gibson , Alexander Graf , Mark Cave-Ayland , Artyom Tarasenko , Bastian Koppelmann , Guan Xuetao , Max Filippov , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, =?iso-8859-1?Q?Llu=EDs?= Vilanova 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.