]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/mips: Remove unused CPUMIPSState::current_fpu field
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 21 Oct 2024 15:08:49 +0000 (12:08 -0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 3 Nov 2024 08:52:49 +0000 (05:52 -0300)
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>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241021151253.36443-1-philmd@linaro.org>

target/mips/cpu.h
target/mips/sysemu/machine.c

index 3dbfbfdb3d36af3a5f85f090f1042eef8bbf43d8..f6877ece8b4060e79499664b5f4b8dc0648d929a 100644 (file)
@@ -530,7 +530,6 @@ typedef struct CPUArchState {
     CPUMIPSFPUContext active_fpu;
 
     uint32_t current_tc;
-    uint32_t current_fpu;
 
     uint32_t SEGBITS;
     uint32_t PABITS;
index 91cd9f19002af41c2c4706906b51e29702f464e3..8af11fd896beb2343c001dafbb5ab4ee582dd394 100644 (file)
@@ -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),