[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v12 17/65] target/arm: tcg: add stubs for some helpers for non-tcg
From: |
Claudio Fontana |
Subject: |
[RFC v12 17/65] target/arm: tcg: add stubs for some helpers for non-tcg builds |
Date: |
Fri, 26 Mar 2021 20:36:13 +0100 |
the armv7m one should go away with proper
configuration changes (only enabling possible boards for KVM).
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
target/arm/tcg/helper-stubs.c | 21 +++++++++++++++++++++
target/arm/tcg/meson.build | 3 +++
2 files changed, 24 insertions(+)
create mode 100644 target/arm/tcg/helper-stubs.c
diff --git a/target/arm/tcg/helper-stubs.c b/target/arm/tcg/helper-stubs.c
new file mode 100644
index 0000000000..3df03a28da
--- /dev/null
+++ b/target/arm/tcg/helper-stubs.c
@@ -0,0 +1,21 @@
+/*
+ * QEMU ARM stubs for some TCG helper functions
+ *
+ * Copyright 2021 SUSE LLC
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#include "qemu/osdep.h"
+#include "cpu.h"
+
+int fp_exception_el(CPUARMState *env, int cur_el)
+{
+ return 0;
+}
+
+void write_v7m_exception(CPUARMState *env, uint32_t new_exc)
+{
+ g_assert_not_reached();
+}
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index 21d44404f3..a0ef03a6e3 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -27,6 +27,9 @@ arm_ss.add(when: 'CONFIG_TCG', if_true: files(
'vfp_helper.c',
'crypto_helper.c',
'debug_helper.c',
+
+), if_false: files(
+ 'helper-stubs.c',
))
arm_ss.add(when: ['TARGET_AARCH64','CONFIG_TCG'], if_true: files(
--
2.26.2
- [RFC v12 05/65] target/arm: tcg: split mte_helper user-only and sysemu code, (continued)
- [RFC v12 05/65] target/arm: tcg: split mte_helper user-only and sysemu code, Claudio Fontana, 2021/03/26
- [RFC v12 07/65] target/arm: tcg: split tlb_helper user-only and sysemu-only parts, Claudio Fontana, 2021/03/26
- [RFC v12 09/65] target/arm: only build psci for TCG, Claudio Fontana, 2021/03/26
- [RFC v12 10/65] target/arm: split off cpu-sysemu.c, Claudio Fontana, 2021/03/26
- [RFC v12 08/65] target/arm: tcg: split m_helper user-only and sysemu-only parts, Claudio Fontana, 2021/03/26
- [RFC v12 11/65] target/arm: tcg: fix comment style before move to cpu-mmu, Claudio Fontana, 2021/03/26
- [RFC v12 15/65] target/arm: move cpu definitions to common cpu module, Claudio Fontana, 2021/03/26
- [RFC v12 12/65] target/arm: move physical address translation to cpu-mmu, Claudio Fontana, 2021/03/26
- [RFC v12 17/65] target/arm: tcg: add stubs for some helpers for non-tcg builds,
Claudio Fontana <=
- [RFC v12 13/65] target/arm: fix style in preparation of new cpregs module, Claudio Fontana, 2021/03/26
- [RFC v12 18/65] target/arm: move cpsr_read, cpsr_write to cpu_common, Claudio Fontana, 2021/03/26
- [RFC v12 19/65] target/arm: add temporary stub for arm_rebuild_hflags, Claudio Fontana, 2021/03/26
- [RFC v12 16/65] target/arm: only perform TCG cpu and machine inits if TCG enabled, Claudio Fontana, 2021/03/26
- [RFC v12 20/65] target/arm: move arm_hcr_el2_eff from tcg/ to common_cpu, Claudio Fontana, 2021/03/26