Convert the TARGET_WORDS_BIGENDIAN macro, similarly to what was done with HOST_BIG_ENDIAN. The new TARGET_BIG_ENDIAN macro is either 0 or 1, and thus should always be defined to prevent misuse. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Suggested-by: Halil Pasic <pasic@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220323155743.1585078-8-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			238 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			238 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef HW_MIPS_BIOS_H
 | 
						|
#define HW_MIPS_BIOS_H
 | 
						|
 | 
						|
#include "qemu/units.h"
 | 
						|
#include "cpu.h"
 | 
						|
 | 
						|
#define BIOS_SIZE (4 * MiB)
 | 
						|
#if TARGET_BIG_ENDIAN
 | 
						|
#define BIOS_FILENAME "mips_bios.bin"
 | 
						|
#else
 | 
						|
#define BIOS_FILENAME "mipsel_bios.bin"
 | 
						|
#endif
 | 
						|
 | 
						|
#endif
 |