void helper_ldqf(CPUSPARCState *env, target_ulong addr, int mem_idx)

{

    /* XXX add 128 bit load */

    CPU_QuadU u;



    helper_check_align(env, addr, 7);

#if !defined(CONFIG_USER_ONLY)

    switch (mem_idx) {

    case MMU_USER_IDX:

        u.ll.upper = cpu_ldq_user(env, addr);

        u.ll.lower = cpu_ldq_user(env, addr + 8);

        QT0 = u.q;

        break;

    case MMU_KERNEL_IDX:

        u.ll.upper = cpu_ldq_kernel(env, addr);

        u.ll.lower = cpu_ldq_kernel(env, addr + 8);

        QT0 = u.q;

        break;

#ifdef TARGET_SPARC64

    case MMU_HYPV_IDX:

        u.ll.upper = cpu_ldq_hypv(env, addr);

        u.ll.lower = cpu_ldq_hypv(env, addr + 8);

        QT0 = u.q;

        break;

#endif

    default:

        DPRINTF_MMU("helper_ldqf: need to check MMU idx %d\n", mem_idx);

        break;

    }

#else

    u.ll.upper = ldq_raw(address_mask(env, addr));

    u.ll.lower = ldq_raw(address_mask(env, addr + 8));

    QT0 = u.q;

#endif

}

void helper_ldqf(CPUSPARCState *env, target_ulong addr, int mem_idx)

{

    

    CPU_QuadU u;



    helper_check_align(env, addr, 7);

#if !defined(CONFIG_USER_ONLY)

    switch (mem_idx) {

    case MMU_USER_IDX:

        u.ll.upper = cpu_ldq_user(env, addr);

        u.ll.lower = cpu_ldq_user(env, addr + 8);

        QT0 = u.q;

        break;

    case MMU_KERNEL_IDX:

        u.ll.upper = cpu_ldq_kernel(env, addr);

        u.ll.lower = cpu_ldq_kernel(env, addr + 8);

        QT0 = u.q;

        break;

#ifdef TARGET_SPARC64

    case MMU_HYPV_IDX:

        u.ll.upper = cpu_ldq_hypv(env, addr);

        u.ll.lower = cpu_ldq_hypv(env, addr + 8);

        QT0 = u.q;

        break;

#endif

    default:

        DPRINTF_MMU("helper_ldqf: need to check MMU idx %d\n", mem_idx);

        break;

    }

#else

    u.ll.upper = ldq_raw(address_mask(env, addr));

    u.ll.lower = ldq_raw(address_mask(env, addr + 8));

    QT0 = u.q;

#endif

}

    u.ll.upper = ldq_raw(address_mask(env, addr));     u.ll.lower = ldq_raw(address_mask(env, addr + 8));
void FUNC_0(CPUSPARCState *VAR_0, target_ulong VAR_1, int VAR_2)

{

    

    CPU_QuadU u;



    helper_check_align(VAR_0, VAR_1, 7);

#if !defined(CONFIG_USER_ONLY)

    switch (VAR_2) {

    case MMU_USER_IDX:

        u.ll.upper = cpu_ldq_user(VAR_0, VAR_1);

        u.ll.lower = cpu_ldq_user(VAR_0, VAR_1 + 8);

        QT0 = u.q;

        break;

    case MMU_KERNEL_IDX:

        u.ll.upper = cpu_ldq_kernel(VAR_0, VAR_1);

        u.ll.lower = cpu_ldq_kernel(VAR_0, VAR_1 + 8);

        QT0 = u.q;

        break;

#ifdef TARGET_SPARC64

    case MMU_HYPV_IDX:

        u.ll.upper = cpu_ldq_hypv(VAR_0, VAR_1);

        u.ll.lower = cpu_ldq_hypv(VAR_0, VAR_1 + 8);

        QT0 = u.q;

        break;

#endif

    default:

        DPRINTF_MMU("FUNC_0: need to check MMU idx %d\n", VAR_2);

        break;

    }

#else

    u.ll.upper = ldq_raw(address_mask(VAR_0, VAR_1));

    u.ll.lower = ldq_raw(address_mask(VAR_0, VAR_1 + 8));

    QT0 = u.q;

#endif

}

void FUNC_0(CPUSPARCState *VAR_0, target_ulong VAR_1, int VAR_2)
{ CPU_QuadU u; helper_check_align(VAR_0, VAR_1, 7); #if !defined(CONFIG_USER_ONLY)
switch (VAR_2) { case MMU_USER_IDX:
u.ll.upper = cpu_ldq_user(VAR_0, VAR_1); u.ll.lower = cpu_ldq_user(VAR_0, VAR_1 + 8); QT0 = u.q; break; case MMU_KERNEL_IDX:
u.ll.upper = cpu_ldq_kernel(VAR_0, VAR_1); u.ll.lower = cpu_ldq_kernel(VAR_0, VAR_1 + 8); QT0 = u.q; break; #ifdef TARGET_SPARC64
case MMU_HYPV_IDX:
u.ll.upper = cpu_ldq_hypv(VAR_0, VAR_1); u.ll.lower = cpu_ldq_hypv(VAR_0, VAR_1 + 8); QT0 = u.q; break; #endif
default:
DPRINTF_MMU("FUNC_0: need to check MMU idx %d\n", VAR_2); break; } #else
u.ll.upper = ldq_raw(address_mask(VAR_0, VAR_1)); u.ll.lower = ldq_raw(address_mask(VAR_0, VAR_1 + 8)); QT0 = u.q; #endif
}