[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] include/exec: Remove [cpu|env]_neg() functions
From: |
Anton Johansson |
Subject: |
[PATCH 7/9] include/exec: Remove [cpu|env]_neg() functions |
Date: |
Fri, 30 Jun 2023 14:25:49 +0200 |
These functions are no longer used to access CPUTLB or IcountDecr and
can be safely removed.
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
include/exec/cpu-all.h | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index a31df11770..fee0e7df73 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -421,30 +421,6 @@ static inline CPUState *env_cpu(CPUArchState *env)
return &env_archcpu(env)->parent_obj;
}
-/**
- * env_neg(env)
- * @env: The architecture environment
- *
- * Return the CPUNegativeOffsetState associated with the environment.
- */
-static inline CPUNegativeOffsetState *env_neg(CPUArchState *env)
-{
- ArchCPU *arch_cpu = container_of(env, ArchCPU, env);
- return &arch_cpu->neg;
-}
-
-/**
- * cpu_neg(cpu)
- * @cpu: The generic CPUState
- *
- * Return the CPUNegativeOffsetState associated with the cpu.
- */
-static inline CPUNegativeOffsetState *cpu_neg(CPUState *cpu)
-{
- ArchCPU *arch_cpu = container_of(cpu, ArchCPU, parent_obj);
- return &arch_cpu->neg;
-}
-
/**
* env_tlb(env)
* @env: The architecture environment
--
2.41.0
- [PATCH 0/9] Collapse CPUNegativeOffsetState into CPUState, Anton Johansson, 2023/06/30
- [PATCH 6/9] Move IcountDecr to CPUState and assert offset, Anton Johansson, 2023/06/30
- [PATCH 1/9] target/arm: Replace TARGET_PAGE_ENTRY_EXTRA, Anton Johansson, 2023/06/30
- [PATCH 2/9] include: Move MMUAccessType to tlb-common.h, Anton Johansson, 2023/06/30
- [PATCH 7/9] include/exec: Remove [cpu|env]_neg() functions,
Anton Johansson <=
- [PATCH 3/9] include/exec: Move CPUTLB and friends to tlb-common.h, Anton Johansson, 2023/06/30
- [PATCH 4/9] include/hw: introduce CPU_MAX_NEGATIVE_ENV_OFFSET, Anton Johansson, 2023/06/30
- [PATCH 9/9] include/exec: Remove CPUNegativeOffsetState, Anton Johansson, 2023/06/30
- [PATCH 8/9] target: Remove CPUNegativeOffsetState field from ArchCPU, Anton Johansson, 2023/06/30
- [PATCH 5/9] accel: Move CPUTLB to CPUState and assert offset, Anton Johansson, 2023/06/30