qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support


From: gaosong
Subject: Re: [PATCH v11 19/26] linux-user: Add LoongArch signal support
Date: Wed, 24 Nov 2021 18:22:41 +0800
User-agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Hi Richard,
On 2021/11/20 下午6:33, Richard Henderson wrote:
+{
+    int i;
+
+    __put_user(env->pc, &sc->sc_pc);
+
+    __put_user(0, &sc->sc_gpr[0]);
+    for (i = 1; i < 32; ++i) {
+        __put_user(env->gpr[i], &sc->sc_gpr[i]);
+    }
+
+    for (i = 0; i < 32; ++i) {
+        __put_user(env->fpr[i], &sc->sc_fpr[i]);
+    }
+}

Missing fcsr and fcc.
I see that  kernel  define  the fcc used type uint64_t,   and  used  movgr2cf/movcf2gr  save and restore the fcc0-fcc7.
but  qemu define  fcc0-fcc7 as  bool cf[8] at target/loongarch/cpu.h,   how qemu can  save/restore fcc,  Do you have any idea?
Does we can define the fcc   as   bool cf[8]  at  struct target_sigcontext?

Thanks
Song Gao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]