From: Richard Henderson Date: Thu, 14 Sep 2023 00:41:13 +0000 (-0700) Subject: accel/tcg: Remove env_neg() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=06ddecff244a7fbb2c98352cdfed44fea66608bc;p=qemu.git accel/tcg: Remove env_neg() Replace the single use within env_tlb() and remove. Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 9d8ab050c2..46e494eeba 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -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 */