static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,

                                 uint16_t ipbh0)

{

    CPUS390XState *env = &cpu->env;

    uint64_t sccb;

    uint32_t code;

    int r = 0;



    cpu_synchronize_state(CPU(cpu));

    if (env->psw.mask & PSW_MASK_PSTATE) {

        enter_pgmcheck(cpu, PGM_PRIVILEGED);

        return 0;

    }

    sccb = env->regs[ipbh0 & 0xf];

    code = env->regs[(ipbh0 & 0xf0) >> 4];



    r = sclp_service_call(sccb, code);

    if (r < 0) {

        enter_pgmcheck(cpu, -r);

    }

    setcc(cpu, r);



    return 0;

}

static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,

                                 uint16_t ipbh0)

{

    CPUS390XState *env = &cpu->env;

    uint64_t sccb;

    uint32_t code;

    int r = 0;



    cpu_synchronize_state(CPU(cpu));

    if (env->psw.mask & PSW_MASK_PSTATE) {

        enter_pgmcheck(cpu, PGM_PRIVILEGED);

        return 0;

    }

    sccb = env->regs[ipbh0 & 0xf];

    code = env->regs[(ipbh0 & 0xf0) >> 4];



    r = sclp_service_call(sccb, code);

    if (r < 0) {

        enter_pgmcheck(cpu, -r);

    }

    setcc(cpu, r);



    return 0;

}

    if (env->psw.mask & PSW_MASK_PSTATE) {         enter_pgmcheck(cpu, PGM_PRIVILEGED);         return 0;     r = sclp_service_call(sccb, code);
static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,

                                 uint16_t VAR_2)

{

    CPUS390XState *env = &VAR_0->env;

    uint64_t sccb;

    uint32_t code;

    int VAR_3 = 0;



    cpu_synchronize_state(CPU(VAR_0));

    if (env->psw.mask & PSW_MASK_PSTATE) {

        enter_pgmcheck(VAR_0, PGM_PRIVILEGED);

        return 0;

    }

    sccb = env->regs[VAR_2 & 0xf];

    code = env->regs[(VAR_2 & 0xf0) >> 4];



    VAR_3 = sclp_service_call(sccb, code);

    if (VAR_3 < 0) {

        enter_pgmcheck(VAR_0, -VAR_3);

    }

    setcc(VAR_0, VAR_3);



    return 0;

}

static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,
uint16_t VAR_2)
{ CPUS390XState *env = &VAR_0->env; uint64_t sccb; uint32_t code; int VAR_3 = 0; cpu_synchronize_state(CPU(VAR_0)); if (env->psw.mask & PSW_MASK_PSTATE) { enter_pgmcheck(VAR_0, PGM_PRIVILEGED); return 0; } sccb = env->regs[VAR_2 & 0xf]; code = env->regs[(VAR_2 & 0xf0) >> 4]; VAR_3 = sclp_service_call(sccb, code); if (VAR_3 < 0) { enter_pgmcheck(VAR_0, -VAR_3); } setcc(VAR_0, VAR_3); return 0; }