qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]