From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: Huacai Chen <chenhuacai@kernel.org>,
Aleksandar Rikalo <arikalo@gmail.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: Re: [PATCH] target/mips: Remove unused CPUMIPSState::current_fpu field
Date: Mon, 21 Oct 2024 10:22:04 -0700 [thread overview]
Message-ID: <1d24b1bd-0272-49d0-a9eb-9179462f22c1@linaro.org> (raw)
In-Reply-To: <20241021151253.36443-1-philmd@linaro.org>
On 10/21/24 08:12, Philippe Mathieu-Daudé wrote:
> The 'current_fpu' field is unused since commit f01be154589
> ("Move the active FPU registers into env again, and use more
> TCG registers to access them").
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> target/mips/cpu.h | 1 -
> target/mips/sysemu/machine.c | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/target/mips/cpu.h b/target/mips/cpu.h
> index 6a4c4ea683a..3c235f39ffc 100644
> --- a/target/mips/cpu.h
> +++ b/target/mips/cpu.h
> @@ -530,7 +530,6 @@ typedef struct CPUArchState {
> CPUMIPSFPUContext active_fpu;
>
> uint32_t current_tc;
> - uint32_t current_fpu;
>
> uint32_t SEGBITS;
> uint32_t PABITS;
> diff --git a/target/mips/sysemu/machine.c b/target/mips/sysemu/machine.c
> index 91cd9f19002..8af11fd896b 100644
> --- a/target/mips/sysemu/machine.c
> +++ b/target/mips/sysemu/machine.c
> @@ -242,7 +242,7 @@ const VMStateDescription vmstate_mips_cpu = {
>
> /* CPU metastate */
> VMSTATE_UINT32(env.current_tc, MIPSCPU),
> - VMSTATE_UINT32(env.current_fpu, MIPSCPU),
> + VMSTATE_UNUSED(sizeof(uint32_t)), /* was current_fpu */
> VMSTATE_INT32(env.error_code, MIPSCPU),
> VMSTATE_UINTTL(env.btarget, MIPSCPU),
> VMSTATE_UINTTL(env.bcond, MIPSCPU),
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
next prev parent reply other threads:[~2024-10-21 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 15:12 [PATCH] target/mips: Remove unused CPUMIPSState::current_fpu field Philippe Mathieu-Daudé
2024-10-21 17:22 ` Pierrick Bouvier [this message]
2024-10-21 20:04 ` Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1d24b1bd-0272-49d0-a9eb-9179462f22c1@linaro.org \
--to=pierrick.bouvier@linaro.org \
--cc=arikalo@gmail.com \
--cc=aurelien@aurel32.net \
--cc=chenhuacai@kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).