mirror_qemu/linux-user/mips
Aleksandar Markovic 4ced996ffe linux-user: Fix structure target_ucontext for MIPS
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 <dmladjenovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <1562931470-3700-2-git-send-email-aleksandar.markovic@rt-rk.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2019-07-16 18:37:13 +02:00
..
cpu_loop.c linux-user: Handle EXCP_FPE properly for MIPS 2019-07-02 16:56:46 +02:00
signal.c linux-user: Fix structure target_ucontext for MIPS 2019-07-16 18:37:13 +02:00
sockbits.h linux-user: define TARGET_SO_REUSEPORT 2018-05-25 10:10:55 +02:00
syscall_nr.h Supply missing header guards 2019-06-12 13:20:21 +02:00
target_cpu.h linux-user: move get_sp_from_cpustate() to target_cpu.h 2018-06-04 01:30:44 +02:00
target_elf.h linux-user/mips: Recognize the R5900 CPU model 2018-10-24 15:20:31 +02:00
target_fcntl.h linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK 2019-07-02 16:56:46 +02:00
target_signal.h linux-user: move mips signal definitions to mips/target_signal.h 2018-06-04 01:30:44 +02:00
target_structs.h linux-user: Fix structure target_semid64_ds definition for Mips 2016-09-23 07:07:33 +01:00
target_syscall.h linux-user: Add prctl() PR_SET_FP_MODE and PR_GET_FP_MODE implementations 2018-10-29 15:50:31 +01:00
termbits.h Supply missing header guards 2019-06-12 13:20:21 +02:00