Home
last modified time | relevance | path

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

/qemu/include/user/
H A Dguest-host.h44 return (void *)((uintptr_t)(x) + guest_base); in g2h_untagged()
63 ((uintptr_t)(x) - guest_base <= guest_addr_max)
66 uintptr_t __ret = (uintptr_t)(x) - guest_base; \
H A Dguest-base.h14 extern uintptr_t guest_base;
/qemu/bsd-user/
H A Dmain.c64 uintptr_t guest_base; variable
388 rv = qemu_strtoul(argv[optind++], NULL, 0, &guest_base); in main()
549 if (guest_base & ~qemu_host_page_mask) { in main()
563 p = mmap((void *)guest_base, reserved_va + 1, PROT_NONE, in main()
575 "address space: %s", sz, (void *)guest_base, err); in main()
582 guest_base = (uintptr_t)p; in main()
607 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
/qemu/linux-user/
H A Dmain.c82 uintptr_t guest_base; variable
377 guest_base = strtol(arg, NULL, 0); in handle_arg_guest_base()
1005 fprintf(f, "guest_base %p\n", (void *)guest_base); in main()
H A Delfload.c2867 if (!QEMU_IS_ALIGNED(guest_base, align)) { in pgb_fixed()
2870 (void *)guest_base, align); in pgb_fixed()
2874 if (!pgb_addr_set(&ga, guest_loaddr, guest_hiaddr, !guest_base) in pgb_fixed()
2875 || !pgb_try_mmap_set(&ga, guest_base, brk)) { in pgb_fixed()
2970 guest_base = 0; in pgb_dynamic()
3015 guest_base = ret; in pgb_dynamic()
3053 assert(QEMU_IS_ALIGNED(guest_base, align)); in probe_guest_base()
3055 "@ 0x%" PRIx64 "\n", (uint64_t)guest_base); in probe_guest_base()
/qemu/tcg/mips/
H A Dtcg-target.c.inc1276 if (guest_base) {
1277 if (guest_base == (int16_t)guest_base) {
1278 tcg_out_opc_imm(s, ALIAS_PADDI, TCG_REG_A0, base, guest_base);
2461 TCG_REG_S7, /* used for guest_base */
2582 if (!tcg_use_softmmu && guest_base != (int16_t)guest_base) {
2591 tcg_out_movi_int(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base,
/qemu/tcg/i386/
H A Dtcg-target.c.inc2129 if (arch_prctl(ARCH_SET_GS, guest_base) == 0) {
2140 if (sysarch(AMD64_SET_GSBASE, &guest_base) == 0) {
4706 if (!tcg_use_softmmu && guest_base) {
4710 } else if (guest_base == (int32_t)guest_base) {
4711 x86_guest_base.ofs = guest_base;
4716 tcg_out_movi(s, TCG_TYPE_PTR, x86_guest_base.index, guest_base);
/qemu/tcg/sparc64/
H A Dtcg-target.c.inc993 if (guest_base != 0) {
995 guest_base, true, TCG_REG_T1);
1177 h->base = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_G0;
/qemu/tcg/loongarch64/
H A Dtcg-target.c.inc1121 h->index = guest_base ? TCG_GUEST_BASE_REG : TCG_REG_ZERO;
2632 if (!tcg_use_softmmu && guest_base) {
2633 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
/qemu/tcg/s390x/
H A Dtcg-target.c.inc2072 if (guest_base < 0x80000) {
2074 h->disp = guest_base;
3800 if (!tcg_use_softmmu && guest_base >= 0x80000) {
3801 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
/qemu/tcg/riscv/
H A Dtcg-target.c.inc1776 if (guest_base != 0) {
2957 if (!tcg_use_softmmu && guest_base) {
2958 tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base);
/qemu/tcg/aarch64/
H A Dtcg-target.c.inc50 TCG_REG_X28, /* we will reserve this for guest_base if configured */
1738 if (guest_base || addr_type == TCG_TYPE_I32) {
3477 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_GUEST_BASE, guest_base);
/qemu/tcg/arm/
H A Dtcg-target.c.inc1402 .index = guest_base ? TCG_REG_GUEST_BASE : -1,
3410 if (!tcg_use_softmmu && guest_base) {
3411 tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_GUEST_BASE, guest_base);
/qemu/tcg/ppc/
H A Dtcg-target.c.inc2537 h->base = guest_base ? TCG_GUEST_BASE_REG : 0;
2825 if (!tcg_use_softmmu && guest_base) {
2826 tcg_out_movi_int(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, guest_base, true);
/qemu/tcg/
H A Dtcg.c192 #define guest_base ({ qemu_build_not_reached(); (uintptr_t)0; }) macro