[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 09/41] linux-user/host/alpha: Populate host_signal.h
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 09/41] linux-user/host/alpha: Populate host_signal.h |
Date: |
Sun, 19 Sep 2021 20:13:41 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 9/18/21 20:44, Richard Henderson wrote:
> Split host_signal_pc and host_signal_write out of user-exec.c.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/host/alpha/host-signal.h | 41 +++++++++++++++++++++++++++++
> accel/tcg/user-exec.c | 31 +---------------------
> 2 files changed, 42 insertions(+), 30 deletions(-)
> create mode 100644 linux-user/host/alpha/host-signal.h
> +#ifndef ALPHA_HOST_SIGNAL_H
> +#define ALPHA_HOST_SIGNAL_H
> +
> +static inline uintptr_t host_signal_pc(ucontext_t *uc)
> +{
> + return uc->uc_mcontext.sc_pc;
> +}
> +
> +static inline bool host_signal_write(siginfo_t *info, ucontext_t *uc)
> +{
> + uint32_t *pc = uc->uc_mcontext.sc_pc;
BTW I'd use host_signal_pc() here for consistency with other targets.
> + uint32_t insn = *pc;
> +
> + /* XXX: need kernel patch to get write flag faster */
> + switch (insn >> 26) {
> + case 0x0d: /* stw */
> + case 0x0e: /* stb */
> + case 0x0f: /* stq_u */
> + case 0x24: /* stf */
> + case 0x25: /* stg */
[...]
- [PATCH v2 04/41] accel/tcg: Fold cpu_exit_tb_from_sighandler into caller, (continued)
- [PATCH v2 04/41] accel/tcg: Fold cpu_exit_tb_from_sighandler into caller, Richard Henderson, 2021/09/18
- [PATCH v2 08/41] linux-user/host/ppc: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 06/41] linux-user: Reorg handling for SIGSEGV, Richard Henderson, 2021/09/18
- [PATCH v2 10/41] linux-user/host/sparc: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 07/41] linux-user/host/x86: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 09/41] linux-user/host/alpha: Populate host_signal.h, Richard Henderson, 2021/09/18
- Re: [PATCH v2 09/41] linux-user/host/alpha: Populate host_signal.h,
Philippe Mathieu-Daudé <=
- [PATCH v2 11/41] linux-user/host/arm: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 17/41] linux-user/host/riscv: Improve host_signal_write, Richard Henderson, 2021/09/18
- [PATCH v2 16/41] target/arm: Fixup comment re handle_cpu_signal, Richard Henderson, 2021/09/18
- [PATCH v2 24/41] target/cris: Make cris_cpu_tlb_fill sysemu only, Richard Henderson, 2021/09/18
- [PATCH v2 14/41] linux-user/host/mips: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 12/41] linux-user/host/aarch64: Populate host_signal.h, Richard Henderson, 2021/09/18
- [PATCH v2 18/41] linux-user/signal: Drop HOST_SIGNAL_PLACEHOLDER, Richard Henderson, 2021/09/18