Lines Matching refs:ram_addr
392 static void tlb_protect_code(ram_addr_t ram_addr);
393 static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr,
1348 ram_addr_t ram_addr; in breakpoint_invalidate() local
1358 ram_addr = (pd & TARGET_PAGE_MASK) | (pc & ~TARGET_PAGE_MASK); in breakpoint_invalidate()
1359 tb_invalidate_phys_page_range(ram_addr, ram_addr + 1, 0); in breakpoint_invalidate()
1854 static void tlb_protect_code(ram_addr_t ram_addr) in tlb_protect_code() argument
1856 cpu_physical_memory_reset_dirty(ram_addr, in tlb_protect_code()
1857 ram_addr + TARGET_PAGE_SIZE, in tlb_protect_code()
1863 static void tlb_unprotect_code_phys(CPUState *env, ram_addr_t ram_addr, in tlb_unprotect_code_phys() argument
1866 cpu_physical_memory_set_dirty_flags(ram_addr, CODE_DIRTY_FLAG); in tlb_unprotect_code_phys()
1943 ram_addr_t ram_addr; in tlb_update_dirty() local
1949 ram_addr = qemu_ram_addr_from_host_nofail(p); in tlb_update_dirty()
1950 if (!cpu_physical_memory_is_dirty(ram_addr)) { in tlb_update_dirty()
2762 int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr) in qemu_ram_addr_from_host() argument
2769 *ram_addr = block->offset + (host - block->host); in qemu_ram_addr_from_host()
2780 ram_addr_t ram_addr; in qemu_ram_addr_from_host_nofail() local
2782 if (qemu_ram_addr_from_host(ptr, &ram_addr)) { in qemu_ram_addr_from_host_nofail()
2786 return ram_addr; in qemu_ram_addr_from_host_nofail()
2864 static void notdirty_mem_writeb(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writeb() argument
2868 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writeb()
2871 tb_invalidate_phys_page_fast(ram_addr, 1); in notdirty_mem_writeb()
2872 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writeb()
2875 stb_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writeb()
2877 cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags); in notdirty_mem_writeb()
2884 static void notdirty_mem_writew(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writew() argument
2888 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writew()
2891 tb_invalidate_phys_page_fast(ram_addr, 2); in notdirty_mem_writew()
2892 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writew()
2895 stw_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writew()
2897 cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags); in notdirty_mem_writew()
2904 static void notdirty_mem_writel(void *opaque, target_phys_addr_t ram_addr, in notdirty_mem_writel() argument
2908 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writel()
2911 tb_invalidate_phys_page_fast(ram_addr, 4); in notdirty_mem_writel()
2912 dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr); in notdirty_mem_writel()
2915 stl_p(qemu_get_ram_ptr(ram_addr), val); in notdirty_mem_writel()
2917 cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags); in notdirty_mem_writel()