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>
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
*/
static inline CPUTLB *env_tlb(CPUArchState *env)
{
- return &env_neg(env)->tlb;
+ return &env_cpu(env)->neg.tlb;
}
#endif /* CPU_ALL_H */