[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/16] target/mips: Add semihosting stub
From: |
Alex Bennée |
Subject: |
[PULL 10/16] target/mips: Add semihosting stub |
Date: |
Mon, 22 Jul 2024 12:04:07 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Since the SEMIHOSTING feature is optional, we need
a stub to link when it is disabled.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240717105723.58965-4-philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240718094523.1198645-11-alex.bennee@linaro.org>
diff --git a/target/mips/tcg/sysemu/semihosting-stub.c
b/target/mips/tcg/sysemu/semihosting-stub.c
new file mode 100644
index 0000000000..7ae27d746f
--- /dev/null
+++ b/target/mips/tcg/sysemu/semihosting-stub.c
@@ -0,0 +1,15 @@
+/*
+ * MIPS 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 "internal.h"
+
+void mips_semihosting(CPUMIPSState *env)
+{
+ g_assert_not_reached();
+}
diff --git a/target/mips/tcg/sysemu/meson.build
b/target/mips/tcg/sysemu/meson.build
index ec665a4b1e..911341ac37 100644
--- a/target/mips/tcg/sysemu/meson.build
+++ b/target/mips/tcg/sysemu/meson.build
@@ -1,10 +1,12 @@
mips_system_ss.add(files(
'cp0_helper.c',
- 'mips-semi.c',
'special_helper.c',
'tlb_helper.c',
))
-
+mips_system_ss.add(when: ['CONFIG_SEMIHOSTING'],
+ if_true: files('mips-semi.c'),
+ if_false: files('semihosting-stub.c')
+)
mips_system_ss.add(when: 'TARGET_MIPS64', if_true: files(
'lcsr_helper.c',
))
--
2.39.2
- [PULL 02/16] tests/avocado: Remove non-working sparc leon3 test, (continued)
- [PULL 02/16] tests/avocado: Remove non-working sparc leon3 test, Alex Bennée, 2024/07/22
- [PULL 04/16] plugins/stoptrigger: TCG plugin to stop execution under conditions, Alex Bennée, 2024/07/22
- [PULL 03/16] gdbstub: Re-factor gdb command extensions, Alex Bennée, 2024/07/22
- [PULL 07/16] plugins/execlog.c: correct dump of registers values, Alex Bennée, 2024/07/22
- [PULL 05/16] plugins: fix mem callback array size, Alex Bennée, 2024/07/22
- [PULL 09/16] target/m68k: Add semihosting stub, Alex Bennée, 2024/07/22
- [PULL 08/16] semihosting: Include missing 'gdbstub/syscalls.h' header, Alex Bennée, 2024/07/22
- [PULL 12/16] target/mips: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- [PULL 16/16] tests/tcg/aarch64: Fix test-mte.py, Alex Bennée, 2024/07/22
- [PULL 06/16] tests/plugins: use qemu_plugin_outs for inline stats, Alex Bennée, 2024/07/22
- [PULL 10/16] target/mips: Add semihosting stub,
Alex Bennée <=
- [PULL 15/16] semihosting: Restrict to TCG, Alex Bennée, 2024/07/22
- [PULL 11/16] target/m68k: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- [PULL 14/16] target/xtensa: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- [PULL 13/16] target/riscv: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- Re: [PULL 00/16] Final bits for 9.1-rc0 (docker, plugins, gdbstub, semihosting), Philippe Mathieu-Daudé, 2024/07/22