void load_psw(CPUS390XState *env, uint64_t mask, uint64_t addr)

{

    uint64_t old_mask = env->psw.mask;



    env->psw.addr = addr;

    env->psw.mask = mask;

    if (tcg_enabled()) {

        env->cc_op = (mask >> 44) & 3;

    }



    if ((old_mask ^ mask) & PSW_MASK_PER) {

        s390_cpu_recompute_watchpoints(CPU(s390_env_get_cpu(env)));

    }



    if (mask & PSW_MASK_WAIT) {

        S390CPU *cpu = s390_env_get_cpu(env);

        if (s390_cpu_halt(cpu) == 0) {

#ifndef CONFIG_USER_ONLY

            qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);

#endif

        }

    }

}

void load_psw(CPUS390XState *env, uint64_t mask, uint64_t addr)

{

    uint64_t old_mask = env->psw.mask;



    env->psw.addr = addr;

    env->psw.mask = mask;

    if (tcg_enabled()) {

        env->cc_op = (mask >> 44) & 3;

    }



    if ((old_mask ^ mask) & PSW_MASK_PER) {

        s390_cpu_recompute_watchpoints(CPU(s390_env_get_cpu(env)));

    }



    if (mask & PSW_MASK_WAIT) {

        S390CPU *cpu = s390_env_get_cpu(env);

        if (s390_cpu_halt(cpu) == 0) {

#ifndef CONFIG_USER_ONLY

            qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);

#endif

        }

    }

}

        S390CPU *cpu = s390_env_get_cpu(env);         if (s390_cpu_halt(cpu) == 0) { #ifndef CONFIG_USER_ONLY             qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); #endif
void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2)

{

    uint64_t old_mask = VAR_0->psw.VAR_1;



    VAR_0->psw.VAR_2 = VAR_2;

    VAR_0->psw.VAR_1 = VAR_1;

    if (tcg_enabled()) {

        VAR_0->cc_op = (VAR_1 >> 44) & 3;

    }



    if ((old_mask ^ VAR_1) & PSW_MASK_PER) {

        s390_cpu_recompute_watchpoints(CPU(s390_env_get_cpu(VAR_0)));

    }



    if (VAR_1 & PSW_MASK_WAIT) {

        S390CPU *cpu = s390_env_get_cpu(VAR_0);

        if (s390_cpu_halt(cpu) == 0) {

#ifndef CONFIG_USER_ONLY

            qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN);

#endif

        }

    }

}

void FUNC_0(CPUS390XState *VAR_0, uint64_t VAR_1, uint64_t VAR_2)
{ uint64_t old_mask = VAR_0->psw.VAR_1; VAR_0->psw.VAR_2 = VAR_2; VAR_0->psw.VAR_1 = VAR_1; if (tcg_enabled()) { VAR_0->cc_op = (VAR_1 >> 44) & 3; } if ((old_mask ^ VAR_1) & PSW_MASK_PER) { s390_cpu_recompute_watchpoints(CPU(s390_env_get_cpu(VAR_0))); } if (VAR_1 & PSW_MASK_WAIT) { S390CPU *cpu = s390_env_get_cpu(VAR_0); if (s390_cpu_halt(cpu) == 0) { #ifndef CONFIG_USER_ONLY
qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); #endif
} } }