Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcg: Remove TCG_TARGET_TLB_DISPLACEMENT_BITS
The last use was removed by e77c89f.

Fixes: e77c89f ("cputlb: Remove static tlb sizing")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed May 30, 2023
1 parent dd906a3 commit 1943394
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion tcg/aarch64/tcg-target.h
Expand Up @@ -16,7 +16,6 @@
#include "host/cpuinfo.h"

#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 24
#define MAX_CODE_GEN_BUFFER_SIZE ((size_t)-1)

typedef enum {
Expand Down
1 change: 0 additions & 1 deletion tcg/arm/tcg-target.h
Expand Up @@ -31,7 +31,6 @@ extern int arm_arch;
#define use_armv7_instructions (__ARM_ARCH >= 7 || arm_arch >= 7)

#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 16
#define MAX_CODE_GEN_BUFFER_SIZE UINT32_MAX

typedef enum {
Expand Down
1 change: 0 additions & 1 deletion tcg/i386/tcg-target.h
Expand Up @@ -28,7 +28,6 @@
#include "host/cpuinfo.h"

#define TCG_TARGET_INSN_UNIT_SIZE 1
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 31

#ifdef __x86_64__
# define TCG_TARGET_REG_BITS 64
Expand Down
1 change: 0 additions & 1 deletion tcg/mips/tcg-target.h
Expand Up @@ -36,7 +36,6 @@
#endif

#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 16
#define TCG_TARGET_NB_REGS 32

#define MAX_CODE_GEN_BUFFER_SIZE ((size_t)-1)
Expand Down
1 change: 0 additions & 1 deletion tcg/ppc/tcg-target.h
Expand Up @@ -34,7 +34,6 @@

#define TCG_TARGET_NB_REGS 64
#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 16

typedef enum {
TCG_REG_R0, TCG_REG_R1, TCG_REG_R2, TCG_REG_R3,
Expand Down
1 change: 0 additions & 1 deletion tcg/riscv/tcg-target.h
Expand Up @@ -35,7 +35,6 @@
#define TCG_TARGET_REG_BITS 64

#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 20
#define TCG_TARGET_NB_REGS 32
#define MAX_CODE_GEN_BUFFER_SIZE ((size_t)-1)

Expand Down
1 change: 0 additions & 1 deletion tcg/s390x/tcg-target.h
Expand Up @@ -26,7 +26,6 @@
#define S390_TCG_TARGET_H

#define TCG_TARGET_INSN_UNIT_SIZE 2
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 19

/* We have a +- 4GB range on the branches; leave some slop. */
#define MAX_CODE_GEN_BUFFER_SIZE (3 * GiB)
Expand Down
1 change: 0 additions & 1 deletion tcg/sparc64/tcg-target.h
Expand Up @@ -26,7 +26,6 @@
#define SPARC_TCG_TARGET_H

#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 32
#define TCG_TARGET_NB_REGS 32
#define MAX_CODE_GEN_BUFFER_SIZE (2 * GiB)

Expand Down
1 change: 0 additions & 1 deletion tcg/tci/tcg-target.h
Expand Up @@ -42,7 +42,6 @@

#define TCG_TARGET_INTERPRETER 1
#define TCG_TARGET_INSN_UNIT_SIZE 4
#define TCG_TARGET_TLB_DISPLACEMENT_BITS 32
#define MAX_CODE_GEN_BUFFER_SIZE ((size_t)-1)

#if UINTPTR_MAX == UINT32_MAX
Expand Down

0 comments on commit 1943394

Please sign in to comment.