Commit 5518f3a6367e626d0866da35f4cda245a71485ea

Authored by blueswir1
1 parent 6c2934db

Fix branch debugging

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6629 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 1 deletions
target-ppc/translate.c
... ... @@ -278,7 +278,9 @@ static always_inline void gen_exception (DisasContext *ctx, uint32_t excp)
278 278 static always_inline void gen_debug_exception (DisasContext *ctx)
279 279 {
280 280 TCGv_i32 t0;
281   - gen_update_nip(ctx, ctx->nip);
  281 +
  282 + if (ctx->exception != POWERPC_EXCP_BRANCH)
  283 + gen_update_nip(ctx, ctx->nip);
282 284 t0 = tcg_const_i32(EXCP_DEBUG);
283 285 gen_helper_raise_exception(t0);
284 286 tcg_temp_free_i32(t0);
... ...