static void gen_mtsrin_64b(DisasContext *ctx)

{

#if defined(CONFIG_USER_ONLY)

    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

#else

    TCGv t0;

    if (unlikely(ctx->pr)) {

        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

        return;

    }

    t0 = tcg_temp_new();

    tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 28);

    tcg_gen_andi_tl(t0, t0, 0xF);

    gen_helper_store_sr(cpu_env, t0, cpu_gpr[rS(ctx->opcode)]);

    tcg_temp_free(t0);

#endif

}

static void gen_mtsrin_64b(DisasContext *ctx)

{

#if defined(CONFIG_USER_ONLY)

    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

#else

    TCGv t0;

    if (unlikely(ctx->pr)) {

        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

        return;

    }

    t0 = tcg_temp_new();

    tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 28);

    tcg_gen_andi_tl(t0, t0, 0xF);

    gen_helper_store_sr(cpu_env, t0, cpu_gpr[rS(ctx->opcode)]);

    tcg_temp_free(t0);

#endif

}

    if (unlikely(ctx->pr)) {     if (unlikely(ctx->pr)) { #if defined(CONFIG_USER_ONLY)     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif #if defined(CONFIG_USER_ONLY)     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif #endif #if defined(CONFIG_USER_ONLY)     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) { #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif #endif     if (unlikely(ctx->pr)) { #endif #endif #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif     gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);     if (unlikely(ctx->pr)) {         gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #endif #if defined(CONFIG_USER_ONLY) #else     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif #if defined(CONFIG_USER_ONLY) #else     if (unlikely(ctx->pr)) { #endif #if defined(CONFIG_USER_ONLY) #else     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif #if defined(CONFIG_USER_ONLY)     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif     if (unlikely(ctx->pr)) { #endif
static void FUNC_0(DisasContext *VAR_0)

{

#if defined(CONFIG_USER_ONLY)

    gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);

#else

    TCGv t0;

    if (unlikely(VAR_0->pr)) {

        gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);

        return;

    }

    t0 = tcg_temp_new();

    tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 28);

    tcg_gen_andi_tl(t0, t0, 0xF);

    gen_helper_store_sr(cpu_env, t0, cpu_gpr[rS(VAR_0->opcode)]);

    tcg_temp_free(t0);

#endif

}

static void FUNC_0(DisasContext *VAR_0)
{ #if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else
TCGv t0; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 28); tcg_gen_andi_tl(t0, t0, 0xF); gen_helper_store_sr(cpu_env, t0, cpu_gpr[rS(VAR_0->opcode)]); tcg_temp_free(t0); #endif
}