diff mbox series

[7/9] include/exec: Remove [cpu|env]_neg() functions

Message ID 20230630122551.21766-8-anjo@rev.ng (mailing list archive)
State New, archived
Headers show
Series Collapse CPUNegativeOffsetState into CPUState | expand

Commit Message

Anton Johansson June 30, 2023, 12:25 p.m. UTC
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 mbox series

Patch

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