|
From: | gaosong |
Subject: | Re: [PATCH v16 2/9] linux-user: Add LoongArch signal support |
Date: | Wed, 15 Jun 2022 17:57:40 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
+static void *get_ctx(struct target_sctx_info *info)
+{
+ return (void *)((char *)info + sizeof(struct target_sctx_info));
+}
Return type should be struct target_sctx_info *.
I wonder that if we return target_fpu_context * and rename get_ctx to get_fpu_context() would be better.
So we need't cast like this:
struct target_fpu_context *fpu_ctx = (struct
target_fpu_context *)
get_ctx(info);
[Prev in Thread] | Current Thread | [Next in Thread] |