ddc3e74d9c
linux-user: Pass CPUArchState to target_restore_altstack
...
In most cases we were already passing get_sp_from_cpustate
directly to the function. In other cases, we were passing
a local variable which already contained the same value.
In the rest of the cases, we were passing the stack pointer
out of env directly.
Reviewed by: Warner Losh <imp@bsdimp.com >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20210426025334.1168495-5-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-05-15 21:43:23 +02:00
56384cf3ad
linux-user: Use target_restore_altstack in all sigreturn
...
Note that target_restore_altstack uses the host memory
pointer that we have already verified, so TARGET_EFAULT
is not a possible return value.
Note that using -EFAULT was a bug.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20210426025334.1168495-3-richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-05-15 21:43:23 +02:00
0b6a03c044
linux-user/aarch64: Reset btype for signals
...
The kernel sets btype for the signal handler as if for a call.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-id: 20201021173749.111103-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-10-27 10:44:02 +00:00
6f9ff551a4
linux-user/: fix some comment spelling errors
...
I found that there are many spelling errors in the comments of qemu,
so I used the spellcheck tool to check the spelling errors
and finally found some spelling errors in the linux-user folder.
Signed-off-by: zhaolichang <zhaolichang@huawei.com >
Reviewed-by: Alex Bennee <alex.bennee@linaro.org >
Message-Id: <20200917075029.313-7-zhaolichang@huawei.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-09-17 20:39:22 +02:00
2fc0cc0e1e
target/arm: Use env_cpu, env_archcpu
...
Cleanup in the boilerplate that each target must define.
Replace arm_env_get_cpu with env_archcpu. The combination
CPU(arm_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2019-06-10 07:03:34 -07:00
cd208a1c39
target/arm: Convert sve from feature bit to aa64pfr0 test
...
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
Message-id: 20181016223115.24100-8-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2018-10-24 07:51:29 +01:00
9850f9f63a
linux-user: move get_sp_from_cpustate() to target_cpu.h
...
Remove useless includes
Fix HPPA include guard.
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Acked-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180529194207.31503-9-laurent@vivier.eu >
2018-06-04 01:30:44 +02:00
465e237bf7
linux-user: introduce target_sigsp() and target_save_altstack()
...
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180411192347.30228-1-laurent@vivier.eu >
2018-05-03 18:29:15 +02:00
f0352f13fe
linux-user: move aarch64 signal.c parts to aarch64 directory
...
No code change, only move code from signal.c to
aarch64/signal.c, except adding includes and
exporting setup_frame() and setup_rt_frame().
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-3-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00
befb7447a0
linux-user: create a dummy per arch signal.c
...
Create a signal-common.h for future use by these new files
and use it in the existing signal.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180424192635.6027-2-laurent@vivier.eu >
2018-04-30 09:47:47 +02:00