cpu_mips_check_sign_extensions (CPUState *env, FILE *f,

                                int (*cpu_fprintf)(FILE *f, const char *fmt, ...),

                                int flags)

{

    int i;



    if (!SIGN_EXT_P(env->active_tc.PC))

        cpu_fprintf(f, "BROKEN: pc=0x" TARGET_FMT_lx "\n", env->active_tc.PC);

    if (!SIGN_EXT_P(env->active_tc.HI[0]))

        cpu_fprintf(f, "BROKEN: HI=0x" TARGET_FMT_lx "\n", env->active_tc.HI[0]);

    if (!SIGN_EXT_P(env->active_tc.LO[0]))

        cpu_fprintf(f, "BROKEN: LO=0x" TARGET_FMT_lx "\n", env->active_tc.LO[0]);

    if (!SIGN_EXT_P(env->btarget))

        cpu_fprintf(f, "BROKEN: btarget=0x" TARGET_FMT_lx "\n", env->btarget);



    for (i = 0; i < 32; i++) {

        if (!SIGN_EXT_P(env->active_tc.gpr[i]))

            cpu_fprintf(f, "BROKEN: %s=0x" TARGET_FMT_lx "\n", regnames[i], env->active_tc.gpr[i]);

    }



    if (!SIGN_EXT_P(env->CP0_EPC))

        cpu_fprintf(f, "BROKEN: EPC=0x" TARGET_FMT_lx "\n", env->CP0_EPC);

    if (!SIGN_EXT_P(env->lladdr))

        cpu_fprintf(f, "BROKEN: LLAddr=0x" TARGET_FMT_lx "\n", env->lladdr);

}

cpu_mips_check_sign_extensions (CPUState *env, FILE *f,

                                int (*cpu_fprintf)(FILE *f, const char *fmt, ...),

                                int flags)

{

    int i;



    if (!SIGN_EXT_P(env->active_tc.PC))

        cpu_fprintf(f, "BROKEN: pc=0x" TARGET_FMT_lx "\n", env->active_tc.PC);

    if (!SIGN_EXT_P(env->active_tc.HI[0]))

        cpu_fprintf(f, "BROKEN: HI=0x" TARGET_FMT_lx "\n", env->active_tc.HI[0]);

    if (!SIGN_EXT_P(env->active_tc.LO[0]))

        cpu_fprintf(f, "BROKEN: LO=0x" TARGET_FMT_lx "\n", env->active_tc.LO[0]);

    if (!SIGN_EXT_P(env->btarget))

        cpu_fprintf(f, "BROKEN: btarget=0x" TARGET_FMT_lx "\n", env->btarget);



    for (i = 0; i < 32; i++) {

        if (!SIGN_EXT_P(env->active_tc.gpr[i]))

            cpu_fprintf(f, "BROKEN: %s=0x" TARGET_FMT_lx "\n", regnames[i], env->active_tc.gpr[i]);

    }



    if (!SIGN_EXT_P(env->CP0_EPC))

        cpu_fprintf(f, "BROKEN: EPC=0x" TARGET_FMT_lx "\n", env->CP0_EPC);

    if (!SIGN_EXT_P(env->lladdr))

        cpu_fprintf(f, "BROKEN: LLAddr=0x" TARGET_FMT_lx "\n", env->lladdr);

}

FUNC_0 (CPUState *VAR_0, FILE *VAR_3,

                                int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),

                                int VAR_4)

{

    int VAR_5;



    if (!SIGN_EXT_P(VAR_0->active_tc.PC))

        VAR_2(VAR_3, "BROKEN: pc=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.PC);

    if (!SIGN_EXT_P(VAR_0->active_tc.HI[0]))

        VAR_2(VAR_3, "BROKEN: HI=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.HI[0]);

    if (!SIGN_EXT_P(VAR_0->active_tc.LO[0]))

        VAR_2(VAR_3, "BROKEN: LO=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.LO[0]);

    if (!SIGN_EXT_P(VAR_0->btarget))

        VAR_2(VAR_3, "BROKEN: btarget=0x" TARGET_FMT_lx "\n", VAR_0->btarget);



    for (VAR_5 = 0; VAR_5 < 32; VAR_5++) {

        if (!SIGN_EXT_P(VAR_0->active_tc.gpr[VAR_5]))

            VAR_2(VAR_3, "BROKEN: %s=0x" TARGET_FMT_lx "\n", regnames[VAR_5], VAR_0->active_tc.gpr[VAR_5]);

    }



    if (!SIGN_EXT_P(VAR_0->CP0_EPC))

        VAR_2(VAR_3, "BROKEN: EPC=0x" TARGET_FMT_lx "\n", VAR_0->CP0_EPC);

    if (!SIGN_EXT_P(VAR_0->lladdr))

        VAR_2(VAR_3, "BROKEN: LLAddr=0x" TARGET_FMT_lx "\n", VAR_0->lladdr);

}

FUNC_0 (CPUState *VAR_0, FILE *VAR_3,
int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),
int VAR_4)
{ int VAR_5; if (!SIGN_EXT_P(VAR_0->active_tc.PC))
VAR_2(VAR_3, "BROKEN: pc=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.PC); if (!SIGN_EXT_P(VAR_0->active_tc.HI[0]))
VAR_2(VAR_3, "BROKEN: HI=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.HI[0]); if (!SIGN_EXT_P(VAR_0->active_tc.LO[0]))
VAR_2(VAR_3, "BROKEN: LO=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.LO[0]); if (!SIGN_EXT_P(VAR_0->btarget))
VAR_2(VAR_3, "BROKEN: btarget=0x" TARGET_FMT_lx "\n", VAR_0->btarget); for (VAR_5 = 0; VAR_5 < 32; VAR_5++) { if (!SIGN_EXT_P(VAR_0->active_tc.gpr[VAR_5]))
VAR_2(VAR_3, "BROKEN: %s=0x" TARGET_FMT_lx "\n", regnames[VAR_5], VAR_0->active_tc.gpr[VAR_5]); } if (!SIGN_EXT_P(VAR_0->CP0_EPC))
VAR_2(VAR_3, "BROKEN: EPC=0x" TARGET_FMT_lx "\n", VAR_0->CP0_EPC); if (!SIGN_EXT_P(VAR_0->lladdr))
VAR_2(VAR_3, "BROKEN: LLAddr=0x" TARGET_FMT_lx "\n", VAR_0->lladdr); }