Remove TARGET_PHYS_ADDR_BITS define completely
PATCH 1/1 Remove TARGET_PHYS_ADDR_BITS define completely
Following commit 4be403c81 TARGET_PHYS_ADDR_BITS is always 64, and it's only used in one place (that commit removed all the other uses). Remove it completely, to avoid confusion with the genuinely useful TARGET_PHYS_ADDR_SPACE_BITS.
Signed-off-by Peter Maydell <[email protected]>
--- target-ppc/mmu_helper.c | 2 -- targphys.h | 1 - 2 files changed, 3 deletions(-)
target-ppc/mmu_helper.c +0 -2
@@ -1509,10 +1509,8 @@ static void mmubooke_dump_mmu(FILE *f, fprintf_function cpu_fprintf, mask = ~(entry->size -1 ); ea = entry->EPN & mask; pa = entry->RPN & mask; -#if (TARGET_PHYS_ADDR_BITS >=36 )/* Extend the physical address to 36 bits */ pa |= (target_phys_addr_t)(entry->RPN &0xF ) <<32 ; -#endif size /=1024 ;if (size >=1024 ) {snprintf (size_buf,sizeof (size_buf),"%3" PRId64"M" , size /1024 );
targphys.h +0 -1
@@ -3,7 +3,6 @@#ifndef TARGPHYS_H #define TARGPHYS_H -#define TARGET_PHYS_ADDR_BITS 64/* target_phys_addr_t is the type of a physical address (its size can be different from 'target_ulong'). */
Signature · 1 line
1.7.9.5
Alexander Graf
AppliedQuoted 6 lines · Peter Maydell
Following commit
4be403c81TARGET_PHYS_ADDR_BITSis always 64, and it's only used in one place (that commit removed all the other uses). Remove it completely, to avoid confusion with the genuinely usefulTARGET_PHYS_ADDR_SPACE_BITS.Signed-off-by Peter Maydell <[email protected]>
Thanks, applied to ppc-next
(But I wouldn't mind it going through trivial either. Whoever sends a pull request first ...)
Alex