]>
Commit | Line | Data |
---|---|---|
16932bb7 | 1 | /* |
f14eced5 | 2 | * Semihosting Stubs for system emulation |
16932bb7 AB |
3 | * |
4 | * Copyright (c) 2019 Linaro Ltd | |
5 | * | |
f14eced5 | 6 | * Stubs for system targets that don't actually do semihosting. |
16932bb7 AB |
7 | * |
8 | * SPDX-License-Identifier: GPL-2.0-or-later | |
9 | */ | |
10 | ||
11 | #include "qemu/osdep.h" | |
12 | #include "qemu/option.h" | |
13 | #include "qemu/error-report.h" | |
6b5fe137 | 14 | #include "semihosting/semihost.h" |
16932bb7 AB |
15 | |
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 */ } | |
22 | }, | |
23 | }; | |
24 | ||
25 | /* Queries to config status default to off */ | |
5202861b | 26 | bool semihosting_enabled(bool is_user) |
16932bb7 AB |
27 | { |
28 | return false; | |
29 | } | |
30 | ||
16932bb7 AB |
31 | /* |
32 | * All the rest are empty subs. We could g_assert_not_reached() but | |
33 | * that adds extra weight to the final binary. Waste not want not. | |
34 | */ | |
35 | void qemu_semihosting_enable(void) | |
36 | { | |
37 | } | |
38 | ||
afb81fe8 | 39 | int qemu_semihosting_config_options(const char *optstr) |
16932bb7 AB |
40 | { |
41 | return 1; | |
42 | } | |
43 | ||
44 | const char *semihosting_get_arg(int i) | |
45 | { | |
46 | return NULL; | |
47 | } | |
48 | ||
49 | int semihosting_get_argc(void) | |
50 | { | |
51 | return 0; | |
52 | } | |
53 | ||
54 | const char *semihosting_get_cmdline(void) | |
55 | { | |
56 | return NULL; | |
57 | } | |
58 | ||
59 | void semihosting_arg_fallback(const char *file, const char *cmd) | |
60 | { | |
61 | } | |
4e7f9032 | 62 | |
fb08790b | 63 | void qemu_semihosting_chardev_init(void) |
8de702cb KP |
64 | { |
65 | } |