Revision 6c36d3fa target-sparc/translate.c

b/target-sparc/translate.c
3494 3494
    if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 2, 0) != 0)
3495 3495
        if (get_physical_address(env, &phys_addr, &prot, &access_index, addr, 0, 0) != 0)
3496 3496
            return -1;
3497
    if (cpu_get_physical_page_desc(phys_addr) == IO_MEM_UNASSIGNED)
3498
        return -1;
3497 3499
    return phys_addr;
3498 3500
}
3499 3501
#endif

Also available in: Unified diff