aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorLIU Zhiwei <zhiwei_liu@c-sky.com>2020-04-12 10:08:30 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-04-29 13:16:37 -0700
commit64ce00a6c7c00c0b120270e1644009e5d521e277 (patch)
tree3aa4f28330088f422db86cc8df21cd628a8a896b /linux-user
parentd784733bf1875c1ba355c69739518f24d56f1260 (diff)
downloadqemu-64ce00a6c7c00c0b120270e1644009e5d521e277.zip
qemu-64ce00a6c7c00c0b120270e1644009e5d521e277.tar.gz
qemu-64ce00a6c7c00c0b120270e1644009e5d521e277.tar.bz2
linux-user/riscv: fix up struct target_ucontext definition
As struct target_ucontext will be transfered to signal handler, it must keep pace with struct ucontext_t defined in Linux kernel. Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20200412020830.607-1-zhiwei_liu@c-sky.com Message-Id: <20200412020830.607-1-zhiwei_liu@c-sky.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/riscv/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c
index 83ecc6f..67a95db 100644
--- a/linux-user/riscv/signal.c
+++ b/linux-user/riscv/signal.c
@@ -40,8 +40,9 @@ struct target_ucontext {
unsigned long uc_flags;
struct target_ucontext *uc_link;
target_stack_t uc_stack;
- struct target_sigcontext uc_mcontext;
target_sigset_t uc_sigmask;
+ uint8_t __unused[1024 / 8 - sizeof(target_sigset_t)];
+ struct target_sigcontext uc_mcontext QEMU_ALIGNED(16);
};
struct target_rt_sigframe {