Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaFKd-00054z-Ku for qemu-devel@nongnu.org; Thu, 19 Feb 2009 15:17:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaFKc-00054O-0A for qemu-devel@nongnu.org; Thu, 19 Feb 2009 15:17:14 -0500 Received: from [199.232.76.173] (port=59927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaFKa-00054H-Sp for qemu-devel@nongnu.org; Thu, 19 Feb 2009 15:17:12 -0500 Received: from savannah.gnu.org ([199.232.41.3]:41727 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaFKa-0003yS-JS for qemu-devel@nongnu.org; Thu, 19 Feb 2009 15:17:12 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LaFKZ-0000lk-Rt for qemu-devel@nongnu.org; Thu, 19 Feb 2009 20:17:12 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LaFKZ-0000lg-0p for qemu-devel@nongnu.org; Thu, 19 Feb 2009 20:17:11 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Thu, 19 Feb 2009 20:17:11 +0000 Subject: [Qemu-devel] [6629] Fix branch debugging Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6629 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6629 Author: blueswir1 Date: 2009-02-19 20:17:09 +0000 (Thu, 19 Feb 2009) Log Message: ----------- Fix branch debugging Modified Paths: -------------- trunk/target-ppc/translate.c Modified: trunk/target-ppc/translate.c =================================================================== --- trunk/target-ppc/translate.c 2009-02-18 21:37:17 UTC (rev 6628) +++ trunk/target-ppc/translate.c 2009-02-19 20:17:09 UTC (rev 6629) @@ -278,7 +278,9 @@ static always_inline void gen_debug_exception (DisasContext *ctx) { TCGv_i32 t0; - gen_update_nip(ctx, ctx->nip); + + if (ctx->exception != POWERPC_EXCP_BRANCH) + gen_update_nip(ctx, ctx->nip); t0 = tcg_const_i32(EXCP_DEBUG); gen_helper_raise_exception(t0); tcg_temp_free_i32(t0);