[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 22/34] accel/tcg: [CPUTLB] Move CPU_TLB_DYN_[DEFAULT|MIN]* to
From: |
Anton Johansson |
Subject: |
[RFC PATCH 22/34] accel/tcg: [CPUTLB] Move CPU_TLB_DYN_[DEFAULT|MIN]* to cputlb.c |
Date: |
Fri, 19 Jan 2024 15:40:12 +0100 |
These macros are only used for softmmu targets and only used in
cputlb.c, move definitions there.
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
include/exec/cpu-defs.h | 3 ---
accel/tcg/cputlb.c | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index e8ccbe4bef..4b369e39b0 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -55,9 +55,6 @@
#include "exec/target_long.h"
#if defined(CONFIG_SOFTMMU) && defined(CONFIG_TCG)
-#define CPU_TLB_DYN_MIN_BITS 6
-#define CPU_TLB_DYN_DEFAULT_BITS 8
-
# if HOST_LONG_BITS == 32
/* Make sure we do not require a double-word shift for the TLB load */
# define CPU_TLB_DYN_MAX_BITS (32 - TARGET_PAGE_BITS)
diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c
index 42be5b6289..a75a52d141 100644
--- a/accel/tcg/cputlb.c
+++ b/accel/tcg/cputlb.c
@@ -43,6 +43,9 @@
#include "tcg/tcg-ldst.h"
#include "tcg-target-reg-bits.h"
+#define CPU_TLB_DYN_MIN_BITS 6
+#define CPU_TLB_DYN_DEFAULT_BITS 8
+
/* DEBUG defines, enable DEBUG_TLB_LOG to log to the CPU_LOG_MMU target */
/* #define DEBUG_TLB */
/* #define DEBUG_TLB_LOG */
--
2.43.0
- [RFC PATCH 16/34] exec: [CPUTLB] Move cpu_*()/cpu_env() to common header, (continued)
- [RFC PATCH 16/34] exec: [CPUTLB] Move cpu_*()/cpu_env() to common header, Anton Johansson, 2024/01/19
- [RFC PATCH 20/34] accel/tcg: [CPUTLB] Use TCGContext.guest_mo for memory ordering, Anton Johansson, 2024/01/19
- [RFC PATCH 19/34] accel/tcg: [CPUTLB] Use TCGContext.addr_type instead of TARGET_LONG_BITS, Anton Johansson, 2024/01/19
- [RFC PATCH 23/34] tcg: [CPUTLB] Add `mo_te` field to TCGContext, Anton Johansson, 2024/01/19
- [RFC PATCH 21/34] accel/tcg: [CPUTLB] Use tcg_ctx->tlb_dyn_max_bits, Anton Johansson, 2024/01/19
- [RFC PATCH 22/34] accel/tcg: [CPUTLB] Move CPU_TLB_DYN_[DEFAULT|MIN]* to cputlb.c,
Anton Johansson <=
- [RFC PATCH 25/34] accel/tcg: [CPUTLB] Use tcg_ctx->mo_te instead of MO_TE, Anton Johansson, 2024/01/19
- [RFC PATCH 28/34] accel/tcg: Make plugin-gen.c target independent, Anton Johansson, 2024/01/19
- [RFC PATCH 27/34] accel/tcg: Make translate-all.c target independent, Anton Johansson, 2024/01/19
- [RFC PATCH 29/34] accel/tcg: Make tb-maint.c target indpendent, Anton Johansson, 2024/01/19
- [RFC PATCH 34/34] accel/tcg: Compile (a few files) once for system-mode, Anton Johansson, 2024/01/19
- [RFC PATCH 33/34] accel/tcg: Make translator.c (partially) target independent, Anton Johansson, 2024/01/19