qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6629] Fix branch debugging


From: Blue Swirl
Subject: [Qemu-devel] [6629] Fix branch debugging
Date: Thu, 19 Feb 2009 20:17:11 +0000

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);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]