restore_sigcontext(CPUMIPSState *regs, struct target_sigcontext *sc)

{

    int err = 0;

    int i;



    __get_user(regs->CP0_EPC, &sc->sc_pc);



    __get_user(regs->active_tc.HI[0], &sc->sc_mdhi);

    __get_user(regs->active_tc.LO[0], &sc->sc_mdlo);



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

        __get_user(regs->active_tc.gpr[i], &sc->sc_regs[i]);

    }



    __get_user(regs->active_tc.HI[1], &sc->sc_hi1);

    __get_user(regs->active_tc.HI[2], &sc->sc_hi2);

    __get_user(regs->active_tc.HI[3], &sc->sc_hi3);

    __get_user(regs->active_tc.LO[1], &sc->sc_lo1);

    __get_user(regs->active_tc.LO[2], &sc->sc_lo2);

    __get_user(regs->active_tc.LO[3], &sc->sc_lo3);

    {

        uint32_t dsp;

        __get_user(dsp, &sc->sc_dsp);

        cpu_wrdsp(dsp, 0x3ff, regs);

    }



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

        __get_user(regs->active_fpu.fpr[i].d, &sc->sc_fpregs[i]);

    }



    return err;

}

restore_sigcontext(CPUMIPSState *regs, struct target_sigcontext *sc)

{

    int err = 0;

    int i;



    __get_user(regs->CP0_EPC, &sc->sc_pc);



    __get_user(regs->active_tc.HI[0], &sc->sc_mdhi);

    __get_user(regs->active_tc.LO[0], &sc->sc_mdlo);



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

        __get_user(regs->active_tc.gpr[i], &sc->sc_regs[i]);

    }



    __get_user(regs->active_tc.HI[1], &sc->sc_hi1);

    __get_user(regs->active_tc.HI[2], &sc->sc_hi2);

    __get_user(regs->active_tc.HI[3], &sc->sc_hi3);

    __get_user(regs->active_tc.LO[1], &sc->sc_lo1);

    __get_user(regs->active_tc.LO[2], &sc->sc_lo2);

    __get_user(regs->active_tc.LO[3], &sc->sc_lo3);

    {

        uint32_t dsp;

        __get_user(dsp, &sc->sc_dsp);

        cpu_wrdsp(dsp, 0x3ff, regs);

    }



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

        __get_user(regs->active_fpu.fpr[i].d, &sc->sc_fpregs[i]);

    }



    return err;

}

    int err = 0;     return err;     return err;     int err = 0;     return err;     return err;
FUNC_0(CPUMIPSState *VAR_0, struct target_sigcontext *VAR_1)

{

    int VAR_2 = 0;

    int VAR_3;



    __get_user(VAR_0->CP0_EPC, &VAR_1->sc_pc);



    __get_user(VAR_0->active_tc.HI[0], &VAR_1->sc_mdhi);

    __get_user(VAR_0->active_tc.LO[0], &VAR_1->sc_mdlo);



    for (VAR_3 = 1; VAR_3 < 32; ++VAR_3) {

        __get_user(VAR_0->active_tc.gpr[VAR_3], &VAR_1->sc_regs[VAR_3]);

    }



    __get_user(VAR_0->active_tc.HI[1], &VAR_1->sc_hi1);

    __get_user(VAR_0->active_tc.HI[2], &VAR_1->sc_hi2);

    __get_user(VAR_0->active_tc.HI[3], &VAR_1->sc_hi3);

    __get_user(VAR_0->active_tc.LO[1], &VAR_1->sc_lo1);

    __get_user(VAR_0->active_tc.LO[2], &VAR_1->sc_lo2);

    __get_user(VAR_0->active_tc.LO[3], &VAR_1->sc_lo3);

    {

        uint32_t dsp;

        __get_user(dsp, &VAR_1->sc_dsp);

        cpu_wrdsp(dsp, 0x3ff, VAR_0);

    }



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

        __get_user(VAR_0->active_fpu.fpr[VAR_3].d, &VAR_1->sc_fpregs[VAR_3]);

    }



    return VAR_2;

}

FUNC_0(CPUMIPSState *VAR_0, struct target_sigcontext *VAR_1)
{ int VAR_2 = 0; int VAR_3; __get_user(VAR_0->CP0_EPC, &VAR_1->sc_pc); __get_user(VAR_0->active_tc.HI[0], &VAR_1->sc_mdhi); __get_user(VAR_0->active_tc.LO[0], &VAR_1->sc_mdlo); for (VAR_3 = 1; VAR_3 < 32; ++VAR_3) { __get_user(VAR_0->active_tc.gpr[VAR_3], &VAR_1->sc_regs[VAR_3]); } __get_user(VAR_0->active_tc.HI[1], &VAR_1->sc_hi1); __get_user(VAR_0->active_tc.HI[2], &VAR_1->sc_hi2); __get_user(VAR_0->active_tc.HI[3], &VAR_1->sc_hi3); __get_user(VAR_0->active_tc.LO[1], &VAR_1->sc_lo1); __get_user(VAR_0->active_tc.LO[2], &VAR_1->sc_lo2); __get_user(VAR_0->active_tc.LO[3], &VAR_1->sc_lo3); { uint32_t dsp; __get_user(dsp, &VAR_1->sc_dsp); cpu_wrdsp(dsp, 0x3ff, VAR_0); } for (VAR_3 = 0; VAR_3 < 32; ++VAR_3) { __get_user(VAR_0->active_fpu.fpr[VAR_3].d, &VAR_1->sc_fpregs[VAR_3]); } return VAR_2; }