void kvm_inject_x86_mce(CPUState *cenv, int bank, uint64_t status,

                        uint64_t mcg_status, uint64_t addr, uint64_t misc,

                        int flag)

{

#ifdef KVM_CAP_MCE

    struct kvm_x86_mce mce = {

        .bank = bank,

        .status = status,

        .mcg_status = mcg_status,

        .addr = addr,

        .misc = misc,

    };



    if (flag & MCE_BROADCAST) {

        kvm_mce_broadcast_rest(cenv);

    }



    kvm_inject_x86_mce_on(cenv, &mce, flag);

#else /* !KVM_CAP_MCE*/

    if (flag & ABORT_ON_ERROR) {

        abort();

    }

#endif /* !KVM_CAP_MCE*/

}

void kvm_inject_x86_mce(CPUState *cenv, int bank, uint64_t status,

                        uint64_t mcg_status, uint64_t addr, uint64_t misc,

                        int flag)

{

#ifdef KVM_CAP_MCE

    struct kvm_x86_mce mce = {

        .bank = bank,

        .status = status,

        .mcg_status = mcg_status,

        .addr = addr,

        .misc = misc,

    };



    if (flag & MCE_BROADCAST) {

        kvm_mce_broadcast_rest(cenv);

    }



    kvm_inject_x86_mce_on(cenv, &mce, flag);

#else 

    if (flag & ABORT_ON_ERROR) {

        abort();

    }

#endif 

}

void FUNC_0(CPUState *VAR_0, int VAR_1, uint64_t VAR_2,

                        uint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5,

                        int VAR_6)

{

#ifdef KVM_CAP_MCE

    struct kvm_x86_mce mce = {

        .VAR_1 = VAR_1,

        .VAR_2 = VAR_2,

        .VAR_3 = VAR_3,

        .VAR_4 = VAR_4,

        .VAR_5 = VAR_5,

    };



    if (VAR_6 & MCE_BROADCAST) {

        kvm_mce_broadcast_rest(VAR_0);

    }



    kvm_inject_x86_mce_on(VAR_0, &mce, VAR_6);

#else 

    if (VAR_6 & ABORT_ON_ERROR) {

        abort();

    }

#endif 

}

void FUNC_0(CPUState *VAR_0, int VAR_1, uint64_t VAR_2,
uint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5,
int VAR_6)
{ #ifdef KVM_CAP_MCE
struct kvm_x86_mce mce = { .VAR_1 = VAR_1,
.VAR_2 = VAR_2,
.VAR_3 = VAR_3,
.VAR_4 = VAR_4,
.VAR_5 = VAR_5,
}; if (VAR_6 & MCE_BROADCAST) { kvm_mce_broadcast_rest(VAR_0); } kvm_inject_x86_mce_on(VAR_0, &mce, VAR_6); #else
if (VAR_6 & ABORT_ON_ERROR) { abort(); } #endif
}