|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v19 02/13] linux-user: Add LoongArch signal support |
| Date: | Thu, 23 Jun 2022 16:34:11 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 6/23/22 01:55, Song Gao wrote:
+static void setup_sigcontext(CPULoongArchState *env,
+ struct target_sigcontext *sc,
+ struct extctx_layout *extctx)
+{
+ int i;
+
+ if (extctx->flags & SC_USED_FP) {
+ __put_user(extctx->fpu.addr, &sc->sc_extcontext[0]);
+ } else {
+ __put_user(extctx->end.addr, &sc->sc_extcontext[0]);
+ }
This is incorrect. Where did this come from? It certainly doesn't appear in the kernel's version of setup_sigcontext. The only reason the result works for you is that this is overwritten by copy_fpu_to_sigframe within setup_sigframe.
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |