From patchwork Fri Nov 15 15:20:45 2024 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: 843491 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcc:0:b0:382:184f:390f with SMTP id e12csp898234wrc; Fri, 15 Nov 2024 07:21:35 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXcPSfuWDgcvl9xwYQAudL6HeRFLsK+BPLl8QAOZEf9DGuXEjv6CBqY0jM3MM7VBQL9akj8Kg==@linaro.org X-Google-Smtp-Source: AGHT+IF9Dpo8Hm5U2Z3nmf2xbJ4qOGTeo8azpQtcxy1ybmC4uDX8HiwKsigAZFRt69LTyMPpEtJo X-Received: by 2002:aca:90a:0:b0:3e7:c366:cf6f with SMTP id 5614622812f47-3e7c366d0b7mr1292186b6e.6.1731684094769; Fri, 15 Nov 2024 07:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731684094; cv=none; d=google.com; s=arc-20240605; b=Zr7jbXXd910V2HhcrCggoA1KBO3FSa5IN2Af8d0SbtTA+Eij+h4IoQdWPp5WkTftjk 6kO5gC8mMxMU9UgLrjwbKRyrqXLVtZolYFEFzN9SS3iTvCNOlyZc14oTSIfAh8mJFZte 5TN37P3lw7JiZ/AlpoJ4K1oKTZ5qfeGVEEamhNBbilCacTh1ZhrdBd8QS+MuMYYd8ahq LNWWULTbiiYALbD3lNF7ClUTeD9K6sgaq5nTFcTRB6Lv37yTX9wF9EjkpHqIY0+qWxbK +56TGKVLjr0Efw7j88i3fzlcH/WAb0FzZap7ZKcPwLK5ASw6jMP79mFEL3WNrJiN80ic 5Xtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=GRasMU/kl6pU0nKOnvS8/V9PVLoGYuKbLYq4L4yKpFo=; fh=ZXDWg7hKG7Hj19AbRuutTLw+Zvn/B9RsGUUw/YagpFI=; b=AWq8ETohwcHbyF2Pk6Nkv3DFzR7uTXR1XLr9FHwJ6OjedhTN88NxHu6rIJl/rjv3Zj dyqlmwkEjKcPWzi6CBxudeTIurmtBBIffBNUzFs+LvMYNEhmbAdxYCkth7+kiQaeogc8 PlE+JBhdQ3aZu2rXRpxKLgpNsNXpecx98cvNypR+uWydDJLPrGnKbrK1aPX7UktwJOT0 AR+OgA0TZ0Ya5OaBF2iJiZB/B8avha+I7Pi0pZjBxWzk0aYdIMSDZRUERJyS4FKV8k/A ER8sdaw1sCFmEwEOSynPPcdb50B3PJ07cdUxx9n+nHX8Q38+czT35OpENny8hquiX44m ldLQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=imh5T0mc; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-51479ae70easi514966e0c.28.2024.11.15.07.21.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Nov 2024 07:21:34 -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=imh5T0mc; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBy8H-0001nx-KC; Fri, 15 Nov 2024 10:21:13 -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 1tBy8F-0001nm-Lv for qemu-devel@nongnu.org; Fri, 15 Nov 2024 10:21:11 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBy8D-00044J-Hi for qemu-devel@nongnu.org; Fri, 15 Nov 2024 10:21:11 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4314f38d274so20707455e9.1 for ; Fri, 15 Nov 2024 07:21:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731684066; x=1732288866; darn=nongnu.org; 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=GRasMU/kl6pU0nKOnvS8/V9PVLoGYuKbLYq4L4yKpFo=; b=imh5T0mcRvm6fKylrnHKff4C7xlbk7SdFcLkuqqGjSfrUrtGrhuJhMgErU58bJV8TT 2Y/+L3cfVDIw9jbmZqkljnpcBYFCQKI2F/bvHMurwSeV3lQOY8xw54AmuTrMaatrHy2U kZh+PcjYEy1F2112aoSzaAupRGKYP0ASi0ddgpYKaus/ia0He/sZqaHcLDQNiHadfKHH n6ygmaVSg9V7oAahQXfk5szx/SrPPTwEJhRluL4uYuDGa8da90VVmD76aZWYV5SZ/Ve2 TBXT6kCA23HPDATIeMhSCeq4xilD8zjeFAev+Bg2SqGHRyfJj9F820yy0xtfc+3m3Emq uh0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731684066; x=1732288866; 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=GRasMU/kl6pU0nKOnvS8/V9PVLoGYuKbLYq4L4yKpFo=; b=duNP7PDreVE/CQDhYUtQGUMDxPDndOdELV6xiuAa39+sdRg9pByvPfin19TubYqX1g u1eI3xTnEfqtbvX5aikV0iWQnARSKsLCKT3885EEHlPQ2qZLQy3jH4gQi81oDXOP9qpw 0p062lvOqX0bNxcuUICNLP+3rnyYJPdGSE51vCoiF83LcKsgNx9KLM1oCWqdpTHefRiB sjP+NupBLNfHnzTlituGJJsVk8p6zxpTrK3BIOaa4teryHifS2z8J6aN9zHQWKWSP8qI RyJ6MhR5u8UVfI/1s1YxEx5YhrGyMMp2EMttwsAc8CObfoB89rPva7M93bqFfvC2LCKL V3sw== X-Gm-Message-State: AOJu0YyU5IqbEQ7QP7Lzuc8o51oTo8ELVwQNVD+9NUflmmT9uvVyrtPU Lkgf6x6ihMe1pBTLuaUwqNBcEdOYIo4eCn8PLWQU3wcTLFX1fJAFfW1W1Zr063XnfA4kaEoN3Sg o X-Received: by 2002:a05:600c:4e8d:b0:432:bb4d:cd77 with SMTP id 5b1f17b1804b1-432df74fda2mr30187755e9.19.1731684065835; Fri, 15 Nov 2024 07:21:05 -0800 (PST) Received: from localhost.localdomain ([176.187.214.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3821ae2f651sm4785315f8f.87.2024.11.15.07.21.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 15 Nov 2024 07:21:05 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 02/10] target/loongarch: Declare loongarch_cpu_dump_state() locally Date: Fri, 15 Nov 2024 16:20:45 +0100 Message-ID: <20241115152053.66442-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241115152053.66442-1-philmd@linaro.org> References: <20241115152053.66442-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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=ham 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 loongarch_cpu_dump_state() is not used outside of cpu.c, no need to expose its prototype. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Richard Henderson --- target/loongarch/internals.h | 2 -- target/loongarch/cpu.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index 1a02427627..0655ac948b 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -18,8 +18,6 @@ void loongarch_translate_init(void); -void loongarch_cpu_dump_state(CPUState *cpu, FILE *f, int flags); - void G_NORETURN do_raise_exception(CPULoongArchState *env, uint32_t exception, uintptr_t pc); diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 57cc4f314b..e599beb30a 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -742,7 +742,7 @@ static ObjectClass *loongarch_cpu_class_by_name(const char *cpu_model) return oc; } -void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags) +static void loongarch_cpu_dump_state(CPUState *cs, FILE *f, int flags) { CPULoongArchState *env = cpu_env(cs); int i;