800af0aae1
Merge tag 'pull-tcg-20231004' of https://gitlab.com/rth7680/qemu into staging
...
accel: Introduce AccelClass::cpu_common_[un]realize
accel: Target agnostic code movement
accel/tcg: Cleanups to use CPUState instead of CPUArchState
accel/tcg: Move CPUNegativeOffsetState into CPUState
tcg: Split out tcg init functions to tcg/startup.h
linux-user/hppa: Fix struct target_sigcontext layout
build: Remove --enable-gprof
# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmUdsL4dHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV/iYggAvDJEyMCAXSSH97BA
# wZT/2D/MFIhOMk6xrQRnrXfrG70N0iVKz44jl9j7k1D+9BOHcso//DDJH3c96k9A
# MgDb6W2bsWvC15/Qw6BALf5bb/II0MJuCcQvj3CNX5lNkXAWhwIOBhsZx7V9ST1+
# rihN4nowpRWdV5GeCjDGaJW455Y1gc96hICYHy6Eqw1cUgUFt9vm5aYU3FHlat29
# sYRaVYKUL2hRUPPNcPiPq0AaJ8wN6/s8gT+V1UvTzkhHqskoM4ZU89RchuXVoq1h
# SvhKElyULMRzM7thWtpW8qYJPj4mxZsKArESvHjsunGD6KEz3Fh1sy6EKRcdmpG/
# II1vkg==
# =k2Io
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 04 Oct 2023 14:36:46 EDT
# gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg: issuer "richard.henderson@linaro.org "
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org >" [full]
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F
* tag 'pull-tcg-20231004' of https://gitlab.com/rth7680/qemu : (47 commits)
tcg/loongarch64: Fix buid error
tests/avocado: Re-enable MIPS Malta tests (GitLab issue #1884 fixed)
build: Remove --enable-gprof
linux-user/hppa: Fix struct target_sigcontext layout
tcg: Split out tcg init functions to tcg/startup.h
tcg: Remove argument to tcg_prologue_init
accel/tcg: Make cpu-exec-common.c a target agnostic unit
accel/tcg: Make icount.o a target agnostic unit
accel/tcg: Make monitor.c a target-agnostic unit
accel/tcg: Rename target-specific 'internal.h' -> 'internal-target.h'
exec: Rename target specific page-vary.c -> page-vary-target.c
exec: Rename cpu.c -> cpu-target.c
accel: Rename accel-common.c -> accel-target.c
accel: Make accel-blocker.o target agnostic
accel/tcg: Restrict dump_exec_info() declaration
exec: Move cpu_loop_foo() target agnostic functions to 'cpu-common.h'
exec: Make EXCP_FOO definitions target agnostic
accel/tcg: move ld/st helpers to ldst_common.c.inc
accel/tcg: Unify user and softmmu do_[st|ld]*_mmu()
accel/tcg: Remove env_tlb()
...
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2023-10-05 08:55:34 -04:00
a0bc599726
build: Remove --enable-gprof
...
This build option has been deprecated since 8.0.
Remove all CONFIG_GPROF code that depends on that,
including one errant check using TARGET_GPROF.
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Acked-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2023-10-04 11:03:54 -07:00
ff26637260
bsd-user: Implement getpriority(2) and setpriority(2).
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-19-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
615ad41c61
bsd-user: Add stubs for profil(2), ktrace(2), utrace(2) and ptrace(2).
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-18-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
932683c3d4
bsd-user: Implement get/set[resuid/resgid/sid] and issetugid.
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-17-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
e4446e0a2c
bsd-user: Implement several get/set system calls:
...
getpid(2), getppid(2), getpgrp(2)
setreuid(2), setregid(2)
getuid(2), geteuid(2), getgid(2), getegid(2), getpgid(2)
setuid(2), seteuid(2), setgid(2), setegid(2), setpgid(2)
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-16-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
faba8e123f
bsd-user: Implement getrlimit(2) and setrlimit(2)
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-15-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
59e801efdf
bsd-user: Implement getrusage(2).
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-14-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
82fe5f3a34
bsd-user: Implement umask(2), setlogin(2) and getlogin(2)
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-13-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
a478416dc8
bsd-user: Implement getgroups(2) and setgroups(2) system calls.
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-12-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
b623031ca6
bsd-user: Get number of cpus.
...
Signed-off-by: Kyle Evans <kevans@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-11-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
0caa376878
bsd-user: Implement target_to_host_resource conversion function
...
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Message-Id: <20230925182425.3163-7-kariem.taha2.7@gmail.com >
2023-10-03 17:14:06 -06:00
48e438a3aa
bsd-user: Clean up includes
...
This commit was created with scripts/clean-includes.
All .c should include qemu/osdep.h first. The script performs three
related cleanups:
* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c already includes
it. Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
Drop these, too.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Warner Losh <imp@bsdimp.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-Id: <20230202133830.2152150-6-armbru@redhat.com >
2023-02-08 07:16:23 +01:00
9554d33076
bsd-user/freebsd/os-syscall.c: Implement exit
...
Implement the exit system call. Bring in bsd-proc.h to contain all the
process system call implementation and helper routines.
Signed-off-by: Stacey Son <sson@FreeBSD.org >
Signed-off-by: Warner Losh <imp@bsdimp.com >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Kyle Evans <kevans@FreeBSD.org >
2022-06-10 22:03:50 -06:00