[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 2/7] accel/tcg: Split out adjust_signal_pc
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH 2/7] accel/tcg: Split out adjust_signal_pc |
Date: |
Tue, 14 Sep 2021 08:07:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 9/14/21 12:05 AM, Richard Henderson wrote:
> Split out a function to adjust the raw signal pc into a
> value that could be passed to cpu_restore_state.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/exec/exec-all.h | 8 +++++++
> accel/tcg/user-exec.c | 50 ++++++++++++++++++++++++++---------------
> 2 files changed, 40 insertions(+), 18 deletions(-)
> -/* 'pc' is the host PC at which the exception was raised. 'address' is
> - the effective address of the memory exception. 'is_write' is 1 if a
> - write caused the exception and otherwise 0'. 'old_set' is the
> - signal set which should be restored */
> -static inline int handle_cpu_signal(uintptr_t pc, siginfo_t *info,
> - int is_write, sigset_t *old_set)
> +/* 'pc' is the host PC at which the exception was raised. 'address' is
> + the effective address of the memory exception. 'is_write' is 1 if a
> + write caused the exception and otherwise 0'. 'old_set' is the
> + signal set which should be restored */
Pre-existing extra "'" in "otherwise 0."
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [RFC PATCH 0/7] linux-user: Streamline handling of SIGSEGV/SIGBUS, Richard Henderson, 2021/09/13
- [RFC PATCH 6/7] linux-user: Handle SIGSEGV/SIGBUS in host_to_target_siginfo_noswap, Richard Henderson, 2021/09/13
- [RFC PATCH 2/7] accel/tcg: Split out adjust_signal_pc, Richard Henderson, 2021/09/13
- Re: [RFC PATCH 2/7] accel/tcg: Split out adjust_signal_pc,
Philippe Mathieu-Daudé <=
- [RFC PATCH 3/7] accel/tcg: Split out handle_sigsegv_accerr_write, Richard Henderson, 2021/09/13
- [RFC PATCH 1/7] include/exec: Move cpu_signal_handler declaration, Richard Henderson, 2021/09/13
- [RFC PATCH 4/7] accel/tcg: Move clear_helper_retaddr to cpu loop, Richard Henderson, 2021/09/13
- [RFC PATCH 5/7] accel/tcg: Fold cpu_exit_tb_from_sighandler into caller, Richard Henderson, 2021/09/13
- [RFC PATCH 7/7] linux-user: Reorg cpu_signal_handler, Richard Henderson, 2021/09/13