Skip to content

Commit

Permalink
accel/tcg: Remove env_neg()
Browse files Browse the repository at this point in the history
Replace the single use within env_tlb() and remove.

Reviewed-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Oct 4, 2023
1 parent 8fa08d7 commit 06ddecf
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions include/exec/cpu-all.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,17 +449,6 @@ static inline CPUState *env_cpu(CPUArchState *env)
return (void *)env - sizeof(CPUState);
}

/**
* env_neg(env)
* @env: The architecture environment
*
* Return the CPUNegativeOffsetState associated with the environment.
*/
static inline CPUNegativeOffsetState *env_neg(CPUArchState *env)
{
return &env_cpu(env)->neg;
}

/**
* env_tlb(env)
* @env: The architecture environment
Expand All @@ -468,7 +457,7 @@ static inline CPUNegativeOffsetState *env_neg(CPUArchState *env)
*/
static inline CPUTLB *env_tlb(CPUArchState *env)
{
return &env_neg(env)->tlb;
return &env_cpu(env)->neg.tlb;
}

#endif /* CPU_ALL_H */

0 comments on commit 06ddecf

Please sign in to comment.