[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/34] target/arm/tcg: Remove CONFIG_TCG #ifdef'ry check
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 01/34] target/arm/tcg: Remove CONFIG_TCG #ifdef'ry check |
Date: |
Mon, 19 Jun 2023 17:42:29 +0200 |
CONFIG_TCG is always defined within target/arm/tcg/.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/tcg/cpu32.c | 4 +---
target/arm/tcg/m_helper.c | 6 ------
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/target/arm/tcg/cpu32.c b/target/arm/tcg/cpu32.c
index 47d2e8e781..0672519b89 100644
--- a/target/arm/tcg/cpu32.c
+++ b/target/arm/tcg/cpu32.c
@@ -13,11 +13,9 @@
#include "hw/core/tcg-cpu-ops.h"
#include "internals.h"
#include "target/arm/idau.h"
+#include "cpregs.h"
#if !defined(CONFIG_USER_ONLY)
#include "hw/boards.h"
-#endif
-#include "cpregs.h"
-#if !defined(CONFIG_USER_ONLY) && defined(CONFIG_TCG)
#include "hw/intc/armv7m_nvic.h"
#endif
diff --git a/target/arm/tcg/m_helper.c b/target/arm/tcg/m_helper.c
index 9cef70e5c9..0891acc29c 100644
--- a/target/arm/tcg/m_helper.c
+++ b/target/arm/tcg/m_helper.c
@@ -15,10 +15,8 @@
#include "qemu/bitops.h"
#include "qemu/log.h"
#include "exec/exec-all.h"
-#ifdef CONFIG_TCG
#include "exec/cpu_ldst.h"
#include "semihosting/common-semi.h"
-#endif
#if !defined(CONFIG_USER_ONLY)
#include "hw/intc/armv7m_nvic.h"
#endif
@@ -2345,11 +2343,7 @@ void arm_v7m_cpu_do_interrupt(CPUState *cs)
qemu_log_mask(CPU_LOG_INT,
"...handling as semihosting call 0x%x\n",
env->regs[0]);
-#ifdef CONFIG_TCG
do_common_semihosting(cs);
-#else
- g_assert_not_reached();
-#endif
env->regs[15] += env->thumb ? 2 : 4;
return;
case EXCP_BKPT:
--
2.38.1
- [PATCH v3 00/34] target/arm/tcg: Remove inclusions of 'exec/helper-[proto/gen].h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 01/34] target/arm/tcg: Remove CONFIG_TCG #ifdef'ry check,
Philippe Mathieu-Daudé <=
- [PATCH v3 02/34] target/arm/tcg: Rename helper template headers as '.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 03/34] target/arm/tcg: Extract iwMMXt helpers from the generic 'helper.h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 04/34] target/arm/tcg: Fix iwmmxt-related code style, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 05/34] target/arm/tcg: Expose some iwmmxt methods in 'translate.h', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 06/34] target/arm/tcg: Extract iwmmxt code to translate-iwmmxt.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 08/34] target/arm/tcg: Un-inline VFP translation helpers, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 07/34] target/arm/tcg: Reduce 'helper-iwmmxt.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 09/34] target/arm/tcg: Move VFP helpers from helper-a64.c to vfp_helper.c, Philippe Mathieu-Daudé, 2023/06/19