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: 13075587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC575C4167B for ; Fri, 16 Dec 2022 22:35:23 +0000 (UTC) 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-Google-Smtp-Source: AA0mqf7g0g6ryxpPtX73BWZYR3b4/Yv49OJXAmxRuwI4hMeAK/zpT8TTx7rJXCWfZtuY7bbo5Rdd1Q== 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.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