]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: Drop TARGET_PHYS_ADDR_SPACE_BITS
authorAnton Johansson <anjo@rev.ng>
Tue, 9 Dec 2025 13:56:08 +0000 (14:56 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 25 Feb 2026 22:46:04 +0000 (23:46 +0100)
The macro is no longer in use and can safely be dropped.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>
Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-ID: <20260218-phys_addr-v6-7-a603bf363218@rev.ng>
[PMD: Keep TARGET_PHYS_ADDR_SPACE_BITS poisoned]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
20 files changed:
include/exec/cpu-defs.h
target/alpha/cpu-param.h
target/arm/cpu-param.h
target/avr/cpu-param.h
target/hexagon/cpu-param.h
target/hppa/cpu-param.h
target/i386/cpu-param.h
target/loongarch/cpu-param.h
target/m68k/cpu-param.h
target/microblaze/cpu-param.h
target/mips/cpu-param.h
target/or1k/cpu-param.h
target/ppc/cpu-param.h
target/riscv/cpu-param.h
target/rx/cpu-param.h
target/s390x/cpu-param.h
target/sh4/cpu-param.h
target/sparc/cpu-param.h
target/tricore/cpu-param.h
target/xtensa/cpu-param.h

index e01acb7c906c79d113f7c6cd842206d0ec0bce4d..141b5a99292294498672943491015baf79e1c1f2 100644 (file)
@@ -28,9 +28,6 @@
 #ifndef TARGET_LONG_BITS
 # error TARGET_LONG_BITS must be defined in cpu-param.h
 #endif
-#ifndef TARGET_PHYS_ADDR_SPACE_BITS
-# error TARGET_PHYS_ADDR_SPACE_BITS must be defined in cpu-param.h
-#endif
 #ifndef TARGET_VIRT_ADDR_SPACE_BITS
 # error TARGET_VIRT_ADDR_SPACE_BITS must be defined in cpu-param.h
 #endif
index c9da620ab3ef9aabd53622f2a474809ea30e7090..f87b36fe873e7e76c7af3aa4be7eb652729e6fdc 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef ALPHA_CPU_PARAM_H
 #define ALPHA_CPU_PARAM_H
 
-/* ??? EV4 has 34 phys addr bits, EV5 has 40, EV6 has 44.  */
-#define TARGET_PHYS_ADDR_SPACE_BITS  44
-
 #ifdef CONFIG_USER_ONLY
 /*
  * Allow user-only to vary page size.  Real hardware allows only 8k and 64k,
index 7de0099cbfa8556b02fc18980414a9249fd179bb..f67e7b346061acc8b9ea2c353128869d68ba03cf 100644 (file)
@@ -9,10 +9,8 @@
 #define ARM_CPU_PARAM_H
 
 #ifdef TARGET_AARCH64
-# define TARGET_PHYS_ADDR_SPACE_BITS  52
 # define TARGET_VIRT_ADDR_SPACE_BITS  52
 #else
-# define TARGET_PHYS_ADDR_SPACE_BITS  40
 # define TARGET_VIRT_ADDR_SPACE_BITS  32
 #endif
 
index ea7887919a7ccd6410d15cd8def439a14f357e12..130768db51fa7a406277d4ab179367d4199d2ca2 100644 (file)
@@ -22,7 +22,6 @@
 #define AVR_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 10
-#define TARGET_PHYS_ADDR_SPACE_BITS 24
 #define TARGET_VIRT_ADDR_SPACE_BITS 24
 
 #endif
index 45ee7b46409c7a68b1fbb0d92f09fc2636be005a..1f0f22a79687cfe951ee74642cf267c5a501fff3 100644 (file)
@@ -20,7 +20,6 @@
 
 #define TARGET_PAGE_BITS 16     /* 64K pages */
 
-#define TARGET_PHYS_ADDR_SPACE_BITS 36
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 
 #endif
index e0b2c7c9157b9209c4af959706f88a665c093d0d..3763bca1252657b7a5bf33faa2807fe0da211295 100644 (file)
@@ -9,11 +9,8 @@
 #define HPPA_CPU_PARAM_H
 
 #if defined(CONFIG_USER_ONLY) && defined(TARGET_ABI32)
-# define TARGET_PHYS_ADDR_SPACE_BITS  32
 # define TARGET_VIRT_ADDR_SPACE_BITS  32
 #else
-/* ??? PA-8000 through 8600 have 40 bits; PA-8700 and 8900 have 44 bits. */
-# define TARGET_PHYS_ADDR_SPACE_BITS  40
 # define TARGET_VIRT_ADDR_SPACE_BITS  64
 #endif
 
index 909bc027923832d85c1b2dcf9c0a6759936e7cce..5915ef6266c18a98eef78aa987ba979e5cff71c7 100644 (file)
@@ -9,7 +9,6 @@
 #define I386_CPU_PARAM_H
 
 #ifdef TARGET_X86_64
-# define TARGET_PHYS_ADDR_SPACE_BITS  52
 /*
  * ??? This is really 48 bits, sign-extended, but the only thing
  * accessible to userland with bit 48 set is the VSYSCALL, and that
@@ -17,7 +16,6 @@
  */
 # define TARGET_VIRT_ADDR_SPACE_BITS  47
 #else
-# define TARGET_PHYS_ADDR_SPACE_BITS  36
 # define TARGET_VIRT_ADDR_SPACE_BITS  32
 #endif
 #define TARGET_PAGE_BITS 12
index 071567712b3e0010a7ad82b6cc16a7ca90c6fcc7..3bcf77b3755abdc302699c22c7aa99e2e8c3bbf3 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef LOONGARCH_CPU_PARAM_H
 #define LOONGARCH_CPU_PARAM_H
 
-#define TARGET_PHYS_ADDR_SPACE_BITS 48
 #define TARGET_VIRT_ADDR_SPACE_BITS 48
 
 #define TARGET_PAGE_BITS 12
index 7afbf6d302dd2708ce5ffdda93a395128ed9a706..59e04d85ff921ab5ae3bcc4cde6e9c7d48d2631a 100644 (file)
@@ -14,7 +14,6 @@
  * use the smallest one
  */
 #define TARGET_PAGE_BITS 12
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 
 #endif
index 6a0714bb3d752dae1087513fbd125ff493af97ae..0b13f219c2a53b77c4c8e867291441aeb99179bc 100644 (file)
  * of address space.
  */
 #ifdef CONFIG_USER_ONLY
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 #else
-#define TARGET_PHYS_ADDR_SPACE_BITS 64
 #define TARGET_VIRT_ADDR_SPACE_BITS 64
 #endif
 
index a71e7383d2497ae1b8d98555b065b355f7fbd3cc..122193b0db3e7c5dc0d7d04d5970109fa10f4096 100644 (file)
@@ -8,10 +8,8 @@
 #define MIPS_CPU_PARAM_H
 
 #ifdef TARGET_ABI_MIPSN64
-#define TARGET_PHYS_ADDR_SPACE_BITS 48
 #define TARGET_VIRT_ADDR_SPACE_BITS 48
 #else
-#define TARGET_PHYS_ADDR_SPACE_BITS 40
 # ifdef CONFIG_USER_ONLY
 #  define TARGET_VIRT_ADDR_SPACE_BITS 31
 # else
index 3011bf5fccab4cabcc1f5c310afb6d3451c48dbd..1ff89d523f16a2e48327e9e5991df1ded0ec26db 100644 (file)
@@ -9,7 +9,6 @@
 #define OPENRISC_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 13
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 
 #endif
index ca7602d898361d19bef5ff06ac2735ba5f9269fb..5e211d10b0be02ca2553a56571aff537b4904959 100644 (file)
@@ -9,12 +9,6 @@
 #define PPC_CPU_PARAM_H
 
 #ifdef TARGET_PPC64
-/*
- * Note that the official physical address space bits is 62-M where M
- * is implementation dependent.  I've not looked up M for the set of
- * cpus we emulate at the system level.
- */
-#define TARGET_PHYS_ADDR_SPACE_BITS 62
 /*
  * Note that the PPC environment architecture talks about 80 bit virtual
  * addresses, with segmentation.  Obviously that's not all visible to a
@@ -26,7 +20,6 @@
 #  define TARGET_VIRT_ADDR_SPACE_BITS 64
 # endif
 #else
-# define TARGET_PHYS_ADDR_SPACE_BITS 36
 # define TARGET_VIRT_ADDR_SPACE_BITS 32
 #endif
 
index 039e877891aaef7c4bf0545de787e15702225d74..ddb76a5300fe9cf7b76e341e7e1ef86a88febeb5 100644 (file)
@@ -9,10 +9,8 @@
 #define RISCV_CPU_PARAM_H
 
 #if defined(TARGET_RISCV64)
-# define TARGET_PHYS_ADDR_SPACE_BITS 56 /* 44-bit PPN */
 # define TARGET_VIRT_ADDR_SPACE_BITS 48 /* sv48 */
 #elif defined(TARGET_RISCV32)
-# define TARGET_PHYS_ADDR_SPACE_BITS 34 /* 22-bit PPN */
 # define TARGET_VIRT_ADDR_SPACE_BITS 32 /* sv32 */
 #endif
 #define TARGET_PAGE_BITS 12 /* 4 KiB Pages */
index ef1970a09e93e4d702ed0ccd2da51f7a8f1dad4c..3806f41b2fe122ce124ac1d69c634f3d9fb2d1a2 100644 (file)
@@ -21,7 +21,6 @@
 
 #define TARGET_PAGE_BITS 12
 
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 
 #endif
index a5f798eeae786ece88219abfc9c7e7d2159b8789..caef5a0e5c890cdaacc6f5253d0dc13a547a4090 100644 (file)
@@ -9,7 +9,6 @@
 #define S390_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 12
-#define TARGET_PHYS_ADDR_SPACE_BITS 64
 #define TARGET_VIRT_ADDR_SPACE_BITS 64
 
 #endif
index 2b6e11dd0acab6dcf549fed157775ca2d9ca9806..c3b8114e538b93c69b639647ed597bdbe6b83155 100644 (file)
@@ -9,7 +9,6 @@
 #define SH4_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 12  /* 4k */
-#define TARGET_PHYS_ADDR_SPACE_BITS  32
 #ifdef CONFIG_USER_ONLY
 # define TARGET_VIRT_ADDR_SPACE_BITS 31
 #else
index 6e8e2a514694cc35fde2fcebc487c389b2d87d51..7ec4ac84dbb28c81171cbd7c6ffcdb36d7776d26 100644 (file)
@@ -9,7 +9,6 @@
 
 #ifdef TARGET_SPARC64
 # define TARGET_PAGE_BITS 13 /* 8k */
-# define TARGET_PHYS_ADDR_SPACE_BITS  41
 # ifdef TARGET_ABI32
 #  define TARGET_VIRT_ADDR_SPACE_BITS 32
 # else
@@ -17,7 +16,6 @@
 # endif
 #else
 # define TARGET_PAGE_BITS 12 /* 4k */
-# define TARGET_PHYS_ADDR_SPACE_BITS 36
 # define TARGET_VIRT_ADDR_SPACE_BITS 32
 #endif
 
index 790242ef3d222295816638f5343e84756dd14e71..7a5f67fe15e4e10bca7de8f3a3ebfe88a20567d2 100644 (file)
@@ -9,7 +9,6 @@
 #define TRICORE_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 14
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #define TARGET_VIRT_ADDR_SPACE_BITS 32
 
 #endif
index 06d85218b84942b8f23cb106e293cd28f98e3540..1a9cdcefb49ac4a29cc43304bec678a04dcdc767 100644 (file)
@@ -9,7 +9,6 @@
 #define XTENSA_CPU_PARAM_H
 
 #define TARGET_PAGE_BITS 12
-#define TARGET_PHYS_ADDR_SPACE_BITS 32
 #ifdef CONFIG_USER_ONLY
 #define TARGET_VIRT_ADDR_SPACE_BITS 30
 #else