diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-09-13 17:41:13 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-10-04 11:03:54 -0700 |
commit | 06ddecff244a7fbb2c98352cdfed44fea66608bc (patch) | |
tree | bf9227e788759353c9045ec478cd9d3a77bb21d4 /include | |
parent | 8fa08d7ec7d8c36fc2c96bd135cb09c086b26a14 (diff) | |
download | qemu-06ddecff244a7fbb2c98352cdfed44fea66608bc.zip qemu-06ddecff244a7fbb2c98352cdfed44fea66608bc.tar.gz qemu-06ddecff244a7fbb2c98352cdfed44fea66608bc.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/exec/cpu-all.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 9d8ab05..46e494e 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -450,17 +450,6 @@ static inline CPUState *env_cpu(CPUArchState *env) } /** - * 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 */ |