From patchwork Fri Dec 16 22:05:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 634506 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1089459pvb; Fri, 16 Dec 2022 14:35:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FiPJmhXC39F45YzFvT93TJ9CvxcY3pilDXbE9h3VSSZEbHM0RuQePtRQdICmCqVIrzGOe X-Received: by 2002:a05:622a:4d04:b0:3a8:18fb:d2b4 with SMTP id fd4-20020a05622a4d0400b003a818fbd2b4mr28975459qtb.22.1671230123643; Fri, 16 Dec 2022 14:35:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671230123; cv=none; d=google.com; s=arc-20160816; b=pi18xN+lztR7uxOBaNW4DTelFXnfdKXrOgBpEGuZnNTV3u6XiiU1yUIBN2jpThC4TD Za6IEKtBJnIrCCDWHPqP46g+Bao2aR5wtL+9/3pqGlI37vHM4ka10DclfZnyeVbUtbPK I2TSqSLSSVgNHMFQO8thZs6W0dpiF9Fx+nCuav0vEgZuvLDsPOGdGDxO2gpH5FwmMjJw JKzDOQ6jnwhirXRsHcOXYrVxeqxlE5TPsvyb8Trv5kmTiYkbZDo2mrNf/ylaOF1/nmxL XECCqUeJV+puYmWdz4kQT1WAnKZLny33CUOaBWnTqvOdzMOYIRMCuhjzEDsvw+/GJLsv UO+Q== 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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=hm10XPiOKJVTbJ04ujBIITMuaS3KskPqVXo56DCpsWfi/nLllYOnBQq13H+aFf8/jx FzNDcgqSq05A1mEFbl17qssx06qPNvufM6Quy6S42RgNT/JuA8oOCi2K1gmecAQ3L2XJ epRhvhYm7XPCzYgo3MTIMHWOHluVmZYja8tpc4lGyRDgnxTkf4bx2FBqCRNmPZ06hnex jUi2rZTSZaaBtHDGFw5FxRRNMJDKrGF8Wgd0UJCoJDNFy0l8wlNt15+G9rDUaoEIldp9 xq37CfTzWdLZbY81ufHIkPb6xSsciwX5lH83FHXP3uFKBtL5TLe2CZ91+32R3CQLXSR9 XdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=byTpMti4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=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 i15-20020a05620a150f00b006feefd57a76si1416519qkk.80.2022.12.16.14.35.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Dec 2022 14:35:23 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=byTpMti4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=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 1p6IqA-0008LH-73; Fri, 16 Dec 2022 17:06:02 -0500 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 1p6Iq6-0008I1-0y for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:58 -0500 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Iq4-0005fm-CJ for qemu-devel@nongnu.org; Fri, 16 Dec 2022 17:05:57 -0500 Received: by mail-ej1-x634.google.com with SMTP id ud5so9300274ejc.4 for ; Fri, 16 Dec 2022 14:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=byTpMti4F7j1AT70zf5hdcZBnjoRJI/GNo0x+g5nfmK44hjKdofc0zgxky8GBZTF9j G8Onm2k31BgznW/DBrlM6XiKl8ZJpADULRyzpWeqe0eWglWuqqShWLzDIV988NhEQwHj xjHqk87C2nTVuoMifVukHrhsA0huT7t416wYbvl1aH5r/68pMfDTQU5sEev2mcaSKxNV Efzuvap0wIWSY/2UuOc0ppnrub4jZ+pShTVMT0n0YazQHcUuHvS2ji2sUSdx0QD+GSEa gEW8fgl2EByKexX19+7vNWYXAMeYViqEJn4Y8JcIiZ3HIGjYiN8Q/yQAc4Cq0RdvCPc9 D3OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=exsCe7wqZHx39cKtIHty5MCcAiVROc/nRl0VHcIQsKU=; b=vrWf0JjR9+15WE6jam3x4s9boDOQ0Y3xl4HyVlYXcsUCvRxowwkt5N+XnRLyW22nCz HsjzMFEXnYXTo/1ZMrX76rHh4WGvVQenfH8is5FiNF8z+OKLJlqfw+aGpOmzlwcBj1nA yxdzPI2fHTTlYn0dwW79QjtVPM0TM9bcujAO9JDlJ42Yc4ubIJ1QX7fluPiIkkGpFl72 icq4GdNee2tj4vIO1clQ1N9cK4AzwOdUg09CgFP2WLx9PriOBVr0VdxSP3wI4rsbR+68 0Q8Vrjtj+UsWpOhnkNe3jPWNh8K3cdNlk6+45/1H96FTXOon6wp3zK3Q2JdcwFqYKm88 n9gw== X-Gm-Message-State: ANoB5pkU80Du8DA04HJOndI7pzNjkk2sr6ARqKlEfY15lhXmeeWXgOp3 aBIFnHaE0jSglYTc2WaB6sif7JSRox7zYcOz/uU= X-Received: by 2002:a17:906:ee2:b0:78d:f454:ba04 with SMTP id x2-20020a1709060ee200b0078df454ba04mr29013194eji.3.1671228355449; Fri, 16 Dec 2022 14:05:55 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id pw18-20020a17090720b200b007bd1ef2cccasm1260491ejb.48.2022.12.16.14.05.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 16 Dec 2022 14:05:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , David Gibson , Xiaojuan Yang , Mark Cave-Ayland , Bin Meng , Richard Henderson , Artyom Tarasenko , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Song Gao , Alistair Francis , qemu-ppc@nongnu.org, Laurent Vivier , Palmer Dabbelt , Taylor Simpson , Greg Kurz , qemu-riscv@nongnu.org, Max Filippov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 02/10] target/hexagon: Declare hexagon_regnames[] in "cpu.h" Date: Fri, 16 Dec 2022 23:05:31 +0100 Message-Id: <20221216220539.7065-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221216220539.7065-1-philmd@linaro.org> References: <20221216220539.7065-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=philmd@linaro.org; helo=mail-ej1-x634.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The hexagon_regnames array has TOTAL_PER_THREAD_REGS elements. TOTAL_PER_THREAD_REGS is defined in "cpu.h". Instead of pulling "cpu.h" in "internal.h", move the hexagon_regnames[] declaration to "cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/hexagon/cpu.h | 2 ++ target/hexagon/internal.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index 2a65a57bab..9e8cd5a257 100644 --- a/target/hexagon/cpu.h +++ b/target/hexagon/cpu.h @@ -178,6 +178,8 @@ typedef HexagonCPU ArchCPU; void hexagon_translate_init(void); +extern const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS]; + #include "exec/cpu-all.h" #endif /* HEXAGON_CPU_H */ diff --git a/target/hexagon/internal.h b/target/hexagon/internal.h index b1bfadc3f5..1a6386e0ac 100644 --- a/target/hexagon/internal.h +++ b/target/hexagon/internal.h @@ -38,6 +38,4 @@ void hexagon_debug_vreg(CPUHexagonState *env, int regnum); void hexagon_debug_qreg(CPUHexagonState *env, int regnum); void hexagon_debug(CPUHexagonState *env); -extern const char * const hexagon_regnames[TOTAL_PER_THREAD_REGS]; - #endif