Lines Matching +full:build +full:- +full:user +full:- +full:plugins

2  *  qemu bsd user main
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 * Copyright (c) 2013-14 Stacey Son
25 #include "qemu/help-texts.h"
28 #include "qemu-version.h"
33 #include "qemu/config-file.h"
34 #include "qemu/error-report.h"
39 #include "user/guest-base.h"
40 #include "user/page-protection.h"
48 #include "qemu/guest-random.h"
49 #include "gdbstub/user.h"
50 #include "exec/page-vary.h"
52 #include "host-os.h"
67 * When running 32-on-64 we should make sure we can fit all of the possible
73 * Many cpus reserve the high bit (or more than one for some 64-bit cpus)
74 * of the address for the kernel. Some cpus rely on this and user space
84 # define MAX_RESERVED_VA(CPU) ((1ul << TARGET_VIRT_ADDR_SPACE_BITS) - 1)
133 get_task_state(thread_cpu)->ts_tid = qemu_get_thread_id(); in fork_end()
153 printf("qemu-" TARGET_NAME " version " QEMU_FULL_VERSION in usage()
155 "usage: qemu-" TARGET_NAME " [options] program [arguments...]\n" in usage()
159 "-h print this help\n" in usage()
160 "-g port wait gdb connection to port\n" in usage()
161 "-L path set the elf interpreter prefix (default=%s)\n" in usage()
162 "-s size set the stack size in bytes (default=%ld)\n" in usage()
163 "-cpu model select CPU (-cpu help for list)\n" in usage()
164 "-drop-ld-preload drop LD_PRELOAD for target process\n" in usage()
165 "-E var=value sets/modifies targets environment variable(s)\n" in usage()
166 "-U var unsets targets environment variable(s)\n" in usage()
167 "-B address set guest_base address to address\n" in usage()
170 "-d item1[,...] enable logging of specified items\n" in usage()
171 " (use '-d help' for a list of log items)\n" in usage()
172 "-D logfile write logs to 'logfile' (default stderr)\n" in usage()
173 "-one-insn-per-tb run with one guest instruction per emulated TB\n" in usage()
174 "-tb-size size TCG translation block cache size\n" in usage()
175 "-strace log system calls\n" in usage()
176 "-trace [[enable=]<pattern>][,events=<file>][,file=<file>]\n" in usage()
179 "-plugin [file=]<file>[,<argname>=<argvalue>]\n" in usage()
185 "You can use -E and -U options to set/unset environment variables\n" in usage()
188 " -E var1=val2 -E var2=val2 -U LD_PRELOAD -U LD_DEBUG\n" in usage()
224 ts->sigaltstack_used = (struct target_sigaltstack) { in init_task_state()
231 static QemuPluginList plugins = QTAILQ_HEAD_INITIALIZER(plugins); variable
305 wrk--; in main()
323 if (r[0] != '-') { in main()
328 if (!strcmp(r, "-")) { in main()
345 } else if (!strcmp(r, "ignore-environment")) { in main()
393 } else if (!strcmp(r, "drop-ld-preload")) { in main()
397 } else if (!strcmp(r, "one-insn-per-tb")) { in main()
399 } else if (!strcmp(r, "tb-size")) { in main()
411 qemu_plugin_opt_parse(r, &plugins); in main()
420 qemu_host_page_mask = -qemu_host_page_size; in main()
447 qemu_plugin_load_list(&plugins, &error_fatal); in main()
473 object_property_set_bool(OBJECT(accel), "one-insn-per-tb", in main()
475 object_property_set_int(OBJECT(accel), "tb-size", in main()
477 ac->init_machine(NULL); in main()
497 * by the command-line option, but not by default. Unless we're running a in main()
557 * Combined with '-B', ensure that the chosen range is free. in main()
564 MAP_ANON | MAP_PRIVATE | MAP_FIXED | MAP_EXCL, -1, 0); in main()
567 MAP_ANON | MAP_PRIVATE, -1, 0); in main()
574 error_report("Cannot allocate %s bytes at -B %p for guest " in main()
612 info->end_code); in main()
614 info->start_code); in main()
616 info->start_data); in main()
618 info->end_data); in main()
620 info->start_stack); in main()
621 fprintf(f, "brk 0x" TARGET_ABI_FMT_lx "\n", info->brk); in main()
622 fprintf(f, "entry 0x" TARGET_ABI_FMT_lx "\n", info->entry); in main()
628 /* build Task State */ in main()
631 ts->info = info; in main()
632 ts->bprm = &bprm; in main()
633 ts->ts_tid = qemu_get_thread_id(); in main()
634 cpu->opaque = ts; in main()
636 target_set_brk(info->brk); in main()