static void gen_stswx(DisasContext *ctx)

{

    TCGv t0;

    TCGv_i32 t1, t2;

    gen_set_access_type(ctx, ACCESS_INT);

    /* NIP cannot be restored if the memory exception comes from an helper */

    gen_update_nip(ctx, ctx->nip - 4);

    t0 = tcg_temp_new();

    gen_addr_reg_index(ctx, t0);

    t1 = tcg_temp_new_i32();

    tcg_gen_trunc_tl_i32(t1, cpu_xer);

    tcg_gen_andi_i32(t1, t1, 0x7F);

    t2 = tcg_const_i32(rS(ctx->opcode));

    gen_helper_stsw(cpu_env, t0, t1, t2);

    tcg_temp_free(t0);

    tcg_temp_free_i32(t1);

    tcg_temp_free_i32(t2);

}

static void gen_stswx(DisasContext *ctx)

{

    TCGv t0;

    TCGv_i32 t1, t2;

    gen_set_access_type(ctx, ACCESS_INT);

    

    gen_update_nip(ctx, ctx->nip - 4);

    t0 = tcg_temp_new();

    gen_addr_reg_index(ctx, t0);

    t1 = tcg_temp_new_i32();

    tcg_gen_trunc_tl_i32(t1, cpu_xer);

    tcg_gen_andi_i32(t1, t1, 0x7F);

    t2 = tcg_const_i32(rS(ctx->opcode));

    gen_helper_stsw(cpu_env, t0, t1, t2);

    tcg_temp_free(t0);

    tcg_temp_free_i32(t1);

    tcg_temp_free_i32(t2);

}

    gen_update_nip(ctx, ctx->nip - 4);     gen_update_nip(ctx, ctx->nip - 4);     gen_update_nip(ctx, ctx->nip - 4);     gen_update_nip(ctx, ctx->nip - 4);
static void FUNC_0(DisasContext *VAR_0)

{

    TCGv t0;

    TCGv_i32 t1, t2;

    gen_set_access_type(VAR_0, ACCESS_INT);

    

    gen_update_nip(VAR_0, VAR_0->nip - 4);

    t0 = tcg_temp_new();

    gen_addr_reg_index(VAR_0, t0);

    t1 = tcg_temp_new_i32();

    tcg_gen_trunc_tl_i32(t1, cpu_xer);

    tcg_gen_andi_i32(t1, t1, 0x7F);

    t2 = tcg_const_i32(rS(VAR_0->opcode));

    gen_helper_stsw(cpu_env, t0, t1, t2);

    tcg_temp_free(t0);

    tcg_temp_free_i32(t1);

    tcg_temp_free_i32(t2);

}

static void FUNC_0(DisasContext *VAR_0)
{ TCGv t0; TCGv_i32 t1, t2; gen_set_access_type(VAR_0, ACCESS_INT); gen_update_nip(VAR_0, VAR_0->nip - 4); t0 = tcg_temp_new(); gen_addr_reg_index(VAR_0, t0); t1 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t1, cpu_xer); tcg_gen_andi_i32(t1, t1, 0x7F); t2 = tcg_const_i32(rS(VAR_0->opcode)); gen_helper_stsw(cpu_env, t0, t1, t2); tcg_temp_free(t0); tcg_temp_free_i32(t1); tcg_temp_free_i32(t2); }