static int s390_cpu_initial_reset(S390CPU *cpu)

{

    CPUState *cs = CPU(cpu);

    CPUS390XState *env = &cpu->env;

    int i;



    s390_del_running_cpu(cpu);

    if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) {

        perror("cannot init reset vcpu");

    }



    /* Manually zero out all registers */

    cpu_synchronize_state(cs);

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

        env->regs[i] = 0;

    }



    DPRINTF("DONE: SIGP initial reset: %p\n", env);

    return 0;

}

static int s390_cpu_initial_reset(S390CPU *cpu)

{

    CPUState *cs = CPU(cpu);

    CPUS390XState *env = &cpu->env;

    int i;



    s390_del_running_cpu(cpu);

    if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) {

        perror("cannot init reset vcpu");

    }



    

    cpu_synchronize_state(cs);

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

        env->regs[i] = 0;

    }



    DPRINTF("DONE: SIGP initial reset: %p\n", env);

    return 0;

}

static int FUNC_0(S390CPU *VAR_0)

{

    CPUState *cs = CPU(VAR_0);

    CPUS390XState *env = &VAR_0->env;

    int VAR_1;



    s390_del_running_cpu(VAR_0);

    if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) {

        perror("cannot init reset vcpu");

    }



    

    cpu_synchronize_state(cs);

    for (VAR_1 = 0; VAR_1 < 16; VAR_1++) {

        env->regs[VAR_1] = 0;

    }



    DPRINTF("DONE: SIGP initial reset: %p\n", env);

    return 0;

}

static int FUNC_0(S390CPU *VAR_0)
{ CPUState *cs = CPU(VAR_0); CPUS390XState *env = &VAR_0->env; int VAR_1; s390_del_running_cpu(VAR_0); if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL) < 0) { perror("cannot init reset vcpu"); } cpu_synchronize_state(cs); for (VAR_1 = 0; VAR_1 < 16; VAR_1++) { env->regs[VAR_1] = 0; } DPRINTF("DONE: SIGP initial reset: %p\n", env); return 0; }