accel/tcg: Remove env_neg()

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>
This commit is contained in:
Richard Henderson 2023-09-13 17:41:13 -07:00
parent 8fa08d7ec7
commit 06ddecff24
1 changed files with 1 additions and 12 deletions

View File

@ -449,17 +449,6 @@ static inline CPUState *env_cpu(CPUArchState *env)
return (void *)env - sizeof(CPUState); 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_tlb(env)
* @env: The architecture environment * @env: The architecture environment
@ -468,7 +457,7 @@ static inline CPUNegativeOffsetState *env_neg(CPUArchState *env)
*/ */
static inline CPUTLB *env_tlb(CPUArchState *env) static inline CPUTLB *env_tlb(CPUArchState *env)
{ {
return &env_neg(env)->tlb; return &env_cpu(env)->neg.tlb;
} }
#endif /* CPU_ALL_H */ #endif /* CPU_ALL_H */