Lines Matching refs:ram_addr
402 static void tlb_protect_code(ram_addr_t ram_addr);
403 static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr,
1339 ram_addr_t ram_addr; in breakpoint_invalidate() local
1349 ram_addr = (pd & TARGET_PAGE_MASK) | (pc & ~TARGET_PAGE_MASK); in breakpoint_invalidate()
1350 tb_invalidate_phys_page_range(ram_addr, ram_addr + 1, 0); in breakpoint_invalidate()
1836 static void tlb_protect_code(ram_addr_t ram_addr) in tlb_protect_code() argument
1838 cpu_physical_memory_reset_dirty(ram_addr, in tlb_protect_code()
1839 ram_addr + TARGET_PAGE_SIZE, in tlb_protect_code()
1845 static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, in tlb_unprotect_code_phys() argument
1848 phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] |= CODE_DIRTY_FLAG; in tlb_unprotect_code_phys()
1930 ram_addr_t ram_addr; in tlb_update_dirty() local
1936 ram_addr = qemu_ram_addr_from_host(p); in tlb_update_dirty()
1937 if (!cpu_physical_memory_is_dirty(ram_addr)) { in tlb_update_dirty()
2640 static void notdirty_mem_writeb(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writeb() argument
2644 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writeb()
2647 tb_invalidate_phys_page_fast(ram_addr, 1); in notdirty_mem_writeb()
2648 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writeb()
2651 stb_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writeb()
2653 phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] = dirty_flags; in notdirty_mem_writeb()
2660 static void notdirty_mem_writew(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writew() argument
2664 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writew()
2667 tb_invalidate_phys_page_fast(ram_addr, 2); in notdirty_mem_writew()
2668 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writew()
2671 stw_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writew()
2673 phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] = dirty_flags; in notdirty_mem_writew()
2680 static void notdirty_mem_writel(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writel() argument
2684 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writel()
2687 tb_invalidate_phys_page_fast(ram_addr, 4); in notdirty_mem_writel()
2688 dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; in notdirty_mem_writel()
2691 stl_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writel()
2693 phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS] = dirty_flags; in notdirty_mem_writel()