/openbmc/qemu/bsd-user/ |
H A D | main.c | 64 uintptr_t guest_base; variable 381 rv = qemu_strtoul(argv[optind++], NULL, 0, &guest_base); in main() 529 if (guest_base & ~qemu_host_page_mask) { in main() 543 p = mmap((void *)guest_base, reserved_va + 1, PROT_NONE, in main() 555 "address space: %s", sz, (void *)guest_base, err); in main() 562 guest_base = (uintptr_t)p; in main() 587 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
|
/openbmc/qemu/include/user/ |
H A D | guest-base.h | 14 extern uintptr_t guest_base;
|
/openbmc/qemu/include/exec/ |
H A D | cpu_ldst.h | 88 return (void *)((uintptr_t)(x) + guest_base); in g2h_untagged() 108 (uintptr_t)(x) - guest_base <= GUEST_ADDR_MAX) 111 uintptr_t __ret = (uintptr_t)(x) - guest_base; \
|
/openbmc/qemu/linux-user/ |
H A D | main.c | 81 uintptr_t guest_base; variable 375 guest_base = strtol(arg, NULL, 0); in handle_arg_guest_base() 985 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
|
H A D | elfload.c | 2855 if (!QEMU_IS_ALIGNED(guest_base, align)) { in pgb_fixed() 2858 (void *)guest_base, align); in pgb_fixed() 2862 if (!pgb_addr_set(&ga, guest_loaddr, guest_hiaddr, !guest_base) in pgb_fixed() 2863 || !pgb_try_mmap_set(&ga, guest_base, brk)) { in pgb_fixed() 2958 guest_base = 0; in pgb_dynamic() 3003 guest_base = ret; in pgb_dynamic() 3041 assert(QEMU_IS_ALIGNED(guest_base, align)); in probe_guest_base() 3043 "@ 0x%" PRIx64 "\n", (uint64_t)guest_base); in probe_guest_base()
|
/openbmc/qemu/tcg/mips/ |
H A D | tcg-target.c.inc | 1337 if (guest_base) { 1338 if (guest_base == (int16_t)guest_base) { 1339 tcg_out_opc_imm(s, ALIAS_PADDI, TCG_REG_A0, base, guest_base); 2296 TCG_REG_S7, /* used for guest_base */ 2417 if (!tcg_use_softmmu && guest_base != (int16_t)guest_base) { 2426 tcg_out_movi_int(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base,
|
/openbmc/qemu/tcg/sparc64/ |
H A D | tcg-target.c.inc | 965 if (guest_base != 0) { 967 guest_base, true, TCG_REG_T1); 1149 h->base = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_G0;
|
/openbmc/qemu/tcg/i386/ |
H A D | tcg-target.c.inc | 2106 if (arch_prctl(ARCH_SET_GS, guest_base) == 0) { 2117 if (sysarch(AMD64_SET_GSBASE, &guest_base) == 0) { 4361 if (!tcg_use_softmmu && guest_base) { 4365 } else if (guest_base == (int32_t)guest_base) { 4366 x86_guest_base.ofs = guest_base; 4371 tcg_out_movi(s, TCG_TYPE_PTR, x86_guest_base.index, guest_base);
|
/openbmc/qemu/tcg/loongarch64/ |
H A D | tcg-target.c.inc | 1064 h->index = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_ZERO; 2430 if (!tcg_use_softmmu && guest_base) { 2431 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
|
/openbmc/qemu/tcg/s390x/ |
H A D | tcg-target.c.inc | 1953 if (guest_base < 0x80000) { 1955 h->disp = guest_base; 3568 if (!tcg_use_softmmu && guest_base >= 0x80000) { 3569 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
|
/openbmc/qemu/tcg/riscv/ |
H A D | tcg-target.c.inc | 1798 if (guest_base != 0) { 2810 if (!tcg_use_softmmu && guest_base) { 2811 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
|
/openbmc/qemu/tcg/arm/ |
H A D | tcg-target.c.inc | 1428 .index = guest_base ? TCG_REG_GUEST_BASE : -1, 2977 if (!tcg_use_softmmu && guest_base) { 2978 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_GUEST_BASE, guest_base);
|
/openbmc/qemu/tcg/aarch64/ |
H A D | tcg-target.c.inc | 39 TCG_REG_X28, /* we will reserve this for guest_base if configured */ 1839 if (guest_base || addr_type == TCG_TYPE_I32) { 3242 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_GUEST_BASE, guest_base);
|
/openbmc/qemu/tcg/ppc/ |
H A D | tcg-target.c.inc | 2617 h->base = guest_base ? TCG_GUEST_BASE_REG : 0; 2853 if (!tcg_use_softmmu && guest_base) { 2854 tcg_out_movi_int(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base, true);
|
/openbmc/qemu/tcg/ |
H A D | tcg.c | 183 #define guest_base ({ qemu_build_not_reached(); (uintptr_t)0; }) macro
|