From patchwork Tue Nov 1 11:44:54 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: 13026896 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 14F4BFA373D for ; Tue, 1 Nov 2022 11:45:28 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opphg-0006Y1-N7; Tue, 01 Nov 2022 07:45:12 -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 1opphe-0006SE-KT for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:10 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opphc-0004He-RN for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:10 -0400 Received: by mail-wm1-x32c.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so3243382wmb.2 for ; Tue, 01 Nov 2022 04:45:08 -0700 (PDT) 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=SJejtaN5E6Xp6r487/nhzrxEqMmLjxBo+QwOTkFMbfU=; b=r9/UJor/WUqR9Kl87e8whOyUvh5HiLroRyped3qlX9N26+6l0VqHmSjZo4dFBSBa07 HfnMdFcsQVxav+No6POL5QLc4FwBqgkssl6UyFhYHjWyfwIxpDw1H81stoazWBDcVRW1 0INIoQnaqvQV8Ii13JZpFkTNqIVtMZtuJ89Wfg1PZMGstcCzhCU1SYqtI2fwvmQ7K+6c gpiXHGemBMzMC7Fp1gmh/9F2j0sX0qk6rELOpqILRXwzCLQL6iWAvl/wZ9SO+CUoNZE/ XbkSXOouOOyYXxEBuXKjYHegM/3fJuakw8AL/9qTcaDzvM2gF4pygTVtsP8pY0VFrLpr nUzw== 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=SJejtaN5E6Xp6r487/nhzrxEqMmLjxBo+QwOTkFMbfU=; b=5QWk5DNWN8jBG/3T6PSnoJTT8sC9w1Bz/suoE9o3TaJadI/t+vunXRBKgi9O3M3wW8 MXO8O1aVsvjjD3/MggilSh934MPXThH0I9TYxFNL1RDNE9NzWeWWPcMLxsM0wuSN7GNZ wsurKMB85jhRhPA8Du/lq7EbRkrI8md9R8k+KVWHCBL3YV1JcPGdHq+CNlpI3SfTd2H4 qGSmces4dICjxcad7vIZbLFjEPLGSB48mM3NHLRqPM+5Ab+3V3h65+utUtc0GJz6eGG9 0pXn5A/LdQwJHapuU27mskEgor2aBBsbrvuC9zgjkL3aFNKys/dpWFHXjBgyeze/ghGm EBjw== X-Gm-Message-State: ACrzQf2ySbiU8FzR15loPqyqZ4lX44TfyduR8ZuhzJ/3uXi4LN3n9QSK GS77z10NA/0xwuwEGDuS0CvwlSbSU9a68Q== X-Google-Smtp-Source: AMsMyM7iJP6/3Nz8qaxZ7k0OYHMgaS62rzingUdgmVf7gN/xSORNoMh0vfPO4B115vSB7puPfsWs6g== X-Received: by 2002:a7b:cb8d:0:b0:3c6:d811:6cff with SMTP id m13-20020a7bcb8d000000b003c6d8116cffmr82016wmi.43.1667303107072; Tue, 01 Nov 2022 04:45:07 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id y10-20020a5d620a000000b0023657e1b97esm9938311wru.11.2022.11.01.04.45.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:06 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang Subject: [PATCH 1/5] disas/nanomips: Fix invalid PRId64 format calling img_format() Date: Tue, 1 Nov 2022 12:44:54 +0100 Message-Id: <20221101114458.25756-2-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org Fix warnings such: disas/nanomips.c:3251:64: warning: format specifies type 'char *' but the argument has type 'int64' (aka 'long long') [-Wformat] return img_format("CACHE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); ~~ ^~~~~~~ %lld Fixes: 4066c152b3 ("disas/nanomips: Remove IMMEDIATE functions") Reported-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil --- disas/nanomips.c | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index 9647f1a8e3..6466c80dc5 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -3252,7 +3252,8 @@ static char *CACHE(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); - return img_format("CACHE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); + return img_format("CACHE 0x%" PRIx64 ", %" PRId64 "(%s)", + op_value, s_value, rs); } @@ -3274,7 +3275,8 @@ static char *CACHEE(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); - return img_format("CACHEE 0x%" PRIx64 ", %s(%s)", op_value, s_value, rs); + return img_format("CACHEE 0x%" PRIx64 ", %" PRId64 "(%s)", + op_value, s_value, rs); } @@ -5173,7 +5175,7 @@ static char *DADDIU_48_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); - return img_format("DADDIU %s, %s", rt, s_value); + return img_format("DADDIU %s, %" PRId64, rt, s_value); } @@ -11859,7 +11861,7 @@ static char *PREF_S9_(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); - return img_format("PREF 0x%" PRIx64 ", %s(%s)", + return img_format("PREF 0x%" PRIx64 ", %" PRId64 "(%s)", hint_value, s_value, rs); } @@ -11905,7 +11907,8 @@ static char *PREFE(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); - return img_format("PREFE 0x%" PRIx64 ", %s(%s)", hint_value, s_value, rs); + return img_format("PREFE 0x%" PRIx64 ", %" PRId64 "(%s)", + hint_value, s_value, rs); } @@ -12079,7 +12082,7 @@ static char *REPL_PH(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); - return img_format("REPL.PH %s, %s", rt, s_value); + return img_format("REPL.PH %s, %" PRId64, rt, s_value); } @@ -12613,7 +12616,7 @@ static char *SB_S9_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SB %s, %s(%s)", rt, s_value, rs); + return img_format("SB %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12659,7 +12662,7 @@ static char *SBE(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SBE %s, %s(%s)", rt, s_value, rs); + return img_format("SBE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12706,7 +12709,7 @@ static char *SC(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SC %s, %s(%s)", rt, s_value, rs); + return img_format("SC %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12729,7 +12732,7 @@ static char *SCD(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SCD %s, %s(%s)", rt, s_value, rs); + return img_format("SCD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12776,7 +12779,7 @@ static char *SCE(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SCE %s, %s(%s)", rt, s_value, rs); + return img_format("SCE %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12868,7 +12871,7 @@ static char *SD_S9_(uint64 instruction, Dis_info *info) const char *rt = GPR(rt_value, info); const char *rs = GPR(rs_value, info); - return img_format("SD %s, %s(%s)", rt, s_value, rs); + return img_format("SD %s, %" PRId64 "(%s)", rt, s_value, rs); } @@ -12973,7 +12976,7 @@ static char *SDC1_S9_(uint64 instruction, Dis_info *info) const char *ft = FPR(ft_value, info); const char *rs = GPR(rs_value, info); - return img_format("SDC1 %s, %s(%s)", ft, s_value, rs); + return img_format("SDC1 %s, %" PRId64 "(%s)", ft, s_value, rs); } @@ -13066,7 +13069,8 @@ static char *SDC2(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); - return img_format("SDC2 CP%" PRIu64 ", %s(%s)", cs_value, s_value, rs); + return img_format("SDC2 CP%" PRIu64 ", %" PRId64 "(%s)", + cs_value, s_value, rs); } @@ -13091,7 +13095,8 @@ static char *SDM(uint64 instruction, Dis_info *info) const char *rs = GPR(rs_value, info); uint64 count3 = encode_count3_from_count(count3_value); - return img_format("SDM %s, %s(%s), 0x%" PRIx64, rt, s_value, rs, count3); + return img_format("SDM %s, %" PRId64 "(%s), 0x%" PRIx64, + rt, s_value, rs, count3); } From patchwork Tue Nov 1 11:44:55 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: 13026897 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 C0F76FA373D for ; Tue, 1 Nov 2022 11:46:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opphz-0006hK-9l; Tue, 01 Nov 2022 07:45:31 -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 1oppht-0006eg-Gk for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:27 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opphl-0004Iv-Sx for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:21 -0400 Received: by mail-wm1-x336.google.com with SMTP id m29-20020a05600c3b1d00b003c6bf423c71so12602103wms.0 for ; Tue, 01 Nov 2022 04:45:16 -0700 (PDT) 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=yBytmr5TleNMxUcv80n5M2RRq/s8QMuW5oRDWbLlEbg=; b=K4+pj2UVW04wZmto8Txzak/myD4fbW7IYx0t2qINkYnnn3UpkGDV0AUJBAjC5OiIts rqrz2hNiLcotPYWXkhrJ2pzRAxfeVddFuR9tzASeJXa4lUPE4lPY+LX153eHu3SYdQ8L Xzv+xUxiL62yLsZzGEtilgqfUPEmOh65k9hTheRC7GnOL2Zjc9Fmqn1Tcd+yW9ZjxPdF 5wzHQkDJBjheDQ+EYDXD8bdQFXfFK/5Xndiert01jLWKhrF2GW10IaYS7qhjWSGyReyK YPkz2S0qIPnHjwdbmZ4OOMZOD6Crgm4kG8yIN+ZBD1dCN2eQAZOnR1os11mcvDbxsgxb J6pg== 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=yBytmr5TleNMxUcv80n5M2RRq/s8QMuW5oRDWbLlEbg=; b=XWYDiWZ/+TVSNnZDm5Eko1VHL98o6brkLFJLLipDZJVmyOpkNo2dvIA0LROWIRj4V7 0K03YXmg4LNapGB8C8K831iWNknNYL/TpW0+ilZQNUdhqHjqhIKc+7JO8Lw3vzHhZ4PG vDQYfH8G/ycJxF3l/B1bgFerv3B+DVhK9N/lCh6FrkgwANmEitiQeuDI0k2lTmOYNVhi 1LT9JF/nEqVu+GwbfDfzDl4FbB0PM4/eH3r8pTaX/aoo+czZoUybtT4vXKfF/XfPrxm0 u+wwJyO8kwFLaNp5j8YceKKfHZn8RbtsO8n5qLnZc/BKTOHUGgBaoUdwnXzsGpmMqqWI KceA== X-Gm-Message-State: ACrzQf2WZpclUILN/h+caaQ4Jri2BIFF8vfQv68YUjxV/A6J6FGxAIJo A5hJgBAiDoVx8wvwIqKViZwwGzc2ceouvg== X-Google-Smtp-Source: AMsMyM4Y9y6PLTR1URFnyLJBybGAordr5I8hYlqJnl37F76XebuW+pihOlpdaX8Mks4vDd7xsAmXDw== X-Received: by 2002:a05:600c:13c9:b0:3cf:5b8f:a7cf with SMTP id e9-20020a05600c13c900b003cf5b8fa7cfmr11972692wmg.153.1667303114696; Tue, 01 Nov 2022 04:45:14 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c354400b003cf4c1e211fsm10937322wmq.38.2022.11.01.04.45.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:14 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang Subject: [PATCH 2/5] disas/nanomips: Fix invalid PRIx64 format calling img_format() Date: Tue, 1 Nov 2022 12:44:55 +0100 Message-Id: <20221101114458.25756-3-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org Fix: disas/nanomips.c:12231:62: warning: format specifies type 'char *' but the argument has type 'uint64' (aka 'unsigned long long') [-Wformat] return img_format("RESTOREF 0x%" PRIx64 ", %s", u_value, count_value); ~~ ^~~~~~~~~~~ %llu Fixes: 4066c152b3 ("disas/nanomips: Remove IMMEDIATE functions") Reported-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil --- disas/nanomips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index 6466c80dc5..e4b21e7c45 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -12235,7 +12235,8 @@ static char *RESTOREF(uint64 instruction, Dis_info *info) uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction); - return img_format("RESTOREF 0x%" PRIx64 ", %s", u_value, count_value); + return img_format("RESTOREF 0x%" PRIx64 ", 0x%" PRIx64, + u_value, count_value); } From patchwork Tue Nov 1 11:44:56 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: 13026898 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 E008CFA373D for ; Tue, 1 Nov 2022 11:46:13 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oppi0-0006ic-Rt; Tue, 01 Nov 2022 07:45:32 -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 1opphv-0006g9-HQ for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:27 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opphs-0004JD-Bb for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:26 -0400 Received: by mail-wm1-x329.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so9731113wmb.0 for ; Tue, 01 Nov 2022 04:45:21 -0700 (PDT) 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=8xrR7YX0KQYmpE4nUY3dwv/3+doB1kdHZM6mgoRyRmE=; b=idBjVj2MZQ1nrqNHtjIrTeURv5d+eZl5JwaDqfRb4vt26ZlG7lbGARM2B+Y2fhYHnl fqAGhHhObiw2zpnYQ1FTkAuCyvDZCaidppne5QvTCjdzCAeYf94MJAohH/62R6C/fyqG MlKrGDfvwirz4qKTDaL4upsjclEIZgcDgFyGYkLB6y3hfBbSk629YtPBsnT8xnKI3O8g 0fMHY57vlBuXN31DJiED4JvLKzl967Z82tZWQ4X+NYrWnlv7AnBeGQ1QQszCxuH4Agqm RhCf85HWBpe3KiU5VcqFiF6hHyKE7dXsxbGYjHzXY3GeqzyHuY2JIY9dOkNtYYsR41wf Vr5g== 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=8xrR7YX0KQYmpE4nUY3dwv/3+doB1kdHZM6mgoRyRmE=; b=tLEZP/BQGBiL5JAqtPkuBV/mNdyyvmpP5wIalNZyQVmHBJoxIdFZnhTaBooByifOy9 8vYHqnib/ukc+GEjio0ZtaYcU99FdzEjLlB68Ymhr/dNVJJIl/x5/EA7HCYjQOxOTcGS yIY8+pUP+Btz3zettszuDK5txo8QMFU4Unf0ND5ifHgN8DAi1r+O8nEbJ1wgZBPCfiFd w40cWRmz3bJEUpXeeARudA22Xi7rmT7gzSpfWnppVQTg6zTLdHnhYLan7yc9xa4/HGjN qGtlxSGHnu2Sz2YeWhzSQu53fn+vcgkKwMTUzoa6Lffb0fhbgdwR4vmdgv+0dVkcHVbP NOYg== X-Gm-Message-State: ACrzQf2hdi3Lm7MfAvugyE7UYhnYQhPCwNa2M8eTkwvJkOyKAyd4Gve5 zp7NUGO0y6PAAxWiLcbRkJ8j6BnexMwAXg== X-Google-Smtp-Source: AMsMyM5lX2vgY6Za6dc7YMM5NjeuBmYRYqQb6DxwAAnxcS8h5BcGU0gUNeLCL7aev06DgvSEq/pngw== X-Received: by 2002:a05:600c:a09:b0:3b5:2f6b:c7c5 with SMTP id z9-20020a05600c0a0900b003b52f6bc7c5mr11562500wmp.141.1667303120604; Tue, 01 Nov 2022 04:45:20 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id f5-20020a5d64c5000000b0022cd96b3ba6sm12664689wri.90.2022.11.01.04.45.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:19 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang Subject: [PATCH 3/5] disas/nanomips: Use G_GNUC_PRINTF to avoid invalid string formats Date: Tue, 1 Nov 2022 12:44:56 +0100 Message-Id: <20221101114458.25756-4-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org Suggested-by: Stefan Weil Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil --- disas/nanomips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index e4b21e7c45..3f45447292 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -95,7 +95,7 @@ typedef struct Pool { #define IMGASSERTONCE(test) -static char *img_format(const char *format, ...) +static char * G_GNUC_PRINTF(1, 2) img_format(const char *format, ...) { char *buffer; va_list args; From patchwork Tue Nov 1 11:44:57 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: 13026901 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 7F7D6FA373D for ; Tue, 1 Nov 2022 11:46:32 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oppi1-0006jK-Gh; Tue, 01 Nov 2022 07:45:33 -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 1opphz-0006iE-Ea for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:31 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opphx-0004KZ-76 for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:30 -0400 Received: by mail-wr1-x42a.google.com with SMTP id j15so19751564wrq.3 for ; Tue, 01 Nov 2022 04:45:28 -0700 (PDT) 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=CPJrbsenwkc5Oq3ziyV5JTDQQsb8ALdFYEI0dEVhIPA=; b=zh2TqXJvEQ6SvMQ2g01dHPIhC/v5+NF59vgocHDncbEhZ32HsHyIwyPnriuTOK/tK0 CCmaQSy0msNS8EyKOIuKXbtnKByMMGVjuKQq0zFFqrlWDg3itF3XHP4aPJYiAOc5JVl9 sLTTq++IqQ2pnQP8qjsbUC4SUidPPvsjwCos9DbN00XpEq3BgDh5XbiPUld0HkS8VKm2 bysTkmBXd2dikzVRrGp42Z1B1Mv2qUzEtR0TC9h6Pq+wGbFeTAKDrURo4VNLzxpbR0qg Yif965UjoY2uOxkoOlZluHQIJ9bYLdFg4893ZIdKd7kw014nPp9ljj3hH8bumAmTAY+o Uyow== 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=CPJrbsenwkc5Oq3ziyV5JTDQQsb8ALdFYEI0dEVhIPA=; b=19AOgXdeXLsDU5ht4sUc3Gw42jGonDLsyGFYWuXC0Cb7WpGvFBPSB5I6W29CjNNTn3 qGajj8ssYZzVomQdFFPKQ9yOMI+zP3z+DsVH7h6jaNT1qhoitc6aiZ9DT8CDPFMejTjp 0ak+/H31WJthixNsuCFvfx6b3zSHOze9ad5Lrb9/QxEv6qUChj1X2MEqbtw0oY+kVXkw Bkps2biojBI0kFoRgzRQlDCwIn7iPmXs3n9Mm5uZnWmzjMjascrHpnJc0JJ0nE4zxo+0 nhoOaeWbw3SqHlSqHchudsn5CUZBclRa+XVTiyCrbU4sTBtRoonS+cMUqGvUhrJmN/l4 DyxA== X-Gm-Message-State: ACrzQf0Kgs3Ca2yu74TF0c5RQqjBfgAgXzlE2KbnBTYN4wgcbrTeJuBF LjGVHq+dUe17HMtdNOuosbM0kk4nZ5tGhg== X-Google-Smtp-Source: AMsMyM4BG1w/xGSfzELg1hX870FP4cDwSywrd7Fw1biLNAyvSz85CUzAMo/FX9v8m7c0eV4BgkKxHQ== X-Received: by 2002:a05:6000:10c6:b0:236:6613:a7bd with SMTP id b6-20020a05600010c600b002366613a7bdmr11749163wrx.570.1667303127339; Tue, 01 Nov 2022 04:45:27 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id w12-20020a5d404c000000b002365254ea42sm10046997wrp.1.2022.11.01.04.45.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang Subject: [PATCH 4/5] disas/nanomips: Remove headers already included by "qemu/osdep.h" Date: Tue, 1 Nov 2022 12:44:57 +0100 Message-Id: <20221101114458.25756-5-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Weil --- disas/nanomips.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index 3f45447292..821d4f8832 100644 --- a/disas/nanomips.c +++ b/disas/nanomips.c @@ -30,10 +30,6 @@ #include "qemu/osdep.h" #include "disas/dis-asm.h" -#include -#include -#include - typedef int64_t int64; typedef uint64_t uint64; typedef uint32_t uint32; From patchwork Tue Nov 1 11:44:58 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: 13026900 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 46DE4FA373D for ; Tue, 1 Nov 2022 11:46:27 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oppiF-0006qk-Hy; Tue, 01 Nov 2022 07:45:49 -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 1oppi5-0006o6-RG for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:37 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oppi2-0004PZ-Vf for qemu-devel@nongnu.org; Tue, 01 Nov 2022 07:45:36 -0400 Received: by mail-wm1-x333.google.com with SMTP id t1so5016937wmi.4 for ; Tue, 01 Nov 2022 04:45:34 -0700 (PDT) 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=QwExV9b1gxk9FCZRhGhlwZgX/20JdEDXF8rXM3evK2M=; b=qq3QRTsNqbVaqo6keWPucC2l3VHTU/1GVSxi6xVCY4HyvjuHiM1f9lREYYKGY/ECfI 3eZNczL9y+qHNLh9drIa3plHjJDkEKdjHMjO15ABA6LJHt4qZnuQ9yWFlRTH4bFSYNgF wS9aShRODghsGsvxIFv8F0k+XBIxFLTcE3pu8NUTwx5gEYSSAXkpSYCIeerEz8q/ocvs Yim+WpQkVxrtmsiS6Eh+moLfrHssMIxcaynWm+3GMva6Q+Z54Mnv0Mm4Uk9j08OnyPlM Vb4ycBOIb2zlmdF92N/uwi0WqvRw6mO9+nq9kYEWqaZPUy4nLkzO0JNiiiaeYlnxTeNJ ZZWw== 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=QwExV9b1gxk9FCZRhGhlwZgX/20JdEDXF8rXM3evK2M=; b=RCz72O6fM5gkiXjEi9Y3WGcmRNbXOEel+2mnT8aDSV/NN2c46Wal2wtOOXYCZHNoy0 XC69ghnekTXR/wEeSop4LElhy1g7DiI3gl1llq/Wq8DN365tCZNbpuhmxRN9+ljmJ/Dh qmnTGAIEolXle5jTkCoe+1PiT8zrF8atI3EIwP34BotKv4BTDP+qwzW6ymD0RnypAHAU jmUP5zFv+gOkqytcV0sjKKang27rzx0AgD6yoDZEgY97xKEM9FQwNCNUqzEsED2pCkQP ZvSRU+6fQY+eWTC63fv8aCwfigphmCF3ZCfVfhCZKshz4HoJQXhks6GIzsk9ZVCcBKYY 1r5w== X-Gm-Message-State: ACrzQf12PAQ+pN7ULCkGQ8iuazckrEYFakKIm6QlJnbWLp9FCmQfAw0I mh+qcIWt5Bo7IfxHiXEysBKIeOQmW0HfjQ== X-Google-Smtp-Source: AMsMyM53/3hARVI/0d3Zqb9tPGHiO0Xs1D3ZXd604PTDtegq8gBrvZ+UlMmPj5KtY6vgTnxBLHSPew== X-Received: by 2002:a7b:cb17:0:b0:3cf:7801:c76f with SMTP id u23-20020a7bcb17000000b003cf7801c76fmr4618373wmj.1.1667303133185; Tue, 01 Nov 2022 04:45:33 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id k36-20020a05600c1ca400b003b47b80cec3sm10670612wms.42.2022.11.01.04.45.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 04:45:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Aleksandar Rikalo , Aurelien Jarno , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Petar Jovanovic , Stefan Weil , Jiaxun Yang , Vince Del Vecchio , Richard Henderson Subject: [PATCH 5/5] MAINTAINERS: Inherit from nanoMIPS Date: Tue, 1 Nov 2022 12:44:58 +0100 Message-Id: <20221101114458.25756-6-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221101114458.25756-1-philmd@linaro.org> References: <20221101114458.25756-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org+qemu-devel=archiver.kernel.org@nongnu.org 6 months ago Stefan Pejic stepped in as nanoMIPS maintainer (see commit a 8e0e23445a "target/mips: Undeprecate nanoMIPS ISA support in QEMU"), however today his email is bouncing: ** Message blocked ** Your message to stefan.pejic@syrmia.com has been blocked. See technical details below for more information. The response from the remote server was: 550 5.4.1 Recipient address rejected: Access denied. AS(201806281) [DBAEUR03FT030.eop-EUR03.prod.protection.outlook.com] To avoid unmaintained code, I feel forced to merge this code back with the generic MIPS section. Historical references: - https://lore.kernel.org/qemu-devel/TY0PR03MB679726901BD6C6BE40114A2FE2A79@TY0PR03MB6797.apcprd03.prod.outlook.com/ - https://lore.kernel.org/qemu-devel/b858a20e97b74e7b90a94948314d0008@MTKMBS62N2.mediatek.inc/ Cc: Vince Del Vecchio Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <49f41916-687f-b9e5-2de7-9c658fe0d4c7@linaro.org> Tested-by: Thomas Huth --- MAINTAINERS | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index c41d8d65e2..0fa3c92b29 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -237,16 +237,10 @@ R: Jiaxun Yang R: Aleksandar Rikalo S: Odd Fixes F: target/mips/ -F: disas/mips.c +F: disas/*mips.c F: docs/system/cpu-models-mips.rst.inc F: tests/tcg/mips/ -MIPS TCG CPUs (nanoMIPS ISA) -M: Stefan Pejic -S: Maintained -F: disas/nanomips.* -F: target/mips/tcg/*nanomips* - NiosII TCG CPUs M: Chris Wulff M: Marek Vasut