- Jun 11, 2021
-
-
Richard Henderson authored
There is only one caller, and shortly we will need access to the MachineState, which tcg_init_machine already has. Reviewed-by:
Luis Pires <luis.pires@eldorado.org.br> Reviewed-by:
Alex Bennée <alex.bennee@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
Richard Henderson authored
Instead of delaying tcg_region_init until after tcg_prologue_init is complete, do tcg_region_init first and let tcg_prologue_init shrink the first region by the size of the generated prologue. Reviewed-by:
Luis Pires <luis.pires@eldorado.org.br> Reviewed-by:
Alex Bennée <alex.bennee@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
- May 11, 2021
-
-
Warner Losh authored
Rename linux_binprm to bsd_binprm to reflect that we're loading BSD binaries, not ELF ones. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Remove the target_signal.h file. None of its contents are currently used and the bsd-user fork doesn't use them (so this reduces the diffs there). Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Fix various whitespace-only issues from checkpatch: keyword space ( no space before ( on function calls spaces around operators suspect indentations (including one functions reindented) extra spaces around unary operators Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Fix various issues with {} not being present on if / for statements. Minor line length tweaks Move an assignment in an if out. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
extern char **environ has no standard home, so move the declaration from the .c file to a handy .h file. Since this is a standard, old-school UNIX interface dating from the 5th edition, it's not quite the same issue that the rule is supposed to protect against, though. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Remove dead code that's been commented out forever. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Use the preferred block comment style. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Space after keywords, no space for function calls and spaces around operators. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
- May 10, 2021
-
-
Claudio Fontana authored
move the call for sysemu specifically in machine_run_board_init, mirror the calling sequence for user mode too. Suggested-by:
Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Claudio Fontana <cfontana@suse.de> Message-Id: <20210322132800.7470-23-cfontana@suse.de> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- May 02, 2021
-
-
Thomas Huth authored
Stop including cpu.h in files that don't need it. Signed-off-by:
Thomas Huth <thuth@redhat.com> Message-Id: <20210416171314.2074665-4-thuth@redhat.com> Signed-off-by:
Laurent Vivier <laurent@vivier.eu>
-
- Apr 30, 2021
-
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
Warner Losh authored
keyword space paren, no space before ( in function calls, spaces around operators. Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Warner Losh <imp@bsdimp.com>
-
- Feb 16, 2021
-
-
Richard Henderson authored
Use g2h_untagged in contexts that have no cpu, e.g. the binary loaders that operate before the primary cpu is created. As a colollary, target_mmap and friends must use untagged addresses, since they are used by the loaders. Use g2h_untagged on values returned from target_mmap, as the kernel never applies a tag itself. Use g2h_untagged on all pc values. The only current user of tags, aarch64, removes tags from code addresses upon branch, so "pc" is always untagged. Use g2h with the cpu context on hand wherever possible. Use g2h_untagged in lock_user, which will be updated soon. Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Message-id: 20210212184902.1251044-13-richard.henderson@linaro.org Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Richard Henderson authored
These constants are only ever used with access_ok, and friends. Rather than translating them to PAGE_* bits, let them equal the PAGE_* bits to begin. Reviewed-by:
Warner Losh <imp@bsdimp.com> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Message-id: 20210212184902.1251044-9-richard.henderson@linaro.org Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
Richard Henderson authored
This is more descriptive than 'unsigned long'. No functional change, since these match on all linux+bsd hosts. Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20210212184902.1251044-4-richard.henderson@linaro.org Signed-off-by:
Peter Maydell <peter.maydell@linaro.org>
-
- Feb 05, 2021
-
-
Claudio Fontana authored
This will allow us to centralize the registration of the cpus.c module accelerator operations (in accel/accel-softmmu.c), and trigger it automatically using object hierarchy lookup from the new accel_init_interfaces() initialization step, depending just on which accelerators are available in the code. Rename all tcg-cpus.c, kvm-cpus.c, etc to tcg-accel-ops.c, kvm-accel-ops.c, etc, matching the object type names. Signed-off-by:
Claudio Fontana <cfontana@suse.de> Message-Id: <20210204163931.7358-18-cfontana@suse.de> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
Claudio Fontana authored
Signed-off-by:
Claudio Fontana <cfontana@suse.de> Reviewed-by:
Alex Bennée <alex.bennee@linaro.org> [claudio: rebased on Richard's splitwx work] Signed-off-by:
Claudio Fontana <cfontana@suse.de> Message-Id: <20210204163931.7358-17-cfontana@suse.de> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
- Jan 18, 2021
-
-
Alex Bennée authored
gdb_exit() has never needed anything from env and I doubt we are going to start now. Signed-off-by:
Alex Bennée <alex.bennee@linaro.org> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Reviewed-by:
Laurent Vivier <laurent@vivier.eu> Reviewed-by:
Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210108224256.2321-8-alex.bennee@linaro.org>
-
- Jan 11, 2021
-
-
Warner Losh authored
Update strace.list to include all of FreeBSD's syscalls up through svn r331280. Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Sean Bruno <sburno@FreeBSD.org> Signed-off-by:
Alexander Kabaev <kan@FreeBSD.org> Signed-off-by:
Jung-uk Kim <jkim@FreeBSD.org> Author: Michal Meloun <mmel@FreeBSD.org> Signed-off-by:
Mikaël Urankar <mikael.urankar@gmail.com> [imp moved this change to early in the sequence] Signed-off-by:
Warner Losh <imp@FreeBSD.org> Message-Id: <20201218205451.10559-5-imp@freebsd.org> Signed-off-by:
Thomas Huth <thuth@redhat.com>
-
Stacey Son authored
This change moves host OS and arch dependent code for the sysarch system call related to the -strace functionality into the appropriate host OS and target arch directories. Signed-off-by:
Stacey Son <sson@FreeBSD.org> Signed-off-by:
Sean Bruno <sburno@FreeBSD.org> [ imp integrated minor build fixes from sbruno ] Signed-off-by:
Warner Losh <imp@FreeBSD.org> Message-Id: <20201218205451.10559-4-imp@freebsd.org> Signed-off-by:
Thomas Huth <thuth@redhat.com>
-
Warner Losh authored
Recreate the FreeBSD system call numbers from current sys/syscall.h. Since this isn't guaranteed to be on all systems, continue the practice of generating it with some variation on: sed -e s/SYS_/TARGET_NR_/ < $FREEBSD_SRC/sys/syscall.h > syscall_nr.h until a more comprehensive system can be put in place. Signed-off-by:
Warner Losh <imp@FreeBSD.org> Message-Id: <20201218205451.10559-2-imp@freebsd.org> Signed-off-by:
Thomas Huth <thuth@redhat.com>
-
- Jan 07, 2021
-
-
Richard Henderson authored
Plumb the value through to alloc_code_gen_buffer. This is not supported by any os or tcg backend, so for now enabling it will result in an error. Reviewed-by:
Joelle van Dyne <j@getutm.app> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-
- Dec 18, 2020
-
-
Thomas Huth authored
When compiling with -Werror=implicit-fallthrough, the compiler complains about a missing fallthrough annotation in this file. Looking at the code, the fallthrough is indeed wanted here, so let's add a proper comment. Message-Id: <20201217154138.1547274-1-thuth@redhat.com> Reviewed-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Thomas Huth <thuth@redhat.com>
-
- Nov 11, 2020
-
-
Paolo Bonzini authored
It is not needed, all the callers are just saving what was retrieved from -trace and trace_init_file can retrieve it on its own. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-id: 20201102115841.4017692-1-pbonzini@redhat.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
-