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:
parent
8fa08d7ec7
commit
06ddecff24
@ -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
|
||||
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user