Home | History | Annotate | Download | only in qemu

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