From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6Ide-0005jH-1A for qemu-devel@nongnu.org; Wed, 11 Apr 2018 12:30:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6IdZ-0006vh-LA for qemu-devel@nongnu.org; Wed, 11 Apr 2018 12:30:25 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60901) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f6IdZ-0006r8-AP for qemu-devel@nongnu.org; Wed, 11 Apr 2018 12:30:21 -0400 Date: Wed, 11 Apr 2018 12:30:16 -0400 From: "Emilio G. Cota" Message-ID: <20180411163016.GB4480@flamenco> References: <1523038800-2494-1-git-send-email-cota@braap.org> <1523038800-2494-7-git-send-email-cota@braap.org> <20180410142332.GA22989@flamenco> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 06/17] target/mips: convert to DisasJumpType List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org, Aurelien Jarno , Yongbok Kim On Wed, Apr 11, 2018 at 09:27:57 +1000, Richard Henderson wrote: > On 04/11/2018 12:23 AM, Emilio G. Cota wrote: > > case DISAS_STOP: > > - gen_goto_tb(&ctx, 0, ctx.pc); > > + tcg_gen_lookup_and_goto_ptr(); > > You need to write ctx.pc back to the pc first, e.g. > > gen_save_pc(ctx.pc); > tcg_gen_lookup_and_goto_ptr(); Thanks, fixed now. Emilio