Since the semihosting stubs are needed exactly when the Kconfig symbols are not needed, move them to semihosting/ and conditionalize them on CONFIG_SEMIHOSTING and/or CONFIG_SYSTEM_ONLY. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20240408155330.522792-13-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			339 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			339 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Semihosting Stubs for all targets
 | 
						|
 *
 | 
						|
 * Copyright (c) 2023 Linaro Ltd
 | 
						|
 *
 | 
						|
 * Stubs for all targets that don't actually do semihosting.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: GPL-2.0-or-later
 | 
						|
 */
 | 
						|
 | 
						|
#include "qemu/osdep.h"
 | 
						|
#include "semihosting/semihost.h"
 | 
						|
 | 
						|
SemihostingTarget semihosting_get_target(void)
 | 
						|
{
 | 
						|
    return SEMIHOSTING_TARGET_AUTO;
 | 
						|
}
 |