Skip to contentSkip to conversation

target/mips: Remove unused CPUMIPSState::current_fpu field

PATCH In review Philippe Mathieu-Daudé 3 participants 3 messages Oct 21, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/mips: Remove unused CPUMIPSState::current_fpu field

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").

---
 target/mips/cpu.h            | 1 -
 target/mips/sysemu/machine.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
target/mips/cpu.h +0 -1
index 6a4c4ea683a..3c235f39ffc 100644
@@ -530,7 +530,6 @@ typedef struct CPUArchState {
     CPUMIPSFPUContext active_fpu;
 
     uint32_t current_tc;
-    uint32_t current_fpu;
 
     uint32_t SEGBITS;
     uint32_t PABITS;
target/mips/sysemu/machine.c +1 -1
index 91cd9f19002..8af11fd896b 100644
@@ -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),
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Philippe Mathieu-Daudé

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").

---
  target/mips/cpu.h            | 1 -
  target/mips/sysemu/machine.c | 2 +-
  2 files changed, 1 insertion(+), 2 deletions(-)
target/mips/cpu.h +0 -1
index 6a4c4ea683a..3c235f39ffc 100644
@@ -530,7 +530,6 @@ typedef struct CPUArchState {
      CPUMIPSFPUContext active_fpu;
 
      uint32_t current_tc;
-    uint32_t current_fpu;
 
      uint32_t SEGBITS;
      uint32_t PABITS;
target/mips/sysemu/machine.c +0 -0
index 91cd9f19002..8af11fd896b 100644

target/mips/sysemu/machine.c const VMStateDescription vmstate_mips_cpu = { · line 248

Quoted 8 lines
target/mips/sysemu/machine.c +1 -1
@@ -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 on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 9 lines · Philippe Mathieu-Daudé

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").

---
  target/mips/cpu.h            | 1 -
  target/mips/sysemu/machine.c | 2 +-
  2 files changed, 1 insertion(+), 2 deletions(-)

r~