target/ppc: Use bool success for ppc_radix64_xlate
[qemu.git] / stubs / semihost.c
blob4bf2cf71b9b41f59b1800d2097eebe50257cb073
1 /*
2 * Semihosting Stubs for SoftMMU
4 * Copyright (c) 2019 Linaro Ltd
6 * Stubs for SoftMMU targets that don't actually do semihosting.
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #include "qemu/osdep.h"
12 #include "qemu/option.h"
13 #include "qemu/error-report.h"
14 #include "semihosting/semihost.h"
16 /* Empty config */
17 QemuOptsList qemu_semihosting_config_opts = {
18 .name = "",
19 .head = QTAILQ_HEAD_INITIALIZER(qemu_semihosting_config_opts.head),
20 .desc = {
21 { /* end of list */ }
25 /* Queries to config status default to off */
26 bool semihosting_enabled(void)
28 return false;
31 SemihostingTarget semihosting_get_target(void)
33 return SEMIHOSTING_TARGET_AUTO;
37 * All the rest are empty subs. We could g_assert_not_reached() but
38 * that adds extra weight to the final binary. Waste not want not.
40 void qemu_semihosting_enable(void)
44 int qemu_semihosting_config_options(const char *optarg)
46 return 1;
49 const char *semihosting_get_arg(int i)
51 return NULL;
54 int semihosting_get_argc(void)
56 return 0;
59 const char *semihosting_get_cmdline(void)
61 return NULL;
64 void semihosting_arg_fallback(const char *file, const char *cmd)
68 void qemu_semihosting_connect_chardevs(void)
72 void qemu_semihosting_console_init(void)