static void gen_b(DisasContext *ctx)

{

    target_ulong li, target;



    ctx->exception = POWERPC_EXCP_BRANCH;

    /* sign extend LI */

#if defined(TARGET_PPC64)

    if (ctx->sf_mode)

        li = ((int64_t)LI(ctx->opcode) << 38) >> 38;

    else

#endif

        li = ((int32_t)LI(ctx->opcode) << 6) >> 6;

    if (likely(AA(ctx->opcode) == 0))

        target = ctx->nip + li - 4;

    else

        target = li;

    if (LK(ctx->opcode))

        gen_setlr(ctx, ctx->nip);


    gen_goto_tb(ctx, 0, target);

}
static void gen_b(DisasContext *ctx)

{

    target_ulong li, target;



    ctx->exception = POWERPC_EXCP_BRANCH;

    

#if defined(TARGET_PPC64)

    if (ctx->sf_mode)

        li = ((int64_t)LI(ctx->opcode) << 38) >> 38;

    else

#endif

        li = ((int32_t)LI(ctx->opcode) << 6) >> 6;

    if (likely(AA(ctx->opcode) == 0))

        target = ctx->nip + li - 4;

    else

        target = li;

    if (LK(ctx->opcode))

        gen_setlr(ctx, ctx->nip);


    gen_goto_tb(ctx, 0, target);

}
static void FUNC_0(DisasContext *VAR_0)

{

    target_ulong li, target;



    VAR_0->exception = POWERPC_EXCP_BRANCH;

    

#if defined(TARGET_PPC64)

    if (VAR_0->sf_mode)

        li = ((int64_t)LI(VAR_0->opcode) << 38) >> 38;

    else

#endif

        li = ((int32_t)LI(VAR_0->opcode) << 6) >> 6;

    if (likely(AA(VAR_0->opcode) == 0))

        target = VAR_0->nip + li - 4;

    else

        target = li;

    if (LK(VAR_0->opcode))

        gen_setlr(VAR_0, VAR_0->nip);


    gen_goto_tb(VAR_0, 0, target);

}
static void FUNC_0(DisasContext *VAR_0)
{ target_ulong li, target; VAR_0->exception = POWERPC_EXCP_BRANCH; #if defined(TARGET_PPC64)
if (VAR_0->sf_mode)
li = ((int64_t)LI(VAR_0->opcode) << 38) >> 38; else
#endif
li = ((int32_t)LI(VAR_0->opcode) << 6) >> 6; if (likely(AA(VAR_0->opcode) == 0))
target = VAR_0->nip + li - 4; else
target = li; if (LK(VAR_0->opcode))
gen_setlr(VAR_0, VAR_0->nip); gen_goto_tb(VAR_0, 0, target); }