Home | History | Annotate | Download | only in qemu

Lines Matching refs:TARGET_PAGE_MASK

203 #define SUBPAGE_IDX(addr) ((addr) & ~TARGET_PAGE_MASK)
280 page_set_flags(startaddr & TARGET_PAGE_MASK,
321 page_set_flags(addr & TARGET_PAGE_MASK,
682 address &= TARGET_PAGE_MASK;
791 phys_pc = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK);
888 tb_start = tb->pc & ~TARGET_PAGE_MASK;
894 tb_end = ((tb->pc + tb->size) & ~TARGET_PAGE_MASK);
933 virt_page2 = (pc + tb->size - 1) & TARGET_PAGE_MASK;
935 if ((pc & TARGET_PAGE_MASK) != virt_page2) {
985 tb_start = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK);
989 tb_end = tb_start + ((tb->pc + tb->size) & ~TARGET_PAGE_MASK);
1069 offset = start & ~TARGET_PAGE_MASK;
1095 addr &= TARGET_PAGE_MASK;
1243 tb_alloc_page(tb, 0, phys_pc & TARGET_PAGE_MASK);
1358 ram_addr = (pd & TARGET_PAGE_MASK) | (pc & ~TARGET_PAGE_MASK);
1821 (TARGET_PAGE_MASK | TLB_INVALID_MASK)) ||
1823 (TARGET_PAGE_MASK | TLB_INVALID_MASK)) ||
1825 (TARGET_PAGE_MASK | TLB_INVALID_MASK))) {
1844 addr &= TARGET_PAGE_MASK;
1873 if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == IO_MEM_RAM) {
1874 addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tlb_entry->addend;
1876 tlb_entry->addr_write = (tlb_entry->addr_write & TARGET_PAGE_MASK) | TLB_NOTDIRTY;
1889 start &= TARGET_PAGE_MASK;
1946 if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == IO_MEM_RAM) {
1947 p = (void *)(unsigned long)((tlb_entry->addr_write & TARGET_PAGE_MASK)
1980 vaddr &= TARGET_PAGE_MASK;
2018 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && !(pd & IO_MEM_ROMD)) {
2022 addend = (ptrdiff_t)qemu_get_ram_ptr(pd & TARGET_PAGE_MASK);
2023 if ((pd & ~TARGET_PAGE_MASK) <= IO_MEM_ROM) {
2025 iotlb = pd & TARGET_PAGE_MASK;
2026 if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM)
2037 iotlb = (pd & ~TARGET_PAGE_MASK);
2049 if (vaddr == (wp->vaddr & TARGET_PAGE_MASK)) {
2073 if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_ROM ||
2077 } else if ((pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM &&
2105 (pd & ~TARGET_PAGE_MASK) == IO_MEM_RAM &&
2107 memcheck_is_checked(vaddr & TARGET_PAGE_MASK, TARGET_PAGE_SIZE)) {
2109 te->addr_read ^= TARGET_PAGE_MASK;
2112 te->addr_write ^= TARGET_PAGE_MASK;
2222 TARGET_PAGE_MASK;
2254 start = start & TARGET_PAGE_MASK;
2347 start_addr2 = start_addr & ~TARGET_PAGE_MASK; \
2355 end_addr2 = (start_addr + orig_size - 1) & ~TARGET_PAGE_MASK; \
2363 If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an
2391 region_offset &= TARGET_PAGE_MASK;
2392 size = (size + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK;
2407 subpage = subpage_init((addr & TARGET_PAGE_MASK),
2411 subpage = io_mem_opaque[(orig_memory & ~TARGET_PAGE_MASK)
2419 if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM ||
2427 if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM ||
2438 subpage = subpage_init((addr & TARGET_PAGE_MASK),
2440 addr & TARGET_PAGE_MASK);
2953 vaddr = (env->mem_io_vaddr & TARGET_PAGE_MASK) + offset;
2986 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x0, BP_MEM_READ);
2992 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x1, BP_MEM_READ);
2998 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x3, BP_MEM_READ);
3005 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x0, BP_MEM_WRITE);
3012 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x1, BP_MEM_WRITE);
3019 check_watchpoint(addr & ~TARGET_PAGE_MASK, ~0x3, BP_MEM_WRITE);
3280 page = addr & TARGET_PAGE_MASK;
3336 page = addr & TARGET_PAGE_MASK;
3348 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
3352 addr1 = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3373 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
3380 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM &&
3386 addr1 = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3405 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) +
3406 (addr & ~TARGET_PAGE_MASK);
3427 page = addr & TARGET_PAGE_MASK;
3438 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM &&
3439 (pd & ~TARGET_PAGE_MASK) != IO_MEM_ROM &&
3444 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
3524 page = addr & TARGET_PAGE_MASK;
3535 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
3547 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
3610 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM &&
3615 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3619 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) +
3620 (addr & ~TARGET_PAGE_MASK);
3642 if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM &&
3647 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3657 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) +
3658 (addr & ~TARGET_PAGE_MASK);
3697 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
3700 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3703 unsigned long addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
3733 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
3736 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3745 ptr = qemu_get_ram_ptr(pd & TARGET_PAGE_MASK) +
3746 (addr & ~TARGET_PAGE_MASK);
3766 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
3769 addr = (addr & ~TARGET_PAGE_MASK) + p->region_offset;
3773 addr1 = (pd & TARGET_PAGE_MASK) + (addr & ~TARGET_PAGE_MASK);
3813 page = addr & TARGET_PAGE_MASK;
3821 phys_addr += (addr & ~TARGET_PAGE_MASK);