Drop unnecessary check of TARGET_PHYS_ADDR_SPACE_BITS
For all our PPC targets the physical address space is at least 36 bits, so drop an unnecessary preprocessor conditional check on TARGET_PHYS_ADDR_SPACE_BITS (erroneously introduced as part of the change from target_phys_addr_t to hwaddr). This brings this bit of code into line with the way we handle the other cases which were originally checking TARGET_PHYS_ADDR_BITS in order to avoid compiler complaints about overflowing a 32 bit type. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
		
							parent
							
								
									50cd721482
								
							
						
					
					
						commit
						21b2f13ae2
					
				@ -1509,10 +1509,8 @@ static void mmubooke_dump_mmu(FILE *f, fprintf_function cpu_fprintf,
 | 
				
			|||||||
        mask = ~(entry->size - 1);
 | 
					        mask = ~(entry->size - 1);
 | 
				
			||||||
        ea = entry->EPN & mask;
 | 
					        ea = entry->EPN & mask;
 | 
				
			||||||
        pa = entry->RPN & mask;
 | 
					        pa = entry->RPN & mask;
 | 
				
			||||||
#if (TARGET_PHYS_ADDR_SPACE_BITS >= 36)
 | 
					 | 
				
			||||||
        /* Extend the physical address to 36 bits */
 | 
					        /* Extend the physical address to 36 bits */
 | 
				
			||||||
        pa |= (hwaddr)(entry->RPN & 0xF) << 32;
 | 
					        pa |= (hwaddr)(entry->RPN & 0xF) << 32;
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
        size /= 1024;
 | 
					        size /= 1024;
 | 
				
			||||||
        if (size >= 1024) {
 | 
					        if (size >= 1024) {
 | 
				
			||||||
            snprintf(size_buf, sizeof(size_buf), "%3" PRId64 "M", size / 1024);
 | 
					            snprintf(size_buf, sizeof(size_buf), "%3" PRId64 "M", size / 1024);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user