Home
last modified time | relevance | path

Searched refs:guest_base (Results 1 – 15 of 15) sorted by relevance

/qemu/bsd-user/
H A Dmain.c61 uintptr_t guest_base; variable
401 rv = qemu_strtoul(argv[optind++], NULL, 0, &guest_base); in main()
509 if (guest_base & ~qemu_host_page_mask) { in main()
523 p = mmap((void *)guest_base, reserved_va + 1, PROT_NONE, in main()
535 "address space: %s", sz, (void *)guest_base, err); in main()
542 guest_base = (uintptr_t)p; in main()
567 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
/qemu/include/user/
H A Dguest-base.h14 extern uintptr_t guest_base;
/qemu/include/exec/
H A Dcpu_ldst.h88 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; \
/qemu/linux-user/
H A Dmain.c81 uintptr_t guest_base; variable
375 guest_base = strtol(arg, NULL, 0); in handle_arg_guest_base()
973 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
H A Delfload.c2853 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()
/qemu/tcg/mips/
H A Dtcg-target.c.inc1337 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,
/qemu/tcg/sparc64/
H A Dtcg-target.c.inc965 if (guest_base != 0) {
967 guest_base, true, TCG_REG_T1);
1149 h->base = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_G0;
/qemu/tcg/i386/
H A Dtcg-target.c.inc2058 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);
/qemu/tcg/riscv/
H A Dtcg-target.c.inc1333 if (guest_base != 0) {
2084 if (!tcg_use_softmmu && guest_base) {
2085 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
/qemu/tcg/loongarch64/
H A Dtcg-target.c.inc1049 h->index = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_ZERO;
2346 if (!tcg_use_softmmu && guest_base) {
2347 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
/qemu/tcg/s390x/
H A Dtcg-target.c.inc1940 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);
/qemu/tcg/arm/
H A Dtcg-target.c.inc1428 .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);
/qemu/tcg/aarch64/
H A Dtcg-target.c.inc39 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);
/qemu/tcg/ppc/
H A Dtcg-target.c.inc2616 h->base = guest_base ? TCG_GUEST_BASE_REG : 0;
2852 if (!tcg_use_softmmu && guest_base) {
2853 tcg_out_movi_int(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base, true);
/qemu/tcg/
H A Dtcg.c183 #define guest_base ({ qemu_build_not_reached(); (uintptr_t)0; }) macro