From nobody Tue Apr 15 10:46:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1636629116; cv=none; d=zohomail.com; s=zohoarc; b=NazXuElctq8fPmtV06AIcidOIHka0AZCgt73cP5psKyyfcr4DagL0eM8sQGVAYq1yzzf5PXdfFVjoayIJOs5K/x5ZGGY8g/bi8SxAPwrP2NP6rbWffOFCYXDgQWujiqXb8ry9Pg2cjk7qyKUHZq+gPnqpjwy6OZCy4ON9bytD5k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636629116; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6nPNWSGH2oqme4L/mgDeHjYH64JjrZN0FOeCC5e7HFA=; b=bIpKV5RTW8a6YiPAIjNwC0G78sBVrTny8QocnM224C8Ug/9Q1bPRwNuuU6wvDFU9756wIPYphnc1zFIPAM6KV4iacQt5m3xcC1/8Ul6R5P1LYylXuQ0DRQuE6MQ1L9+E2N7I0/1azmfpafD2bId8EMBayap505bQI1bJGF4wwFU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1636629116342847.2532561535311; Thu, 11 Nov 2021 03:11:56 -0800 (PST) Received: from localhost ([::1]:38600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml7zn-0004gp-BA for importer@patchew.org; Thu, 11 Nov 2021 06:11:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7v4-0004wx-W2 for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:03 -0500 Received: from [2a00:1450:4864:20::432] (port=36485 helo=mail-wr1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v3-0001j6-G3 for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:02 -0500 Received: by mail-wr1-x432.google.com with SMTP id s13so9160673wrb.3 for ; Thu, 11 Nov 2021 03:07:01 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6nPNWSGH2oqme4L/mgDeHjYH64JjrZN0FOeCC5e7HFA=; b=do1ddRpkX0XK/VOEX1YBEKqcqbV0HY4uh+BTQOpOftkmNe7oUAOHCKErBH0RlR4XRX OYumYosDubqx1jOwTOc0Ucw6cZoepqVHphEYSNhi9PeS9R016Kb728lPsTnJjq+4zewH Z1RnnO9ZuuvFN0MyGxBru8QMU7S4W9VNqlljEBRHHYS0jTPH/p3dUxq0Fwgfd+oDR8pU +UHJH+2kLyohbACHJA1TeKPRPK152HxqRzGTAozi8XRRRLY6Cpy4Vaw8vm/rOLxkv3zq MzMFT5sMnz4LAPVhB63tf2A7O9JnaBtOTsKCKv8avJPHQhbwxHeg8EPCNJjwJiPDON15 8FRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6nPNWSGH2oqme4L/mgDeHjYH64JjrZN0FOeCC5e7HFA=; b=6zvSYernAWA98NhQHWr7CDRMs4Rw9jyZ2P9HqQ4uKNAHcUIIoxR3kyTHRGVroGS5zy Nsf6t2Zx21vJJYcO/PpyXhTqtyA7xumDcAMh6zlZVQDwubaOdGupW8FyVadWTzaTRaIk JSU1pCWikDG+hAONhGrMQ5nnIZF7YYBalmjnHyQd3cwjdbv9tSDJeGYlBW/Siwl3nBE8 FxoJkNN1mYm2SnQmgrP98Iwn73Wxc11Bc4h757csannEq018Uf1qFwRfq4FE6zHiQjJC eKtNq0kWj+MZ4F3djToH/mNjKlT/y272MoFO12gUJkV9xLHKAKcwfyCr3VJF0mzmmxR/ JLoQ== X-Gm-Message-State: AOAM531CRoyxuRqZBlWUelcHZjPaSgvadyFSsTvW+KHb0TMaGNwOiOaO fiWH5UKe+uSWaOPgFlASw4HqniNMz64wvkVrz0c= X-Google-Smtp-Source: ABdhPJyywwco1XPHV5I1mWOcJEw/fiJZ9WYAkoPORV3ZACKwviQLlU85OC8ZvkG4jb0ONY/Xxj1Klw== X-Received: by 2002:a5d:64c4:: with SMTP id f4mr7969627wri.6.1636628820110; Thu, 11 Nov 2021 03:07:00 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 1/4] tcg/optimize: Add an extra cast to fold_extract2 Date: Thu, 11 Nov 2021 12:06:53 +0100 Message-Id: <20211111110656.237727-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::432 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1636629117124100001 There is no bug, but silence a warning about computation in int32_t being assigned to a uint64_t. Reported-by: Coverity CID 1465220 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- tcg/optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index dbb2d46e88..2397f2cf93 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1365,7 +1365,7 @@ static bool fold_extract2(OptContext *ctx, TCGOp *op) v2 <<=3D 64 - shr; } else { v1 =3D (uint32_t)v1 >> shr; - v2 =3D (int32_t)v2 << (32 - shr); + v2 =3D (uint64_t)((int32_t)v2 << (32 - shr)); } return tcg_opt_gen_movi(ctx, op, op->args[0], v1 | v2); } --=20 2.25.1 From nobody Tue Apr 15 10:46:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1636629408; cv=none; d=zohomail.com; s=zohoarc; b=ak4QC54OngDBiF/ooklJXXQXd+eOFA4W+F5ZA23u8BmAcM84CHvNCcrqa3PYgJiSu7LEHayoBhypmRNXXkboDaR/5+z+F/lUdfQ2FDqweynPr2pTBD1y6oTCUu3WoO5pPF1QcCmRQi19HMWeFYAGAZF7oXNlHVOWwEHJyYYfFKs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636629408; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=bh9kIk+bt83GJ1fKJT1mekYlH7elEbiEfE8/vcn0SLk=; b=ZZfnKSWCoVNpmg/aOHm8uIK0Wh+Mcaz3df3t2cPlDF2VVZfioC5MMBPop2tD95yf8irIVEOxi8mnfSSzmtnW5+Vob7QtzCWTpjB9RTKV8N0oem7GtQATvKJPf1cO0hYYRh7hO7houxWQoYPRBiFpCjNN8L1Pc8W9LMTmWGNPZy8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1636629408585765.9526994818498; Thu, 11 Nov 2021 03:16:48 -0800 (PST) Received: from localhost ([::1]:49520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml84V-0003nN-Hk for importer@patchew.org; Thu, 11 Nov 2021 06:16:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7v6-00050w-Dv for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:04 -0500 Received: from [2a00:1450:4864:20::430] (port=35536 helo=mail-wr1-x430.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v4-0001jU-Rf for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:04 -0500 Received: by mail-wr1-x430.google.com with SMTP id i5so9184246wrb.2 for ; Thu, 11 Nov 2021 03:07:02 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bh9kIk+bt83GJ1fKJT1mekYlH7elEbiEfE8/vcn0SLk=; b=haHowDRp7jRrau8od0cTGi7Zxo9JjrtoQyrGAhKr0lKsHF9Gw2vcheNXuJJ5p0cixU PFL2qywGltAlQtt+OLBY+Cb+I26RIH9KwluwLKMyvzir0AkminSeNPDjl9Iw9CQCLHfa JYpEx/zIjM6g9Dd+6slJooyqrgYVN3LeQ5NMO0nGr244rAy6ntk55Ik8M9FN5y1ZCmJg oTCiUiY9HTedrGFnOU+b8z9nII/PTyQ1nbMuOGabrz15aC2LfKlUJiCJ+hVEa2gqFLHg QQQYrF3WEd6ygfu5j9S1rw2+2fW2+iYGim4OVGtdSRaXFv7ZzYktXlirCgE3Dwqo6kOC uHXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bh9kIk+bt83GJ1fKJT1mekYlH7elEbiEfE8/vcn0SLk=; b=DTdgk5e8OF8qfWd6KmNBnaSaLyDSkfEra4ybM7Gcq1/f3cYmPquYXZaaNkXRdHLkCt u7fsc9AUnfRXcaJ5OXVh1A/MRD7m1arWMcgPayyuGiBzDjFoQzZFlRlX7F7N1FQVmOfr qwWxGhZfWmGamI6HlK94RZ06uyAdVTeyAodFa0r9+sSBmb+AD46q4rqd/JsItoNGVW61 yOrcppq+7He107FIFUsvsQ9Ql3mibBk3BojmvKdnvFcS21a0NVuUZk51kSp+DbxJyPux 3PkyzsIppaqy0UZeVfbYMKspX0/pVCKA9/MH7sIQ/DSNEaeyiMUEze5ASJu4PNZsjzqD Kipg== X-Gm-Message-State: AOAM533qWZ1vhVH5Baj0XHG1IZVVI2zoaCEHMkMNGZYKfuWKE85ZsVbK KXhI8Z90I3pMEDsUlny5jAU6cnPb/hML0Pew9pc= X-Google-Smtp-Source: ABdhPJwNgotYgQ8s50EJR5QGpMmqJ+84TSOij6Pm/ITA4Q/uCN+tR63FlL6eHIpRXMwzDNfcdndi0A== X-Received: by 2002:adf:ee04:: with SMTP id y4mr7732908wrn.0.1636628821389; Thu, 11 Nov 2021 03:07:01 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 2/4] tcg: Remove TCI experimental status Date: Thu, 11 Nov 2021 12:06:54 +0100 Message-Id: <20211111110656.237727-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::430 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1636629410903100001 From: Philippe Mathieu-Daud=C3=A9 The following commits (released in v6.0.0) made raised the quality of the TCI backend to the other TCG architectures, thus is is not considerated experimental anymore: - c6fbea47664..2f74f45e32b - dc09f047edd..9e9acb7b348 - b6139eb0578..2fc6f16ca5e - dbcbda2cd84..5e8892db93f Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20211106111457.517546-1-f4bug@amsat.org> Signed-off-by: Richard Henderson --- docs/about/build-platforms.rst | 10 ++++++---- meson.build | 4 ++-- meson_options.txt | 2 +- scripts/meson-buildoptions.sh | 3 +-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/about/build-platforms.rst b/docs/about/build-platforms.rst index bcb1549721..c29a4b8fe6 100644 --- a/docs/about/build-platforms.rst +++ b/docs/about/build-platforms.rst @@ -54,10 +54,12 @@ Those hosts are officially supported, with various acce= lerators: * - x86 - hax, hvf (64 bit only), kvm, nvmm, tcg, whpx (64 bit only), xen =20 -Other host architectures are not supported. It is possible to build QEMU o= n an -unsupported host architecture using the configure ``--enable-tcg-interpret= er`` -option to enable the experimental TCI support, but note that this is very = slow -and is not recommended. +Other host architectures are not supported. It is possible to build QEMU s= ystem +emulation on an unsupported host architecture using the configure +``--enable-tcg-interpreter`` option to enable the TCI support, but note th= at +this is very slow and is not recommended for normal use. QEMU user emulati= on +requires host-specific support for signal handling, therefore TCI won't he= lp +on unsupported host architectures. =20 Non-supported architectures may be removed in the future following the :ref:`deprecation process`. diff --git a/meson.build b/meson.build index 9702fdce6d..2ece4fe088 100644 --- a/meson.build +++ b/meson.build @@ -335,7 +335,7 @@ tcg_arch =3D config_host['ARCH'] if not get_option('tcg').disabled() if cpu not in supported_cpus if get_option('tcg_interpreter') - warning('Unsupported CPU @0@, will use TCG with TCI (experimental an= d slow)'.format(cpu)) + warning('Unsupported CPU @0@, will use TCG with TCI (slow)'.format(c= pu)) else error('Unsupported CPU @0@, try --enable-tcg-interpreter'.format(cpu= )) endif @@ -3290,7 +3290,7 @@ endif summary_info +=3D {'TCG support': config_all.has_key('CONFIG_TCG')} if config_all.has_key('CONFIG_TCG') if get_option('tcg_interpreter') - summary_info +=3D {'TCG backend': 'TCI (TCG with bytecode interprete= r, experimental and slow)'} + summary_info +=3D {'TCG backend': 'TCI (TCG with bytecode interprete= r, slow)'} else summary_info +=3D {'TCG backend': 'native (@0@)'.format(cpu)} endif diff --git a/meson_options.txt b/meson_options.txt index e740dce2a5..411952bc91 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -59,7 +59,7 @@ option('xen_pci_passthrough', type: 'feature', value: 'au= to', option('tcg', type: 'feature', value: 'auto', description: 'TCG support') option('tcg_interpreter', type: 'boolean', value: false, - description: 'TCG with bytecode interpreter (experimental and slow)= ') + description: 'TCG with bytecode interpreter (slow)') option('cfi', type: 'boolean', value: 'false', description: 'Control-Flow Integrity (CFI)') option('cfi_debug', type: 'boolean', value: 'false', diff --git a/scripts/meson-buildoptions.sh b/scripts/meson-buildoptions.sh index 55b8a78560..45e1f2e20d 100644 --- a/scripts/meson-buildoptions.sh +++ b/scripts/meson-buildoptions.sh @@ -13,8 +13,7 @@ meson_options_help() { printf "%s\n" ' jemalloc/system/tcmalloc)' printf "%s\n" ' --enable-slirp[=3DCHOICE] Whether and how to find the = slirp library' printf "%s\n" ' (choices: auto/disabled/enable= d/internal/system)' - printf "%s\n" ' --enable-tcg-interpreter TCG with bytecode interpreter = (experimental and' - printf "%s\n" ' slow)' + printf "%s\n" ' --enable-tcg-interpreter TCG with bytecode interpreter = (slow)' printf "%s\n" ' --enable-trace-backends=3DCHOICE' printf "%s\n" ' Set available tracing backends= [log] (choices:' printf "%s\n" ' dtrace/ftrace/log/nop/simple/s= yslog/ust)' --=20 2.25.1 From nobody Tue Apr 15 10:46:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1636629696; cv=none; d=zohomail.com; s=zohoarc; b=j/QxwFjubc6fhgbhTH6mImGnDCwUb35dYqSsPJAubOpW1ESrU6gaK6MMfbnlG2hXDdgZa1LiQrsAAq/I1LJSZ5SIc0GyY7vXFRoOYnperj0CvXduwm7t/sxwvMmD4CfCGOHkg7r44A4RjZYKTgLBQQt/cAjVln/Ma+KlwBdqyhs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636629696; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=K7zU5NSGyIlPAqE20tDqI9QWRDFpAraM8UPJvOKsEPvBjz9oyH/za524ldGCcMitTPEqOJskBTOji7aCv3ASviS/GrpxtD13La9Jj7MceLRXf5ArWcNq6jA8f1wsDhNpPLRaa6zmyI2AxKcyrx9FPY+slco3ZSdjpa2mmH+Y3+M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1636629696369185.94220171805205; Thu, 11 Nov 2021 03:21:36 -0800 (PST) Received: from localhost ([::1]:60786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml899-00033E-DQ for importer@patchew.org; Thu, 11 Nov 2021 06:21:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7v7-00055U-Ln for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:05 -0500 Received: from [2a00:1450:4864:20::42f] (port=37576 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v6-0001jz-0S for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:05 -0500 Received: by mail-wr1-x42f.google.com with SMTP id b12so9159692wrh.4 for ; Thu, 11 Nov 2021 03:07:03 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=Z8+vuNkQAYjTxmQ52CYnP07l42a1u4YnAPm9TyxAHUGrLUihx/MLWIXCtE33elYWcP s7SS66YTB1Ekd+Td3gBYSz+F+4TSi2ba5JzJHFJNnmpvzsNGQu9xrusgrMYyRDO/y7f5 8Y90PVRKgc4M1xBAGgYrk+sqemjsMZ9QjqFe0dTIThBm7Q3IwEKXJdwqtUW30GP2n2R8 Te7edOEj3eKo4ijZ/mQv1EbfOwYeX8YHu7v1lKzEYAn+SEYsfgy6AfSEblS075O2Ba7i 11RaTtswMVoER1DvI0YuBgJH9rBdJ1TYilVugEXUrtBVC4wX//1InbhkIcZn/DFO/zUo tmrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=n/Lg6tRRaf0tebXMyPh4xLh7Yicv5KIZg8mfFnBTuXA=; b=utmZ945pgght6yqoziKorDN1kExCKGCN7WN8GLEfQIrHS8/MSNLpFUaS2oYqK/hdCA kbOceDqOJ6UuOLBr+KF6aiU8mH8iO0u5nDyLDju9MABtBGpIQ9L+s0BypGACqSAMrZUV NBMYMVFpoUXgasWGMvGihwJwGwKhhzSSioiJZuCTxJIjRut5EWJ70pMKtOwyiz0qBVmD uhfZ3jQ6mYqtsi+loDVyQ52jLcuayFOJHX2mVLu04BC6I1IaXUKGQY6ywNKr8bfPmn+F HwI4v7NfgaPlF6CIqgtgVUjlwVUFaok56t74kuDOolC7dOKZfx0T5SyK0gRpmZF+YtLy S04w== X-Gm-Message-State: AOAM532yLHAUNGjjMe4ROSZAv4rt5+N/IgEV+pb8RoB7iSSmVVZXlmap FI/gRkBaJbEzkgySK5U03uUOiNnFnEj0BJjhOaw= X-Google-Smtp-Source: ABdhPJy8ESNWTKehN3ACex3iKyOLn7uxn6IwfJe6fwJPV13iyvUo2NZqr3OUbSLFrn5iLaMClUu60Q== X-Received: by 2002:adf:f0c8:: with SMTP id x8mr7522434wro.290.1636628822630; Thu, 11 Nov 2021 03:07:02 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 3/4] tcg: Document ctpop opcodes Date: Thu, 11 Nov 2021 12:06:55 +0100 Message-Id: <20211111110656.237727-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1636629697860100001 Fixes: a768e4e99247 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/658 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- tcg/README | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcg/README b/tcg/README index c2e7762a37..bc15cc3b32 100644 --- a/tcg/README +++ b/tcg/README @@ -254,6 +254,12 @@ t0 =3D t1 ? clz(t1) : t2 =20 t0 =3D t1 ? ctz(t1) : t2 =20 +* ctpop_i32/i64 t0, t1 + +t0 =3D number of bits set in t1 +With "ctpop" short for "count population", matching +the function name used in include/qemu/host-utils.h. + ********* Shifts/Rotates =20 * shl_i32/i64 t0, t1, t2 --=20 2.25.1 From nobody Tue Apr 15 10:46:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1636629781855176.5165467046869; Thu, 11 Nov 2021 03:23:01 -0800 (PST) Received: from localhost ([::1]:35692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml8AW-00059F-QJ for importer@patchew.org; Thu, 11 Nov 2021 06:23:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7vA-0005DY-G1 for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:08 -0500 Received: from [2a00:1450:4864:20::430] (port=34495 helo=mail-wr1-x430.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v7-0001kH-VD for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:07 -0500 Received: by mail-wr1-x430.google.com with SMTP id d5so9169692wrc.1 for ; Thu, 11 Nov 2021 03:07:05 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:07:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J1v0TEt4nFAPDqyOkQCB7uRP6b4G3GMZ4DQtpMIJcMM=; b=WUNXmJeK/GZTMCrNfFGMBbPqImbQuHgnuvORU6UpFVJbIU1sgQ6k7DzI0sNBJXAvDW xgGiJFXB1jSi84xEYqgNhfCkU54+rimozBcdeG5y+I6Xqcg2EdUg+RyGDiPp6PPM/MFN auY1IpGlW5QtfIsock4RA9YyJlzQvjZ5GaUT4aTrZR93WDaM6STsJQBTy1e3Qitozx3o Zht+7D2ZDBZNhqxeQk7jq826H4ME2H3Jzd2UXD3+1n+u3A9B1OEFdAb9Jy/J0blGG5A0 7Ufv1gsWMt97Lgaleg3NxYn/lqry9FY/L2cv3084lrgCBFzl2RJvwP54RyDypxZ0bTbu H+UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J1v0TEt4nFAPDqyOkQCB7uRP6b4G3GMZ4DQtpMIJcMM=; b=mqCZY2VfNEyzw1/K1x1JGerVlUFkOeilN1Qm2FejUm/+sIEy5XIodFrLgHZ0uw8sns PhipmQIiCnqZAcqBFfgVVCbNdmtHT9okrcpvKV+b5Abtg7fW5JPW/MgGg+uNusjpnSYW 0m2Jw8t9BvNgh7VAW1ISV9ALrgO0yFJqQNnt+g4sxlGjET0lcmJlgtYTHxZ0fXR7jfRq l9L7bJsB0fdCcIARYim63ObqmyjqpMS+tV0bOqu1tPEA84PXP3ailO2GWrDyWGVODxvI LoiQavKPV/N0fD4K9qVw0B1WCIIcyO5qSC0k6QXUvwpEKhJXUz289ogMX7zHg8m76tW8 n/Og== X-Gm-Message-State: AOAM530vBiBw9yX8DnhkgVl3scJK86SFZmaPXg+P0N6AzeSJULHsC5T0 Q2lzHwYhbjWSfOPg1AcMiIEKxMBWBi5B9yxlpPU= X-Google-Smtp-Source: ABdhPJzrgxsA21QH8kTBShVbaO7jNgqEQA7j9mWIYBYKzh1Ut3qeyev0R9bc6yQmH8ErPSOpFodlaw== X-Received: by 2002:a5d:4d81:: with SMTP id b1mr8111822wru.366.1636628824695; Thu, 11 Nov 2021 03:07:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 4/4] tcg/s390x: Fix tcg_out_vec_op argument type Date: Thu, 11 Nov 2021 12:06:56 +0100 Message-Id: <20211111110656.237727-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::430 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: Thomas Huth , Miroslav Rezanina , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , David Hildenbrand Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1636629784181100001 From: Miroslav Rezanina Newly defined tcg_out_vec_op (34ef767609 tcg/s390x: Add host vector framewo= rk) for s390x uses pointer argument definition. This fails on gcc 11 as original declaration uses array argument: In file included from ../tcg/tcg.c:430: /builddir/build/BUILD/qemu-6.1.50/tcg/s390x/tcg-target.c.inc:2702:42: error= : argument 5 of type 'const TCGArg *' {aka 'const long unsigned int *'} dec= lared as a pointer [-Werror=3Darray-parameter=3D] 2702 | const TCGArg *args, const int *const_arg= s) | ~~~~~~~~~~~~~~^~~~ ../tcg/tcg.c:121:41: note: previously declared as an array 'const TCGArg[16= ]' {aka 'const long unsigned int[16]'} 121 | const TCGArg args[TCG_MAX_OP_ARGS], | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from ../tcg/tcg.c:430: /builddir/build/BUILD/qemu-6.1.50/tcg/s390x/tcg-target.c.inc:2702:59: error= : argument 6 of type 'const int *' declared as a pointer [-Werror=3Darray-p= arameter=3D] 2702 | const TCGArg *args, const int *const_arg= s) | ~~~~~~~~~~~^~~~~~~~~~ ../tcg/tcg.c:122:38: note: previously declared as an array 'const int[16]' 122 | const int const_args[TCG_MAX_OP_ARGS]); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixing argument type to pass build. Signed-off-by: Miroslav Rezanina Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Acked-by: David Hildenbrand Message-Id: <20211027085629.240704-1-mrezanin@redhat.com> Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 8938c446c8..57e803e339 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2699,7 +2699,8 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType t= ype, unsigned vece, =20 static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, unsigned vecl, unsigned vece, - const TCGArg *args, const int *const_args) + const TCGArg args[TCG_MAX_OP_ARGS], + const int const_args[TCG_MAX_OP_ARGS]) { TCGType type =3D vecl + TCG_TYPE_V64; TCGArg a0 =3D args[0], a1 =3D args[1], a2 =3D args[2]; --=20 2.25.1