[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/15] target/m68k: Add semihosting stub
From: |
Alex Bennée |
Subject: |
[PATCH 09/15] target/m68k: Add semihosting stub |
Date: |
Thu, 18 Jul 2024 10:45:17 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Since the SEMIHOSTING feature is optional, we need
a stub to link when it is disabled.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240717105723.58965-3-philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
target/m68k/semihosting-stub.c | 15 +++++++++++++++
target/m68k/meson.build | 5 ++++-
2 files changed, 19 insertions(+), 1 deletion(-)
create mode 100644 target/m68k/semihosting-stub.c
diff --git a/target/m68k/semihosting-stub.c b/target/m68k/semihosting-stub.c
new file mode 100644
index 0000000000..d6a5965e29
--- /dev/null
+++ b/target/m68k/semihosting-stub.c
@@ -0,0 +1,15 @@
+/*
+ * m68k/ColdFire semihosting stub
+ *
+ * SPDX-FileContributor: Philippe Mathieu-Daudé <philmd@linaro.org>
+ * SPDX-FileCopyrightText: 2024 Linaro Ltd.
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#include "qemu/osdep.h"
+#include "cpu.h"
+
+void do_m68k_semihosting(CPUM68KState *env, int nr)
+{
+ g_assert_not_reached();
+}
diff --git a/target/m68k/meson.build b/target/m68k/meson.build
index 8d3f9ce288..4d213daaf6 100644
--- a/target/m68k/meson.build
+++ b/target/m68k/meson.build
@@ -11,9 +11,12 @@ m68k_ss.add(files(
m68k_system_ss = ss.source_set()
m68k_system_ss.add(files(
- 'm68k-semi.c',
'monitor.c'
))
+m68k_system_ss.add(when: ['CONFIG_SEMIHOSTING'],
+ if_true: files('m68k-semi.c'),
+ if_false: files('semihosting-stub.c')
+)
target_arch += {'m68k': m68k_ss}
target_system_arch += {'m68k': m68k_system_ss}
--
2.39.2
- [PATCH 00/15] Final bits for 9.1-rc0 (docker, plugins, gdbstub, semihosting), Alex Bennée, 2024/07/18
- [PATCH 03/15] gdbstub: Re-factor gdb command extensions, Alex Bennée, 2024/07/18
- [PATCH 01/15] testing: bump to latest libvirt-ci, Alex Bennée, 2024/07/18
- [PATCH 04/15] plugins/stoptrigger: TCG plugin to stop execution under conditions, Alex Bennée, 2024/07/18
- [PATCH 02/15] tests/avocado: Remove non-working sparc leon3 test, Alex Bennée, 2024/07/18
- [PATCH 06/15] tests/plugins: use qemu_plugin_outs for inline stats, Alex Bennée, 2024/07/18
- [PATCH 07/15] plugins/execlog.c: correct dump of registers values, Alex Bennée, 2024/07/18
- [PATCH 05/15] plugins: fix mem callback array size, Alex Bennée, 2024/07/18
- [PATCH 09/15] target/m68k: Add semihosting stub,
Alex Bennée <=
- [PATCH 11/15] target/m68k: Restrict semihosting to TCG, Alex Bennée, 2024/07/18
- [PATCH 10/15] target/mips: Add semihosting stub, Alex Bennée, 2024/07/18
- [PATCH 12/15] target/mips: Restrict semihosting to TCG, Alex Bennée, 2024/07/18
- [PATCH 08/15] semihosting: Include missing 'gdbstub/syscalls.h' header, Alex Bennée, 2024/07/18
- [PATCH 14/15] target/xtensa: Restrict semihosting to TCG, Alex Bennée, 2024/07/18
- [PATCH 13/15] target/riscv: Restrict semihosting to TCG, Alex Bennée, 2024/07/18
- [PATCH 15/15] semihosting: Restrict to TCG, Alex Bennée, 2024/07/18