static inline int lock_hpte(void *hpte, target_ulong bits)

{

    uint64_t pteh;



    pteh = ldq_p(hpte);



    /* We're protected by qemu's global lock here */

    if (pteh & bits) {

        return 0;

    }

    stq_p(hpte, pteh | HPTE_V_HVLOCK);

    return 1;

}

static inline int lock_hpte(void *hpte, target_ulong bits)

{

    uint64_t pteh;



    pteh = ldq_p(hpte);



    

    if (pteh & bits) {

        return 0;

    }

    stq_p(hpte, pteh | HPTE_V_HVLOCK);

    return 1;

}

static inline int lock_hpte(void *hpte, target_ulong bits)     uint64_t pteh;     pteh = ldq_p(hpte);     if (pteh & bits) {         return 0;     stq_p(hpte, pteh | HPTE_V_HVLOCK);     return 1;
static inline int FUNC_0(void *VAR_0, target_ulong VAR_1)

{

    uint64_t pteh;



    pteh = ldq_p(VAR_0);



    

    if (pteh & VAR_1) {

        return 0;

    }

    stq_p(VAR_0, pteh | HPTE_V_HVLOCK);

    return 1;

}

static inline int FUNC_0(void *VAR_0, target_ulong VAR_1)
{ uint64_t pteh; pteh = ldq_p(VAR_0); if (pteh & VAR_1) { return 0; } stq_p(VAR_0, pteh | HPTE_V_HVLOCK); return 1; }