[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/11] tcg: Update env_tlb() comments
From: |
Anton Johansson |
Subject: |
[PATCH 09/11] tcg: Update env_tlb() comments |
Date: |
Tue, 12 Sep 2023 17:34:26 +0200 |
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
tcg/aarch64/tcg-target.c.inc | 2 +-
tcg/arm/tcg-target.c.inc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc
index 0931a69448..d2f5ca5946 100644
--- a/tcg/aarch64/tcg-target.c.inc
+++ b/tcg/aarch64/tcg-target.c.inc
@@ -1676,7 +1676,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext *s,
HostAddress *h,
mask_type = (s->page_bits + s->tlb_dyn_max_bits > 32
? TCG_TYPE_I64 : TCG_TYPE_I32);
- /* Load env_tlb(env)->f[mmu_idx].{mask,table} into {tmp0,tmp1}. */
+ /* Load cpu_tlb(cpu)->f[mmu_idx].{mask,table} into {tmp0,tmp1}. */
QEMU_BUILD_BUG_ON(offsetof(CPUTLBDescFast, mask) != 0);
QEMU_BUILD_BUG_ON(offsetof(CPUTLBDescFast, table) != 8);
tcg_out_insn(s, 3314, LDP, TCG_REG_TMP0, TCG_REG_TMP1, TCG_AREG0,
diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/tcg-target.c.inc
index acb5f23b54..9b96f5e7b5 100644
--- a/tcg/arm/tcg-target.c.inc
+++ b/tcg/arm/tcg-target.c.inc
@@ -1420,7 +1420,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext *s,
HostAddress *h,
ldst->addrlo_reg = addrlo;
ldst->addrhi_reg = addrhi;
- /* Load env_tlb(env)->f[mmu_idx].{mask,table} into {r0,r1}. */
+ /* Load cpu_tlb(cpu)->f[mmu_idx].{mask,table} into {r0,r1}. */
QEMU_BUILD_BUG_ON(offsetof(CPUTLBDescFast, mask) != 0);
QEMU_BUILD_BUG_ON(offsetof(CPUTLBDescFast, table) != 4);
tcg_out_ldrd_8(s, COND_AL, TCG_REG_R0, TCG_AREG0, fast_off);
--
2.41.0
- [PATCH 02/11] include: Introduce tlb_ptr field to CPUState, (continued)
- [PATCH 02/11] include: Introduce tlb_ptr field to CPUState, Anton Johansson, 2023/09/12
- [PATCH 08/11] include/exec: Remove env_tlb(), Anton Johansson, 2023/09/12
- [PATCH 10/11] accel/tcg: Unify user and softmmu do_[st|ld]*_mmu(), Anton Johansson, 2023/09/12
- [PATCH 11/11] accel/tcg: move ld/st helpers to ldst_common.c.inc, Anton Johansson, 2023/09/12
- [PATCH 05/11] accel/tcg: Modifies memory access functions to use CPUState, Anton Johansson, 2023/09/12
- [PATCH 06/11] accel/tcg: Modify atomic_mmu_lookup() to use CPUState, Anton Johansson, 2023/09/12
- [PATCH 09/11] tcg: Update env_tlb() comments,
Anton Johansson <=
- [PATCH 04/11] accel/tcg: Modify probe_access_internal() to use CPUState, Anton Johansson, 2023/09/12
- [PATCH 03/11] accel/tcg: Modify tlb_*() to use CPUState, Anton Johansson, 2023/09/12
- [PATCH 07/11] accel/tcg: Use CPUState in atomicity helpers, Anton Johansson, 2023/09/12