[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for 4.1 v2] linux-user: Fix structure target_uco
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH for 4.1 v2] linux-user: Fix structure target_ucontext for MIPS |
Date: |
Fri, 12 Jul 2019 15:26:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
Le 12/07/2019 à 13:37, Aleksandar Markovic a écrit :
> From: Aleksandar Markovic <address@hidden>
>
> Structure ucontext for MIPS is defined in the following way in
> Linux kernel:
>
> (arch/mips/include/uapi/asm/ucontext.h, lines 54-64)
>
> struct ucontext {
> /* Historic fields matching asm-generic */
> unsigned long uc_flags;
> struct ucontext *uc_link;
> stack_t uc_stack;
> struct sigcontext uc_mcontext;
> sigset_t uc_sigmask;
>
> /* Extended context structures may follow ucontext */
> unsigned long long uc_extcontext[0];
> };
>
> Fix the structure target_ucontext for MIPS to reflect the definition
> above, except the correction for field uc_extcontext, which will
> follow at some later time.
>
> Fixes: 94c5495d
>
> Reported-by: Dragan Mladjenovic <address@hidden>
> Signed-off-by: Aleksandar Markovic <address@hidden>
> Reviewed-by: Laurent Vivier <address@hidden>
>
> ---
>
> v2: rectified a commit message mistake with
> s/target_sigset_t/target_ucontext
> ---
> linux-user/mips/signal.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/linux-user/mips/signal.c b/linux-user/mips/signal.c
> index 6aa303e..455a8a2 100644
> --- a/linux-user/mips/signal.c
> +++ b/linux-user/mips/signal.c
> @@ -71,10 +71,9 @@ struct sigframe {
> };
>
> struct target_ucontext {
> - target_ulong tuc_flags;
> - target_ulong tuc_link;
> + abi_ulong tuc_flags;
> + abi_ulong tuc_link;
> target_stack_t tuc_stack;
> - target_ulong pad0;
> struct target_sigcontext tuc_mcontext;
> target_sigset_t tuc_sigmask;
> };
>
Applied to my linux-user branch.
Thanks,
Laurent
- [Qemu-devel] [PATCH for 4.1 0/4] target/mips: Fixes for 4.1, Aleksandar Markovic, 2019/07/12
- [Qemu-devel] [PATCH for 4.1 2/4] target/mips: Add missing 'break' for a case of MTHC0 handling, Aleksandar Markovic, 2019/07/12
- [Qemu-devel] [PATCH for 4.1 3/4] target/mips: Add missing 'break' for certain cases of MFTR handling, Aleksandar Markovic, 2019/07/12
- [Qemu-devel] [PATCH for 4.1 1/4] target/mips: Add 'fall through' comments for handling nanoMips' SHXS, SWXS, Aleksandar Markovic, 2019/07/12
- [Qemu-devel] [PATCH for 4.1 v2] linux-user: Fix structure target_ucontext for MIPS, Aleksandar Markovic, 2019/07/12
- Re: [Qemu-devel] [PATCH for 4.1 v2] linux-user: Fix structure target_ucontext for MIPS,
Laurent Vivier <=
- [Qemu-devel] [PATCH for 4.1 4/4] target/mips: Add missing 'break' for certain cases of MTTR handling, Aleksandar Markovic, 2019/07/12