/openbmc/qemu/bsd-user/ |
H A D | main.c | 63 uintptr_t guest_base; variable 379 rv = qemu_strtoul(argv[optind++], NULL, 0, &guest_base); in main() 520 if (guest_base & ~qemu_host_page_mask) { in main() 534 p = mmap((void *)guest_base, reserved_va + 1, PROT_NONE, in main() 546 "address space: %s", sz, (void *)guest_base, err); in main() 553 guest_base = (uintptr_t)p; in main() 578 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() 975 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
|
H A D | elfload.c | 2853 if (!QEMU_IS_ALIGNED(guest_base, align)) { in pgb_fixed() 2856 (void *)guest_base, align); in pgb_fixed() 2860 if (!pgb_addr_set(&ga, guest_loaddr, guest_hiaddr, !guest_base) in pgb_fixed() 2861 || !pgb_try_mmap_set(&ga, guest_base, brk)) { in pgb_fixed() 2956 guest_base = 0; in pgb_dynamic() 3001 guest_base = ret; in pgb_dynamic() 3039 assert(QEMU_IS_ALIGNED(guest_base, align)); in probe_guest_base() 3041 "@ 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 | 2058 if (arch_prctl(ARCH_SET_GS, guest_base) == 0) { 2069 if (sysarch(AMD64_SET_GSBASE, &guest_base) == 0) { 4225 if (!tcg_use_softmmu && guest_base) { 4229 } else if (guest_base == (int32_t)guest_base) { 4230 x86_guest_base.ofs = guest_base; 4235 tcg_out_movi(s, TCG_TYPE_PTR, x86_guest_base.index, guest_base);
|
/openbmc/qemu/tcg/riscv/ |
H A D | tcg-target.c.inc | 1319 if (guest_base != 0) { 2070 if (!tcg_use_softmmu && guest_base) { 2071 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
|
/openbmc/qemu/tcg/loongarch64/ |
H A D | tcg-target.c.inc | 1065 h->index = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_ZERO; 2431 if (!tcg_use_softmmu && guest_base) { 2432 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
|
/openbmc/qemu/tcg/s390x/ |
H A D | tcg-target.c.inc | 1940 if (guest_base < 0x80000) { 1942 h->disp = guest_base; 3545 if (!tcg_use_softmmu && guest_base >= 0x80000) { 3546 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 | 2615 h->base = guest_base ? TCG_GUEST_BASE_REG : 0; 2851 if (!tcg_use_softmmu && guest_base) { 2852 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
|