[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 55/99] target/arm: move cpu_tcg to tcg/tcg-cpu-models.c
From: |
Alex Bennée |
Subject: |
[PATCH v16 55/99] target/arm: move cpu_tcg to tcg/tcg-cpu-models.c |
Date: |
Fri, 4 Jun 2021 16:52:28 +0100 |
From: Claudio Fontana <cfontana@suse.de>
move the module containing cpu models definitions
for 32bit TCG-only CPUs to tcg/ and rename it for clarity.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
target/arm/{cpu_tcg.c => tcg/tcg-cpu-models.c} | 7 +------
target/arm/meson.build | 4 ----
target/arm/tcg/meson.build | 1 +
3 files changed, 2 insertions(+), 10 deletions(-)
rename target/arm/{cpu_tcg.c => tcg/tcg-cpu-models.c} (99%)
diff --git a/target/arm/cpu_tcg.c b/target/arm/tcg/tcg-cpu-models.c
similarity index 99%
rename from target/arm/cpu_tcg.c
rename to target/arm/tcg/tcg-cpu-models.c
index 4606ad8436..91af2174a1 100644
--- a/target/arm/cpu_tcg.c
+++ b/target/arm/tcg/tcg-cpu-models.c
@@ -1,5 +1,5 @@
/*
- * QEMU ARM TCG CPUs.
+ * QEMU ARM TCG-only CPUs.
*
* Copyright (c) 2012 SUSE LINUX Products GmbH
*
@@ -9,10 +9,7 @@
*/
#include "qemu/osdep.h"
-#include "cpu.h"
-#ifdef CONFIG_TCG
#include "tcg/tcg-cpu.h"
-#endif /* CONFIG_TCG */
#include "internals.h"
#include "target/arm/idau.h"
#if !defined(CONFIG_USER_ONLY)
@@ -24,7 +21,6 @@
/* CPU models. These are not needed for the AArch64 linux-user build. */
#if !defined(CONFIG_USER_ONLY) || !defined(TARGET_AARCH64)
-#ifdef CONFIG_TCG
static bool arm_v7m_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
{
CPUClass *cc = CPU_GET_CLASS(cs);
@@ -48,7 +44,6 @@ static bool arm_v7m_cpu_exec_interrupt(CPUState *cs, int
interrupt_request)
}
return ret;
}
-#endif /* CONFIG_TCG */
static void arm926_initfn(Object *obj)
{
diff --git a/target/arm/meson.build b/target/arm/meson.build
index 0ccd2fb0bc..8d0c12b2fc 100644
--- a/target/arm/meson.build
+++ b/target/arm/meson.build
@@ -18,10 +18,6 @@ arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
'gdbstub64.c',
))
-arm_ss.add(when: 'CONFIG_TCG', if_true: files(
- 'cpu_tcg.c',
-))
-
arm_softmmu_ss = ss.source_set()
arm_softmmu_ss.add(files(
'arch_dump.c',
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index 4e690eea6c..5b36a13a24 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -32,6 +32,7 @@ arm_ss.add(when: 'CONFIG_TCG', if_true: files(
'crypto_helper.c',
'debug_helper.c',
'tcg-cpu.c',
+ 'tcg-cpu-models.c',
), if_false: files(
'tcg-stubs.c',
--
2.20.1
- [PATCH v16 54/99] target/arm: move TCGCPUOps to tcg/tcg-cpu.c, (continued)
- [PATCH v16 54/99] target/arm: move TCGCPUOps to tcg/tcg-cpu.c, Alex Bennée, 2021/06/04
- [PATCH v16 95/99] hw/arm: add dependency on OR_IRQ for XLNX_VERSAL, Alex Bennée, 2021/06/04
- [PATCH v16 45/99] target/arm: move sve_exception_el out of TCG helpers, Alex Bennée, 2021/06/04
- [PATCH v16 72/99] target/arm: cpu-sve: rename functions according to module prefix, Alex Bennée, 2021/06/04
- [PATCH v16 46/99] target/arm: fix comments style of fp_exception_el before moving it, Alex Bennée, 2021/06/04
- [PATCH v16 20/99] target/arm: tcg: move sysemu-only parts of debug_helper, Alex Bennée, 2021/06/04
- [PATCH v16 55/99] target/arm: move cpu_tcg to tcg/tcg-cpu-models.c,
Alex Bennée <=
- [PATCH v16 37/99] target/arm: move sve_zcr_len_for_el to common_cpu, Alex Bennée, 2021/06/04
- [PATCH v16 34/99] target/arm: move arm_hcr_el2_eff from tcg/ to common_cpu, Alex Bennée, 2021/06/04
- [PATCH v16 17/99] arm: tcg: only build under CONFIG_TCG, Alex Bennée, 2021/06/04
- [PATCH v16 42/99] target/arm: split 32bit and 64bit arm dump state, Alex Bennée, 2021/06/04
- Re: [PATCH v16 00/99] arm tcg/kvm refactor and split with kvm only support, Philippe Mathieu-Daudé, 2021/06/08