diff options
author | LIU Zhiwei | 2020-04-12 04:08:30 +0200 |
---|---|---|
committer | Alistair Francis | 2020-04-29 22:16:37 +0200 |
commit | 64ce00a6c7c00c0b120270e1644009e5d521e277 (patch) | |
tree | 3aa4f28330088f422db86cc8df21cd628a8a896b /linux-user/riscv | |
parent | target/riscv: Add a sifive-e34 cpu type (diff) | |
download | qemu-64ce00a6c7c00c0b120270e1644009e5d521e277.tar.gz qemu-64ce00a6c7c00c0b120270e1644009e5d521e277.tar.xz qemu-64ce00a6c7c00c0b120270e1644009e5d521e277.zip |
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/riscv')
-rw-r--r-- | linux-user/riscv/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c index 83ecc6f799..67a95dbc7b 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 { |