Skip to content
Snippets Groups Projects
Commit ad66b5cb authored by Alex Bennée's avatar Alex Bennée
Browse files

stubs: split semihosting_get_target from system only stubs


As we are about to have a common syscalls.c for gdbstub we need to
stub out one semihosting helper function for all targets.

Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20230307170405.796822-1-alex.bennee@linaro.org>
parent 0820a075
No related branches found
No related tags found
No related merge requests found
......@@ -61,4 +61,5 @@ if have_system
else
stub_ss.add(files('qdev.c'))
endif
stub_ss.add(files('semihost-all.c'))
stub_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_false: files('vfio-user-obj.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;
}
......@@ -28,11 +28,6 @@ bool semihosting_enabled(bool is_user)
return false;
}
SemihostingTarget semihosting_get_target(void)
{
return SEMIHOSTING_TARGET_AUTO;
}
/*
* All the rest are empty subs. We could g_assert_not_reached() but
* that adds extra weight to the final binary. Waste not want not.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment