Received: by 2002:a17:906:fcb7:b0:974:3dd3:6e73 with SMTP id qw23csp1371097ejb; Sun, 11 Jun 2023 02:00:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7oUvYUQAbp1oxyUSR69OV/HYiwIax3fMxDKFFKd87yUwmUA/LBRZpXc371z3ImiygX9vz/ X-Received: by 2002:a05:620a:8083:b0:75d:8e6c:6c0c with SMTP id ef3-20020a05620a808300b0075d8e6c6c0cmr6762632qkb.48.1686474057883; Sun, 11 Jun 2023 02:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686474057; cv=none; d=google.com; s=arc-20160816; b=XAHN2FXhCxrxjaAmpduiCtifGZ75ayZTFyAw4Ey37z5aBsfOrCMmFlqMaY6E4GayfQ xHMxp+luWw3KFrSgaPvl+i7SrPrvbTIK80WV3RhcC9TNjY0X2yOTeksrF24oBLfDFs6Q h0xTHShS48X8MfR5eTRxPkT/dS6FWkQbab5c5B7zcUaNlG7p+y+jtyCZuXwg3x7uLl8n y/oQrTIXDO4B0fUQpS351wl0fN15Ibxo+LSOXl7cHbXxwBQr4SuL/ZpWTwD0oEqfQaYb lPKKtHMbwrLppHOJ6mI6nRp/WWjehgmUGdjUYhIvdEkQ/BAdZhj136O5eOroqRHYtnXE 9Uvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8mp+80uEQkt8/jSa2bwpDOFe4dhC6+cPTb9ADdk/0oE=; b=DYh5rIY6QHAOl8EgVKCmERCcsg5SG1euxSGNA04ptC8wjDlGkaVXOFE0eHs0YWaz9Q +PNQX6Dt69tEpxWduxbM92Ffk6q/RkjsgqfBiv+8nEtInJWwr7wcfS1lJsx7hJ9LF298 P7dzqoqM4sM9wB6r4Lb/GjOsnl3TDEauoWIsXQ0Zs+qdkAyvyRlI8R4lRelHtmHt3gJj gSR0pa1K7ntdfAWZOw5T9ScHW/40rjjkn0Iqa6vT93pewfZRWoXDCJU/rIE1vczzUGF9 uB9j68oSUYiJPJCoFPaE2inejHOTGucSFUfb4oGFc0H+NPJ2nSLCy0Bq9gMRboXa8KUK uXbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Lntpl/tL"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i4-20020a37c204000000b007596781c021si4291983qkm.647.2023.06.11.02.00.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Jun 2023 02:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Lntpl/tL"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8Gue-0000yj-U8; Sun, 11 Jun 2023 04:59:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8Gue-0000yM-5E for qemu-arm@nongnu.org; Sun, 11 Jun 2023 04:59:04 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8Guc-0003Z1-Gl for qemu-arm@nongnu.org; Sun, 11 Jun 2023 04:59:03 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f6e4554453so23225195e9.3 for ; Sun, 11 Jun 2023 01:59:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686473941; x=1689065941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8mp+80uEQkt8/jSa2bwpDOFe4dhC6+cPTb9ADdk/0oE=; b=Lntpl/tLzwChIdrOT2922M1h4tmPmJZV1cT8TRyvzNukM0+uhmGpwoZ2gacfHy1dNx 4Qicjss9uEAchFDNmuru2VCqaECt6NnDDLNHOLIDmQ+DGAhZ+wu5/5M0j1O8/BCX6Wey SY1c1oa9kPVI4zr6RGh93rqoW+oF3Gff9hihZI/DqDa619SBlKQ81CDwPaC7LFlCrxnC lcZY2obeJU9ZZFx08nEOaorGi6BrAOhjsu4LdrQpie8gEKfHLdvc7cikR1Dd+1T3L/NG eX8klQ7zwMgBstw0S2t39ZEyooGR5SDyVqv3UXkCW/gTx/xE0pK4YFwmdsgU/NrEuhpn AaRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686473941; x=1689065941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8mp+80uEQkt8/jSa2bwpDOFe4dhC6+cPTb9ADdk/0oE=; b=d/kNR+z7ZWRH0TpfHdb7EPzkbsRFMJAq2s8mmIUi6fRl1WWgmD+pXOS8jglYrsL/cc AYDHGLveUNyU1syl4HWb20GsomPhWJwh9czVJgfU9WQ8RZz3xTIancAMmivwqYN/Nep4 /zPbfGc4YooHJVQYH8CCi/ABrLLeKH9spVkOT/sOEM3J1gQlIhz0ZtYx7gkVH4z3Cu6G 3Fzt8jnGT7tmwRJ4iIVRljynBCxLkFXDmXoY7OVqmLVrhQjmapjtpSwsb2HWsxtK3tph bXdUgU68g7GGqig2a4bk6Grbyd8k1B43cAkfB6CCoFC16ABnWGeBkiL0zT7j8AH9qym4 xscg== X-Gm-Message-State: AC+VfDyzsf35KnKdHRNyhbPcnhXMlDOx9DB7VmDNegspVAGDHzyDdcxY aFNG+1xhlUeDovcVx6ei3t2gGQ== X-Received: by 2002:a7b:c397:0:b0:3f6:688:f658 with SMTP id s23-20020a7bc397000000b003f60688f658mr3739595wmj.20.1686473941257; Sun, 11 Jun 2023 01:59:01 -0700 (PDT) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id f3-20020a7bc8c3000000b003f1958eeadcsm7734318wml.17.2023.06.11.01.59.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 11 Jun 2023 01:59:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Peter Maydell , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 03/26] target/arm/tcg: Remove CONFIG_TCG #ifdef'ry check Date: Sun, 11 Jun 2023 10:58:23 +0200 Message-Id: <20230611085846.21415-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230611085846.21415-1-philmd@linaro.org> References: <20230611085846.21415-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: 674HosOw++IT CONFIG_TCG is always defined within target/arm/tcg/. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- 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