aboutsummaryrefslogtreecommitdiff
path: root/linux-user/m68k
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-03-09 03:08:58 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-03-13 11:43:52 +0000
commit4d6d8a05a0a6d102ca94e59a43804d65309921e3 (patch)
treebea2c8624e52168039e92b6f316f7d3edae1b76a /linux-user/m68k
parentb6617e937e9abe6ce449729e2fdebf11014f7e49 (diff)
downloadqemu-4d6d8a05a0a6d102ca94e59a43804d65309921e3.zip
qemu-4d6d8a05a0a6d102ca94e59a43804d65309921e3.tar.gz
qemu-4d6d8a05a0a6d102ca94e59a43804d65309921e3.tar.bz2
linux-user: Move tswap_siginfo out of target code
Move tswap_siginfo from target code to handle_pending_signal. This will allow some cleanups and having the siginfo ready to be used in gdbstub. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240309030901.1726211-3-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'linux-user/m68k')
-rw-r--r--linux-user/m68k/signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/m68k/signal.c b/linux-user/m68k/signal.c
index 5f35354..7755578 100644
--- a/linux-user/m68k/signal.c
+++ b/linux-user/m68k/signal.c
@@ -295,7 +295,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
uc_addr = frame_addr + offsetof(struct target_rt_sigframe, uc);
__put_user(uc_addr, &frame->puc);
- tswap_siginfo(&frame->info, info);
+ frame->info = *info;
/* Create the ucontext */
@@ -307,7 +307,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,
if (err)
goto give_sigsegv;
- for(i = 0; i < TARGET_NSIG_WORDS; i++) {
+ for (i = 0; i < TARGET_NSIG_WORDS; i++) {
__put_user(set->sig[i], &frame->uc.tuc_sigmask.sig[i]);
}