static void gen_mfdcr(DisasContext *ctx)

{

#if defined(CONFIG_USER_ONLY)

    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

#else

    TCGv dcrn;

    if (unlikely(ctx->pr)) {

        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

        return;

    }

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

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

    dcrn = tcg_const_tl(SPR(ctx->opcode));

    gen_helper_load_dcr(cpu_gpr[rD(ctx->opcode)], cpu_env, dcrn);

    tcg_temp_free(dcrn);

#endif

}

static void gen_mfdcr(DisasContext *ctx)

{

#if defined(CONFIG_USER_ONLY)

    gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

#else

    TCGv dcrn;

    if (unlikely(ctx->pr)) {

        gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);

        return;

    }

    

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

    dcrn = tcg_const_tl(SPR(ctx->opcode));

    gen_helper_load_dcr(cpu_gpr[rD(ctx->opcode)], cpu_env, dcrn);

    tcg_temp_free(dcrn);

#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 dcrn;

    if (unlikely(VAR_0->pr)) {

        gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);

        return;

    }

    

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

    dcrn = tcg_const_tl(SPR(VAR_0->opcode));

    gen_helper_load_dcr(cpu_gpr[rD(VAR_0->opcode)], cpu_env, dcrn);

    tcg_temp_free(dcrn);

#endif

}

static void FUNC_0(DisasContext *VAR_0)
{ #if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else
TCGv dcrn; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(VAR_0, VAR_0->nip - 4); dcrn = tcg_const_tl(SPR(VAR_0->opcode)); gen_helper_load_dcr(cpu_gpr[rD(VAR_0->opcode)], cpu_env, dcrn); tcg_temp_free(dcrn); #endif
}