Skip to contentSkip to conversation

system/memory: Remove MAX_PHYS_ADDR

PATCH Applied Gavin Shan 2 participants 2 messages Jun 8

lore
Share & tools
lore

Gavin Shan

author
#0 lore raw

PATCH 1/1 system/memory: Remove MAX_PHYS_ADDR

Remove MAX_PHYS_ADDR and MAX_PHYS_ADDR_SPACE_BITS as they're not used since the addition by commit 052e87b073cb ("memory: make section size a 128-bit integer").

---
 include/system/memory.h | 3 ---
 1 file changed, 3 deletions(-)
include/system/memory.h +0 -3
index 1417132f6d..c449c0385e 100644
@@ -36,9 +36,6 @@ enum device_endian {
 
 #define RAM_ADDR_INVALID (~(ram_addr_t)0)
 
-#define MAX_PHYS_ADDR_SPACE_BITS 62
-#define MAX_PHYS_ADDR            (((hwaddr)1 << MAX_PHYS_ADDR_SPACE_BITS) - 1)
-
 #define TYPE_MEMORY_REGION "memory-region"
 DECLARE_INSTANCE_CHECKER(MemoryRegion, MEMORY_REGION,
                          TYPE_MEMORY_REGION)
Signature · 1 line
2.54.0
Applied
#1 lore raw
Quoted 5 lines · Gavin Shan

Remove MAX_PHYS_ADDR and MAX_PHYS_ADDR_SPACE_BITS as they're not used since the addition by commit 052e87b073cb ("memory: make section size a 128-bit integer").

queued, thanks.

Signature · 1 line
Peter Xu