Skip to content
Snippets Groups Projects
Commit ae7d4d62 authored by LIU Zhiwei's avatar LIU Zhiwei Committed by Alistair Francis
Browse files

linux-user/riscv: Use abi type for target_ucontext


We should not use types dependend on host arch for target_ucontext.
This bug is found when run rv32 applications.

Signed-off-by: default avatarLIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Reviewed-by: default avatarDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230811055438.1945-1-zhiwei_liu@linux.alibaba.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 9382a9ea
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ struct target_sigcontext {
}; /* cf. riscv-linux:arch/riscv/include/uapi/asm/ptrace.h */
struct target_ucontext {
unsigned long uc_flags;
struct target_ucontext *uc_link;
abi_ulong uc_flags;
abi_ptr uc_link;
target_stack_t uc_stack;
target_sigset_t uc_sigmask;
uint8_t __unused[1024 / 8 - sizeof(target_sigset_t)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment