mirror of
				https://gitlab.com/qemu-project/qemu.git
				synced 2025-10-30 07:57:14 +08:00 
			
		
		
		
	 38838f0837
			
		
	
	38838f0837
	
	
	
		
			
			Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250730220519.1140447-2-pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			803 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			803 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU target info stubs (target specific)
 | |
|  *
 | |
|  *  Copyright (c) Linaro
 | |
|  *
 | |
|  * SPDX-License-Identifier: GPL-2.0-or-later
 | |
|  */
 | |
| 
 | |
| #include "qemu/osdep.h"
 | |
| #include "qemu/target-info.h"
 | |
| #include "qemu/target-info-impl.h"
 | |
| #include "hw/boards.h"
 | |
| #include "cpu.h"
 | |
| 
 | |
| /* Validate correct placement of CPUArchState. */
 | |
| QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
 | |
| QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) != sizeof(CPUState));
 | |
| 
 | |
| static const TargetInfo target_info_stub = {
 | |
|     .target_name = TARGET_NAME,
 | |
|     .target_arch = SYS_EMU_TARGET__MAX,
 | |
|     .long_bits = TARGET_LONG_BITS,
 | |
|     .cpu_type = CPU_RESOLVING_TYPE,
 | |
|     .machine_typename = TYPE_MACHINE,
 | |
|     .endianness = TARGET_BIG_ENDIAN ? ENDIAN_MODE_BIG : ENDIAN_MODE_LITTLE,
 | |
| };
 | |
| 
 | |
| const TargetInfo *target_info(void)
 | |
| {
 | |
|     return &target_info_stub;
 | |
| }
 |