/openbmc/qemu/bsd-user/ |
H A D | mmap.c | 99 ret = mprotect(g2h_untagged(host_start), in target_mprotect() 110 ret = mprotect(g2h_untagged(host_end - qemu_host_page_size), in target_mprotect() 119 ret = mprotect(g2h_untagged(host_start), host_end - host_start, prot); in target_mprotect() 195 host_start = g2h_untagged(real_start); in mmap_frag() 227 if (!mmap_pread(fd, g2h_untagged(start), end - start, offset, true)) { in mmap_frag() 239 memset(g2h_untagged(start), 0, end - start); in mmap_frag() 316 ptr = mmap(g2h_untagged(addr), size, PROT_NONE, in mmap_find_vma_aligned() 548 p = mmap(g2h_untagged(start), host_len, prot, in target_mmap() 555 p = mmap(g2h_untagged(start), len, prot, in target_mmap() 558 munmap(g2h_untagged(start), host_len); in target_mmap() [all …]
|
H A D | bsd-mem.h | 100 return get_errno(msync(g2h_untagged(addr), len, flags)); in do_bsd_msync() 109 return get_errno(mlock(g2h_untagged(arg1), arg2)); in do_bsd_mlock() 118 return get_errno(munlock(g2h_untagged(arg1), arg2)); in do_bsd_munlock() 175 ret = get_errno(madvise(g2h_untagged(start), len, advice)); in do_bsd_madvise() 190 return get_errno(minherit(g2h_untagged(addr), len, inherit)); in do_bsd_minherit() 210 ret = get_errno(mincore(g2h_untagged(target_addr), len, p)); in do_bsd_mincore() 370 host_raddr = shmat(shmid, (void *)g2h_untagged(shmaddr), shmflg); in do_bsd_shmat() 379 host_raddr = shmat(shmid, g2h_untagged(mmap_start), in do_bsd_shmat() 422 ret = get_errno(shmdt(g2h_untagged(shmaddr))); in do_bsd_shmdt()
|
H A D | qemu.h | 443 memcpy(addr, g2h_untagged(guest_addr), len); in lock_user() 450 return g2h_untagged(guest_addr); in lock_user() 466 if (host_ptr == g2h_untagged(guest_addr)) { in unlock_user() 470 memcpy(g2h_untagged(guest_addr), host_ptr, len); in unlock_user()
|
H A D | elfload.c | 254 mmap((void *)g2h_untagged(end_addr1), end_addr - end_addr1, in padzero()
|
H A D | bsd-file.h | 565 ret = get_errno(mount(p1, p2, arg3, g2h_untagged(arg4))); /* XXX path(p2)? */ in do_bsd_mount()
|
/openbmc/qemu/linux-user/ |
H A D | mmap.c | 256 ret = mprotect(g2h_untagged(starts[i]), lens[i], in target_mprotect() 351 host_start = g2h_untagged(real_start); in mmap_frag() 393 memset(g2h_untagged(start), 0, last - start + 1); in mmap_frag() 394 } else if (!mmap_pread(fd, g2h_untagged(start), last - start + 1, in mmap_frag() 468 ptr = mmap(g2h_untagged(addr), size, PROT_NONE, in mmap_find_vma() 600 want_p = g2h_untagged(start); in mmap_h_eq_g() 656 want_p = g2h_untagged(start); in mmap_h_lt_g() 791 want_p = g2h_untagged(start); in mmap_h_gt_g() 1069 host_start = g2h_untagged(real_start); in mmap_reserve_or_unmap() 1120 host_addr = mremap(g2h_untagged(old_addr), old_size, new_size, in target_mremap() [all …]
|
H A D | uaccess.c | 16 host_addr = g2h_untagged(guest_addr); in lock_user()
|
H A D | main.c | 250 memcpy(g2h_untagged(new_env->gdt.base), g2h_untagged(env->gdt.base), in cpu_copy()
|
H A D | elfload.c | 480 want = g2h_untagged(commpage); in init_guest_commpage() 495 __put_user(5, (uint32_t *)g2h_untagged(0xffff0ffcu)); in init_guest_commpage() 1913 want = g2h_untagged(LO_COMMPAGE); in init_guest_commpage() 2414 memset(g2h_untagged(start_bss), 0, align_bss - start_bss); in zero_bss() 3575 abi_ulong *addr = g2h_untagged(load_addr + vdso->relocs[i]); in load_elf_vdso() 4060 memcmp(g2h_untagged(start), ELFMAG, SELFMAG) == 0) { in vma_dump_size() 4170 memcpy(&psinfo.pr_psargs, g2h_untagged(ts->info->arg_strings), len); in fill_prpsinfo_note() 4191 memcpy(data, g2h_untagged(ts->info->saved_auxv), ts->info->auxv_len); in fill_auxv_note() 4308 return dump_write(fd, g2h_untagged(start), size); in wmr_write_region()
|
H A D | flatload.c | 452 memset(g2h_untagged(datapos + data_len), 0, bss_len); in load_flat_file()
|
H A D | syscall.c | 6039 memset(g2h_untagged(env->ldt.base), 0, in write_ldt() 6042 ldt_table = g2h_untagged(env->ldt.base); in write_ldt() 6110 uint64_t *gdt_table = g2h_untagged(env->gdt.base); in do_set_thread_area() 6196 uint64_t *gdt_table = g2h_untagged(env->gdt.base); in do_get_thread_area() 8049 uintptr_t hstart = (uintptr_t)g2h_untagged(start); in open_self_maps_4() 8129 uintptr_t host_start = (uintptr_t)g2h_untagged(guest_start); in open_self_maps_2() 8130 uintptr_t host_last = (uintptr_t)g2h_untagged(guest_end - 1); in open_self_maps_2()
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 687 mprotect(g2h_untagged(start), last - start + 1, in page_protect() 771 mprotect((void *)g2h_untagged(start), len, prot & PAGE_RWX); in page_unprotect() 854 *hostp = g2h_untagged(addr); in get_page_addr_code_hostp() 1138 ret = ldub_p(g2h_untagged(ptr)); in cpu_ldub_code() 1148 ret = lduw_p(g2h_untagged(ptr)); in cpu_lduw_code() 1158 ret = ldl_p(g2h_untagged(ptr)); in cpu_ldl_code() 1168 ret = ldq_p(g2h_untagged(ptr)); in cpu_ldq_code()
|
/openbmc/qemu/bsd-user/i386/ |
H A D | target_arch_cpu.c | 68 idt_table = g2h_untagged(base); in bsd_i386_set_idt_base()
|
H A D | target_arch_cpu.h | 85 gdt_table = g2h_untagged(env->gdt.base); in target_cpu_init()
|
/openbmc/qemu/bsd-user/x86_64/ |
H A D | target_arch_cpu.c | 69 idt_table = g2h_untagged(base); in bsd_x86_64_set_idt_base()
|
H A D | target_arch_cpu.h | 94 gdt_table = g2h_untagged(env->gdt.base); in target_cpu_init()
|
/openbmc/qemu/ |
H A D | cpu-target.c | 425 (off_t)(uintptr_t)g2h_untagged(addr)); in cpu_memory_rw_debug() 448 (off_t)(uintptr_t)g2h_untagged(addr)) != l) { in cpu_memory_rw_debug()
|
/openbmc/qemu/linux-user/i386/ |
H A D | cpu_loop.c | 396 idt_table = g2h_untagged(env->idt.base); in target_cpu_copy_regs() 411 gdt_table = g2h_untagged(env->gdt.base); in target_cpu_copy_regs()
|
/openbmc/qemu/include/exec/ |
H A D | cpu_ldst.h | 86 static inline void *g2h_untagged(abi_ptr x) in g2h_untagged() function 93 return g2h_untagged(cpu_untagged_addr(cs, x)); in g2h()
|