Lines Matching refs:TARGET_PAGE_MASK
203 #define SUBPAGE_IDX(addr) ((addr) & ~TARGET_PAGE_MASK)
280 page_set_flags(startaddr & TARGET_PAGE_MASK, in page_init()
321 page_set_flags(addr & TARGET_PAGE_MASK, in page_find_alloc()
682 address &= TARGET_PAGE_MASK; in tb_invalidate_check()
791 phys_pc = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK); in tb_phys_invalidate()
888 tb_start = tb->pc & ~TARGET_PAGE_MASK; in build_page_bitmap()
894 tb_end = ((tb->pc + tb->size) & ~TARGET_PAGE_MASK); in build_page_bitmap()
933 virt_page2 = (pc + tb->size - 1) & TARGET_PAGE_MASK; in tb_gen_code()
935 if ((pc & TARGET_PAGE_MASK) != virt_page2) { in tb_gen_code()
985 tb_start = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK); in tb_invalidate_phys_page_range()
989 tb_end = tb_start + ((tb->pc + tb->size) & ~TARGET_PAGE_MASK); in tb_invalidate_phys_page_range()
1069 offset = start & ~TARGET_PAGE_MASK; in tb_invalidate_phys_page_fast()
1095 addr &= TARGET_PAGE_MASK; in tb_invalidate_phys_page()
1243 tb_alloc_page(tb, 0, phys_pc & TARGET_PAGE_MASK); in tb_link_phys()
1358 ram_addr = (pd & TARGET_PAGE_MASK) | (pc & ~TARGET_PAGE_MASK); in breakpoint_invalidate()
1821 (TARGET_PAGE_MASK | TLB_INVALID_MASK)) || in tlb_flush_entry()
1823 (TARGET_PAGE_MASK | TLB_INVALID_MASK)) || in tlb_flush_entry()
1825 (TARGET_PAGE_MASK | TLB_INVALID_MASK))) { in tlb_flush_entry()
1844 addr &= TARGET_PAGE_MASK; in tlb_flush_page()
1873 if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == IO_MEM_RAM) { in tlb_reset_dirty_range()
1874 addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend; in tlb_reset_dirty_range()
1876 tlb_entry->addr_write = (tlb_entry->addr_write & TARGET_PAGE_MASK) | TLB_NOTDIRTY; in tlb_reset_dirty_range()
1889 start &= TARGET_PAGE_MASK; in cpu_physical_memory_reset_dirty()
1946 if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == IO_MEM_RAM) { in tlb_update_dirty()
1947 p = (void *)(unsigned long)((tlb_entry->addr_write & TARGET_PAGE_MASK) in tlb_update_dirty()
1980 vaddr &= TARGET_PAGE_MASK; in tlb_set_dirty()
2018 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && !(pd & IO_MEM_ROMD)) { in tlb_set_page_exec()
2022 addend = (ptrdiff_t)qemu_get_ram_ptr(pd & TARGET_PAGE_MASK); in tlb_set_page_exec()
2023 if ((pd & ~TARGET_PAGE_MASK) <= IO_MEM_ROM) { in tlb_set_page_exec()
2025 iotlb = pd & TARGET_PAGE_MASK; in tlb_set_page_exec()
2026 if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM) in tlb_set_page_exec()
2037 iotlb = (pd & ~TARGET_PAGE_MASK); in tlb_set_page_exec()
2049 if (vaddr == (wp->vaddr & TARGET_PAGE_MASK)) { in tlb_set_page_exec()
2073 if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_ROM || in tlb_set_page_exec()
2077 } else if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM && in tlb_set_page_exec()
2105 (pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM && in tlb_set_page_exec()
2107 memcheck_is_checked(vaddr & TARGET_PAGE_MASK, TARGET_PAGE_SIZE)) { in tlb_set_page_exec()
2109 te->addr_read ^= TARGET_PAGE_MASK; in tlb_set_page_exec()
2112 te->addr_write ^= TARGET_PAGE_MASK; in tlb_set_page_exec()
2222 start = start & TARGET_PAGE_MASK; in page_set_flags()
2254 start = start & TARGET_PAGE_MASK; in page_check_range()
2347 start_addr2 = start_addr & ~TARGET_PAGE_MASK; \
2355 end_addr2 = (start_addr + orig_size - 1) & ~TARGET_PAGE_MASK; \
2391 region_offset &= TARGET_PAGE_MASK; in cpu_register_physical_memory_log()
2392 size = (size + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK; in cpu_register_physical_memory_log()
2407 subpage = subpage_init((addr & TARGET_PAGE_MASK), in cpu_register_physical_memory_log()
2411 subpage = io_mem_opaque[(orig_memory & ~TARGET_PAGE_MASK) in cpu_register_physical_memory_log()
2419 if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM || in cpu_register_physical_memory_log()
2427 if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM || in cpu_register_physical_memory_log()
2438 subpage = subpage_init((addr & TARGET_PAGE_MASK), in cpu_register_physical_memory_log()
2440 addr & TARGET_PAGE_MASK); in cpu_register_physical_memory_log()
2953 vaddr = (env->mem_io_vaddr & TARGET_PAGE_MASK) + offset; in check_watchpoint()
2986 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x0, BP_MEM_READ); in watch_mem_readb()
2992 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x1, BP_MEM_READ); in watch_mem_readw()
2998 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x3, BP_MEM_READ); in watch_mem_readl()
3005 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x0, BP_MEM_WRITE); in watch_mem_writeb()
3012 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x1, BP_MEM_WRITE); in watch_mem_writew()
3019 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x3, BP_MEM_WRITE); in watch_mem_writel()
3280 page = addr & TARGET_PAGE_MASK; in cpu_physical_memory_rw()
3324 page = addr & TARGET_PAGE_MASK; in cpu_physical_memory_rw()
3336 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { in cpu_physical_memory_rw()
3340 addr1 = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in cpu_physical_memory_rw()
3361 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK); in cpu_physical_memory_rw()
3374 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && in cpu_physical_memory_rw()
3380 addr1 = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in cpu_physical_memory_rw()
3399 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) + in cpu_physical_memory_rw()
3400 (addr & ~TARGET_PAGE_MASK); in cpu_physical_memory_rw()
3421 page = addr & TARGET_PAGE_MASK; in cpu_physical_memory_write_rom()
3432 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM && in cpu_physical_memory_write_rom()
3433 (pd & ~TARGET_PAGE_MASK) != IO_MEM_ROM && in cpu_physical_memory_write_rom()
3438 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK); in cpu_physical_memory_write_rom()
3517 page = addr & TARGET_PAGE_MASK; in cpu_physical_memory_map()
3528 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { in cpu_physical_memory_map()
3540 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK); in cpu_physical_memory_map()
3609 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && in ldl_phys()
3614 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in ldl_phys()
3618 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) + in ldl_phys()
3619 (addr & ~TARGET_PAGE_MASK); in ldl_phys()
3641 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && in ldq_phys()
3646 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in ldq_phys()
3656 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) + in ldq_phys()
3657 (addr & ~TARGET_PAGE_MASK); in ldq_phys()
3696 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { in stl_phys_notdirty()
3699 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in stl_phys_notdirty()
3702 unsigned long addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK); in stl_phys_notdirty()
3732 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { in stq_phys_notdirty()
3735 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in stq_phys_notdirty()
3744 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) + in stq_phys_notdirty()
3745 (addr & ~TARGET_PAGE_MASK); in stq_phys_notdirty()
3765 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) { in stl_phys()
3768 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset; in stl_phys()
3772 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK); in stl_phys()
3818 page = addr & TARGET_PAGE_MASK; in cpu_memory_rw_debug()
3826 phys_addr += (addr & ~TARGET_PAGE_MASK); in cpu_memory_rw_debug()