Skip to content

Commit

Permalink
target/mips: Remove unused CPUMIPSState::current_fpu field
Browse files Browse the repository at this point in the history
The 'current_fpu' field is unused since commit f01be15
("Move the active FPU registers into env again, and use more
TCG registers to access them").

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Pierrick Bouvier <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
philmd committed Nov 3, 2024
1 parent 804607e commit a144a3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion target/mips/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,6 @@ typedef struct CPUArchState {
CPUMIPSFPUContext active_fpu;

uint32_t current_tc;
uint32_t current_fpu;

uint32_t SEGBITS;
uint32_t PABITS;
Expand Down
2 changes: 1 addition & 1 deletion target/mips/sysemu/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a144a3b

Please sign in to comment.