sim-card
/
qemu
Archived
10
0
Fork 0

Fix branch debugging

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6629 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2009-02-19 20:17:09 +00:00
parent 6c2934db94
commit 5518f3a636
1 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,9 @@ static always_inline void gen_exception (DisasContext *ctx, uint32_t excp)
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);