static int kvm_sclp_service_call(CPUS390XState *env, struct kvm_run *run,

                                 uint16_t ipbh0)

{

    uint32_t sccb;

    uint64_t code;

    int r = 0;



    cpu_synchronize_state(env);

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

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



    r = sclp_service_call(env, sccb, code);

    if (r) {

        setcc(env, 3);

    }



    return 0;

}

static int kvm_sclp_service_call(CPUS390XState *env, struct kvm_run *run,

                                 uint16_t ipbh0)

{

    uint32_t sccb;

    uint64_t code;

    int r = 0;



    cpu_synchronize_state(env);

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

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



    r = sclp_service_call(env, sccb, code);

    if (r) {

        setcc(env, 3);

    }



    return 0;

}

static int FUNC_0(CPUS390XState *VAR_0, struct kvm_run *VAR_1,

                                 uint16_t VAR_2)

{

    uint32_t sccb;

    uint64_t code;

    int VAR_3 = 0;



    cpu_synchronize_state(VAR_0);

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

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



    VAR_3 = sclp_service_call(VAR_0, sccb, code);

    if (VAR_3) {

        setcc(VAR_0, 3);

    }



    return 0;

}

static int FUNC_0(CPUS390XState *VAR_0, struct kvm_run *VAR_1,
uint16_t VAR_2)
{ uint32_t sccb; uint64_t code; int VAR_3 = 0; cpu_synchronize_state(VAR_0); sccb = VAR_0->regs[VAR_2 & 0xf]; code = VAR_0->regs[(VAR_2 & 0xf0) >> 4]; VAR_3 = sclp_service_call(VAR_0, sccb, code); if (VAR_3) { setcc(VAR_0, 3); } return 0; }