void helper_movl_drN_T0(CPUX86State *env, int reg, target_ulong t0)

{

#ifndef CONFIG_USER_ONLY

    if (reg < 4) {

        if (hw_breakpoint_enabled(env->dr[7], reg)

            && hw_breakpoint_type(env->dr[7], reg) != DR7_TYPE_IO_RW) {

            hw_breakpoint_remove(env, reg);

            env->dr[reg] = t0;

            hw_breakpoint_insert(env, reg);

        } else {

            env->dr[reg] = t0;

        }

    } else if (reg == 7) {

        cpu_x86_update_dr7(env, t0);

    } else {

        env->dr[reg] = t0;

    }

#endif

}

void helper_movl_drN_T0(CPUX86State *env, int reg, target_ulong t0)

{

#ifndef CONFIG_USER_ONLY

    if (reg < 4) {

        if (hw_breakpoint_enabled(env->dr[7], reg)

            && hw_breakpoint_type(env->dr[7], reg) != DR7_TYPE_IO_RW) {

            hw_breakpoint_remove(env, reg);

            env->dr[reg] = t0;

            hw_breakpoint_insert(env, reg);

        } else {

            env->dr[reg] = t0;

        }

    } else if (reg == 7) {

        cpu_x86_update_dr7(env, t0);

    } else {

        env->dr[reg] = t0;

    }

#endif

}

void FUNC_0(CPUX86State *VAR_0, int VAR_1, target_ulong VAR_2)

{

#ifndef CONFIG_USER_ONLY

    if (VAR_1 < 4) {

        if (hw_breakpoint_enabled(VAR_0->dr[7], VAR_1)

            && hw_breakpoint_type(VAR_0->dr[7], VAR_1) != DR7_TYPE_IO_RW) {

            hw_breakpoint_remove(VAR_0, VAR_1);

            VAR_0->dr[VAR_1] = VAR_2;

            hw_breakpoint_insert(VAR_0, VAR_1);

        } else {

            VAR_0->dr[VAR_1] = VAR_2;

        }

    } else if (VAR_1 == 7) {

        cpu_x86_update_dr7(VAR_0, VAR_2);

    } else {

        VAR_0->dr[VAR_1] = VAR_2;

    }

#endif

}

void FUNC_0(CPUX86State *VAR_0, int VAR_1, target_ulong VAR_2)
{ #ifndef CONFIG_USER_ONLY
if (VAR_1 < 4) { if (hw_breakpoint_enabled(VAR_0->dr[7], VAR_1)
&& hw_breakpoint_type(VAR_0->dr[7], VAR_1) != DR7_TYPE_IO_RW) { hw_breakpoint_remove(VAR_0, VAR_1); VAR_0->dr[VAR_1] = VAR_2; hw_breakpoint_insert(VAR_0, VAR_1); } else { VAR_0->dr[VAR_1] = VAR_2; } } else if (VAR_1 == 7) { cpu_x86_update_dr7(VAR_0, VAR_2); } else { VAR_0->dr[VAR_1] = VAR_2; } #endif
}