Skip to contentSkip to conversation

docs/tcg-ops: Rename cpu_env to tcg_env

PATCH In review Chinmay Rath 3 participants 3 messages Nov 19

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/tcg-ops: Rename cpu_env to tcg_env

Commit ad75a51e (tcg: Rename cpu_env to tcg_env) from 2023, renamed cpu_env to tcg_env. However the same was never done in the docs. Updating docs with the necessary renaming.

---
 docs/devel/tcg-ops.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/tcg-ops.rst +2 -2
index 51fa183e91..7ee419f959 100644
@@ -66,7 +66,7 @@ Variables
 
 * ``TEMP_FIXED``
 
-  There is one TCG *fixed global* variable, ``cpu_env``, which is
+  There is one TCG *fixed global* variable, ``tcg_env``, which is
   live in all translation blocks, and holds a pointer to ``CPUArchState``.
   This variable is held in a host cpu register at all times in all
   translation blocks.
@@ -75,7 +75,7 @@ Variables
 
   A TCG *global* is a variable which is live in all translation blocks,
   and corresponds to memory location that is within ``CPUArchState``.
-  These may be specified as an offset from ``cpu_env``, in which case
+  These may be specified as an offset from ``tcg_env``, in which case
   they are called *direct globals*, or may be specified as an offset
   from a direct global, in which case they are called *indirect globals*.
   Even indirect globals should still reference memory within
Signature · 1 line
2.55.0
#2 lore raw
In reply to Chinmay Rath
Quoted 23 lines · Chinmay Rath

Commit ad75a51e (tcg: Rename cpu_env to tcg_env) from 2023, renamed cpu_env to tcg_env. However the same was never done in the docs. Updating docs with the necessary renaming.

---
  docs/devel/tcg-ops.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/tcg-ops.rst +1 -1
index 51fa183e91..7ee419f959 100644
@@ -66,7 +66,7 @@ Variables
 
  * ``TEMP_FIXED``
 
-  There is one TCG *fixed global* variable, ``cpu_env``, which is
+  There is one TCG *fixed global* variable, ``tcg_env``, which is
    live in all translation blocks, and holds a pointer to ``CPUArchState``.
    This variable is held in a host cpu register at all times in all
    translation blocks.

docs/devel/tcg-ops.rst Variables · line 81

Quoted 8 lines
docs/devel/tcg-ops.rst +1 -1
@@ -75,7 +75,7 @@ Variables
 
    A TCG *global* is a variable which is live in all translation blocks,
    and corresponds to memory location that is within ``CPUArchState``.
-  These may be specified as an offset from ``cpu_env``, in which case
+  These may be specified as an offset from ``tcg_env``, in which case
    they are called *direct globals*, or may be specified as an offset
    from a direct global, in which case they are called *indirect globals*.
    Even indirect globals should still reference memory within

Oops. Queued.

r~