hw/sd: sdhci: Reset the data pointer of s->fifo_buffer[] when a different block size...
[qemu/ar7.git] / stubs / semihost.c
blob1b30f38b03d1a39291a67d18a5474b10e880228e
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"
15 #include "sysemu/sysemu.h"
17 /* Empty config */
18 QemuOptsList qemu_semihosting_config_opts = {
19 .name = "",
20 .head = QTAILQ_HEAD_INITIALIZER(qemu_semihosting_config_opts.head),
21 .desc = {
22 { /* end of list */ }
26 /* Queries to config status default to off */
27 bool semihosting_enabled(void)
29 return false;
32 SemihostingTarget semihosting_get_target(void)
34 return SEMIHOSTING_TARGET_AUTO;
38 * All the rest are empty subs. We could g_assert_not_reached() but
39 * that adds extra weight to the final binary. Waste not want not.
41 void qemu_semihosting_enable(void)
45 int qemu_semihosting_config_options(const char *optarg)
47 return 1;
50 const char *semihosting_get_arg(int i)
52 return NULL;
55 int semihosting_get_argc(void)
57 return 0;
60 const char *semihosting_get_cmdline(void)
62 return NULL;
65 void semihosting_arg_fallback(const char *file, const char *cmd)
69 void qemu_semihosting_connect_chardevs(void)
73 void qemu_semihosting_console_init(void)