From nobody Sun Nov 24 20:44:11 2024 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=1720193699; cv=none; d=zohomail.com; s=zohoarc; b=FTj0Gjv1px9gs35ixBkSY98ExnXUlTWnXlV8AKqfk56XPq+hjZ2iiZGPrgVtsPupa5x82gf9QCPtKJPMxX7PHVNsHAkTdeg61nCdRgKjnr2fCNlTM+pwO83lyBYzWGu4B3v/XibKmTRFlyZvET5N2ydBb9zq/190OqX8Yc4Q778= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193699; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ldyUH9Hn6Eww0iJRRhRb5soziQO77Zzr7htHiwXtIxg=; b=cCBeul/1Y8hav5hD+xEZ65zmHbpvNrvxngkblilI/tddeEd1aHkQvR849H27JNA7V6QilPpa+PDG7N26S9ABcLDe8i0tAfbOo/AYX8c4wcaHwnn1ION9z1OZNToM1QFYwoeR2AqBEqz/R3jEP1inHIVqG2r6u3dsY7HT8ZZ2oB0= 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 1720193699394890.7090229047776; Fri, 5 Jul 2024 08:34:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktv-0005dB-Ed; Fri, 05 Jul 2024 11:31:07 -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 1sPktq-0005bk-UC for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:04 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktn-0000IM-Sj for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:02 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-58b447c511eso2379572a12.2 for ; Fri, 05 Jul 2024 08:30:56 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77d965dc4asm37874766b.87.2024.07.05.08.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:53 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2401F5F8AF; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193455; x=1720798255; 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=ldyUH9Hn6Eww0iJRRhRb5soziQO77Zzr7htHiwXtIxg=; b=vcazQ5gK9cdfKbFtgkJ14zzr9+j84b462kAWPGDtM7GIgN4qS1s1N5saR0iNe+dkwt pSRqq8/2tVtkZe9EpFEgOCoG5F6hZSU4EskTYbI7yJR1I72umHCr2fT0ZdqJkLJ05QLp EvslcGMPD5enJaEl49PD96xuTMZLqboF0jHbkEdKlrNz9qEHecnci2Z+L7ARqGF6zXDa VJmjKW6mUKzzvhOOZ/YJalIvm3trLp5W1itxAVPgpyenXorjlAvKajnT3YzHk5HJjAUo rZaVB4bQHch6SF2tMek081MUtfbJZHRQuk+6DcrupIzE/X95psccYib4MDuRJgaeO/T5 eeng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193455; x=1720798255; 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=ldyUH9Hn6Eww0iJRRhRb5soziQO77Zzr7htHiwXtIxg=; b=Wmu+8Bd+FwYdZUiuPrpNEhMNE0rnptwhr2RJGOlV22J1seiU2qugYylTvnyHfPOcaY MplZf2fYVx2rKPqWRpccJocqW8+gZW5WZx5L73+uylUSes+CE9E/xxEY7SPKAeFHHmE9 EoMnFlXKVe7C4/QmQV9BQ7Up6qkk6GT9DC4I0Dv0c51lZSypPVfznxNg/wQK4OJGibt+ j3FhsjQegqFFY4zLG6VVrQs4xK2ip+Bu1qzhjTx+sPuGWISdeXyVKWzsiX0Py9EBoElm fbdAvQdqAChFxnoozXYAhgExR3cBRDTUm4vB/PgHnOW/sW0kY/5vMCudjq15eJ+ZLmPp rwZw== X-Gm-Message-State: AOJu0Yw1oZmjM0byeGQkV/hCVcJlmZ2vKQGB8bE6nh8Hwc2SmqOeFs66 vHInai8TqkW0PaKRkdaMMrOUUT3LMwHn7KITkhtV9s6S6zvYHRmb4g8DQgIfHKs= X-Google-Smtp-Source: AGHT+IEfBcRLZhAWGhejHXED4dXSg1RWBn099gU0f+sUf8pNd+fwrtcxRBVpOGpZ/h/4ayl9vx38OQ== X-Received: by 2002:a17:906:5acd:b0:a72:4402:9344 with SMTP id a640c23a62f3a-a77ba46ce62mr418927266b.20.1720193454358; Fri, 05 Jul 2024 08:30:54 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 01/40] tests/lcitool: fix debian-i686-cross toolchain prefix Date: Fri, 5 Jul 2024 16:30:13 +0100 Message-Id: <20240705153052.1219696-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::52f; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193700074100009 I guess we never noticed and tried to build with this cross image. Fix the toolchain prefix so we actually build 32 bit images. Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-2-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/debian-i686-cross.docker b/tests/dock= er/dockerfiles/debian-i686-cross.docker index f1e5b0b877..f4ef054a2e 100644 --- a/tests/docker/dockerfiles/debian-i686-cross.docker +++ b/tests/docker/dockerfiles/debian-i686-cross.docker @@ -169,7 +169,7 @@ endian =3D 'little'\n" > /usr/local/share/meson/cross/i= 686-linux-gnu && \ =20 ENV ABI "i686-linux-gnu" ENV MESON_OPTS "--cross-file=3Di686-linux-gnu" -ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dx86_64-linux-gnu- +ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Di686-linux-gnu- ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-lin= ux-user # As a final step configure the user (if env is defined) ARG USER diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index b25e3ac4dd..ac803e34f1 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -167,7 +167,7 @@ try: =20 generate_dockerfile("debian-i686-cross", "debian-11", cross=3D"i686", - trailer=3Dcross_build("x86_64-linux-gnu-", + trailer=3Dcross_build("i686-linux-gnu-", "x86_64-softmmu," "x86_64-linux-user," "i386-softmmu,i386-linux-user"= )) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193614; cv=none; d=zohomail.com; s=zohoarc; b=YxjbZbgQrxtAhD6qmQ61CtMCVUGmV5QgyrDsQ3wy8+Y8fubqdhywG6lrV0Moz2WIEqCRcDd9HRFKWs7aZx0lipaQv8OdAV0ZgiJ8GKHNQFkAXG4eHm9hPZYwK/fTRJU36ZMjmO7MANcAmvWJQYvXo+qhSc4pMpPk4Mtr+BdJBeQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193614; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=opDNu+IupAr1RipdhERW7M7QO1kyIP56AngvVE3Dieo=; b=Lm8xLW7RSmxSD+SjX0GkVBIVmlIt9uZNpVhFTB4yPUOtZP6rFg7dvGFzTWjgEdW5RUBzNbBQnUH3sqLX2Nq4MU59qoGljZqoXleohQ64BkIUw0vgrVaDCjhlTIvCNRuTQkRIYbSLkDmqFLvAoUllApd/4whlpBwfYF7pbTFxXUg= 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 1720193614247522.7534208864216; Fri, 5 Jul 2024 08:33:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPkty-0005en-DX; Fri, 05 Jul 2024 11:31:10 -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 1sPktq-0005bf-7M for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:04 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktm-0000He-Fm for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:01 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a77c2d89af8so164664066b.2 for ; Fri, 05 Jul 2024 08:30:56 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf1bd30sm698297466b.12.2024.07.05.08.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:53 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 37FCD5F92A; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193455; x=1720798255; 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=opDNu+IupAr1RipdhERW7M7QO1kyIP56AngvVE3Dieo=; b=zy66lh6uLtmbnHP/7GB2SmWSjqa+OiLRrYsMM0M1u3fvjvYFKYjuNoyLFlk+iyVAU2 hoLvVmPJCA87gmBcyrchAi54jsStxfhIGBM8D1RzXU1/VYFFFoR7mh2AYnc5qZIdEdgH GSVKD8sYKt3QnoStqBFfu87gHuKQZzpbehUUvYlUnb5CE14ySaR9vSbhdxjZRuDW5Ptm 3hz1lg+mFNnsrvZFAHeNA6Sch79EeS8XSkzviCHdtr1w6Wzoe4GWQrMznpuQEuOOxDhm n4jhO8jvGoyZNlwUW6KUgWZepZORdPfj3aK6CB97VzCv25/98FkKCA+8qKL7Su0Yvlu3 /RYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193455; x=1720798255; 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=opDNu+IupAr1RipdhERW7M7QO1kyIP56AngvVE3Dieo=; b=GGNKt0P9uGwfkC1nukzM+ju294sLyn2Ya9mBnWBo8WAC2ifOHxPtF+XcC+yK5wdtly q82xs0C+CETiGSM2C9HJrqqiVUBRjf5A3a5oKjQlCe0hKbk8OncNCEu+Rfh0yC2L1sxm xWksaXxrEVqHHN3teEmFIgkdKhSW4oswlF/RrvcSWbsAFjbxo6e8mCxkpjZtkUQAPLfY 6dxbro8Ko6ZRmMs/TMeT6dbLWXECHM2QBxV7jdY8LyTwbuLa34LgKJ7oX3UL05t8afZv lKvqoI2VWwXAdyQHxKyckqdikibOVXPHc6HyIqztKT0/ZGPhxQY5aF8TsGPZpRW+fGWM qIqw== X-Gm-Message-State: AOJu0YziA+qKGzj1j0epip9RlfaEYPnroNpMX5SZwb2Y7I5BC5cg+jAW tZN7EW/qVfyr0ULLZ9R3vulr3TyAaNIHG1zrJSTVZjZSIoxXysTOY+jHwlAg1ss= X-Google-Smtp-Source: AGHT+IFdFfDntMmeleKEXO7dviAH5wDdhVXxOdrsqph4KadIA2NIsuPc/TUSUfKvEJb7cehbksl9YQ== X-Received: by 2002:a17:906:228d:b0:a77:c314:d621 with SMTP id a640c23a62f3a-a77c314d83amr209266666b.13.1720193454631; Fri, 05 Jul 2024 08:30:54 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 02/40] testing: restore some testing for i686 Date: Fri, 5 Jul 2024 16:30:14 +0100 Message-Id: <20240705153052.1219696-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62c; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193615718100003 The commit 4f9a8315e6 (gitlab-ci.d/crossbuilds: Drop the i386 system emulation job) was a little too aggressive dropping testing for 32 bit system builds. Partially revert but using the debian-i686 cross build images this time as fedora has deprecated the 32 bit stuff. As the SEV breakage gets in the way and its TCG issues we want to catch I've added --disable-kvm to the build. Reported-by: Richard Henderson Suggested-by: Thomas Huth Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-3-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 47bdb99b5b..3de0341afe 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -37,6 +37,17 @@ cross-arm64-kvm-only: IMAGE: debian-arm64-cross EXTRA_CONFIGURE_OPTS: --disable-tcg --without-default-features =20 +cross-i686-system: + extends: + - .cross_system_build_job + - .cross_test_artifacts + needs: + job: i686-debian-cross-container + variables: + IMAGE: debian-i686-cross + EXTRA_CONFIGURE_OPTS: --disable-kvm + MAKE_CHECK_ARGS: check-qtest + cross-i686-user: extends: - .cross_user_build_job --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193545; cv=none; d=zohomail.com; s=zohoarc; b=hKm02Lt22FeQ/v1K52Cp3BXYdhB9I4wb8BOog8zmoVK5QRAfIuSZqJW5il2jMQ06D5kka9Dt9o7kk1/xmj8dwaXaKS5EdFY5NuzaqKDCeuJUI+jMUp5OSa1Br311UZKlGqZCOFTsFCNdyFITp1WaS6NakjLOdwJNamyW/lP5Png= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193545; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=CurKVhgGzPO6kvK5KOd6kl4xIM/fKHjGD5Ox4ZiqWow=; b=nLVnmTi0oTkJ37oFhxi2ub6MDUQhG1IwhFW8Md+XKdVPEYyRObceta7ZScqIau2WcrgRbBmwtraGCg/iL/g3xl9y7WYmakUm2u2lyDpkRIg8gnYrv6WihN6cgK8SZ1CCx8mV/U33WissfY7yZ9SBYOBRFt+TycpawemC+pU8m3g= 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 1720193545951225.9746211207779; Fri, 5 Jul 2024 08:32:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktw-0005eC-HU; Fri, 05 Jul 2024 11:31:08 -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 1sPktq-0005bl-Uf for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:04 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktm-0000Im-Fn for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:02 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a77c9d3e593so103473166b.0 for ; Fri, 05 Jul 2024 08:30:56 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c3925a96sm105257666b.120.2024.07.05.08.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:53 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4E4895F92B; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193455; x=1720798255; 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=CurKVhgGzPO6kvK5KOd6kl4xIM/fKHjGD5Ox4ZiqWow=; b=QooZZcdZAyIt6GDlokBLZJb/gbEL0O4BwIdWv/6PLTYW1rmf27H2wPHiYhdUsHW+aj I6G5yB7oWWpRrJ0tb00rs/7YmFr3R1NHgeybw9M3TQf94ohp5uRqypLfh3BHYUbeFRxU ificnIkuJo7s1RAsNFvIxDu36I29jIdpsVURL8mQU832ho39SOlcudUK5KnyW6IAJMMK P5WI80RJd8zMaFPWPn1w9IdvDbG5jmT9tr4a1TD0mDXrGi712Zih4+ekS+hs6/amOOFK X4W7i9nG3Av7VQHfZfZKNTsQl5wHCzWL+V+DPM8IuvlJReoIls/wdBKsjlPcfDVURfX7 aU5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193455; x=1720798255; 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=CurKVhgGzPO6kvK5KOd6kl4xIM/fKHjGD5Ox4ZiqWow=; b=UUFXreYZxZirS91Q3jjVoULn36RrKfIe/YwW+xKV3Ou2JnRNvGGL7/1VihiLJOLpD+ A90QoCYP6HOWrPmPp5DN5CV1rHsQUGYjA1bG+av9qHBWZS3RWqvVW7mq2rLQZuCLKpQb KETLug0Ja794zPGCsnO+xVx3D3Jf7CYPyA/dQyKLEi+2tWDj4m62WnTyccUq+7Xejp0D ydOtPXsMhVakFq8rDgQNMAFSLfaJ11fBvb1u9rjHEG6INx6TTM0GJ3ywu66OGi9bW58F jx6r6INlZE5qf7tfySBBX3OJdL3RastXnTCMimXbVK91c296Az1FQQrzCaacjYYYvAfK jFvg== X-Gm-Message-State: AOJu0YxdChggzgQYEbzAw+BvLrZFVswh0c0TkRoqbaZy7VlHjgMLqS7h 6Om/Negtly2sXD/mTHZc83S9dQL9SEFJuOKB7sdKwkEs0NiiVTz3kESIltSNfoI= X-Google-Smtp-Source: AGHT+IF0L1QaqcKeMInhjUGjMZY7zdiQR+gsY0atO7qfHdPnG18IVrxR7GmLOfGE1HRAEy9LNzQQrg== X-Received: by 2002:a17:906:5acd:b0:a72:631d:6de1 with SMTP id a640c23a62f3a-a77ba4785b5mr338581866b.20.1720193454930; Fri, 05 Jul 2024 08:30:54 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Paolo Bonzini , Peter Xu , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Stefan Hajnoczi , Mads Ynddal Subject: [PULL 03/40] tracepoints: move physmem trace points Date: Fri, 5 Jul 2024 16:30:15 +0100 Message-Id: <20240705153052.1219696-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62d; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62d.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193547466100001 They don't need to be in the global trace-events file and can have a local trace header. Also add address_space_map tracepoint for tracking mapping behaviour. Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-4-alex.bennee@linaro.org> diff --git a/system/physmem.c b/system/physmem.c index 261196cde0..14aa025d41 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -53,7 +53,7 @@ #include "sysemu/hostmem.h" #include "sysemu/hw_accel.h" #include "sysemu/xen-mapcache.h" -#include "trace/trace-root.h" +#include "trace.h" =20 #ifdef CONFIG_FALLOCATE_PUNCH_HOLE #include @@ -3193,6 +3193,8 @@ void *address_space_map(AddressSpace *as, MemoryRegion *mr; FlatView *fv; =20 + trace_address_space_map(as, addr, len, is_write, *(uint32_t *) &attrs); + if (len =3D=3D 0) { return NULL; } diff --git a/system/trace-events b/system/trace-events index 69c9044151..2ed1d59b1f 100644 --- a/system/trace-events +++ b/system/trace-events @@ -21,6 +21,12 @@ flatview_destroy(void *view, void *root) "%p (root %p)" flatview_destroy_rcu(void *view, void *root) "%p (root %p)" global_dirty_changed(unsigned int bitmask) "bitmask 0x%"PRIx32 =20 +# physmem.c +address_space_map(void *as, uint64_t addr, uint64_t len, bool is_write, ui= nt32_t attrs) "as:%p addr 0x%"PRIx64":%"PRIx64" write:%d attrs:0x%x" +find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%= " PRIx64 +find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, u= int64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ",= offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64 +ram_block_discard_range(const char *rbname, void *hva, size_t length, bool= need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fa= llocate: %d ret: %d" + # cpus.c vm_stop_flush_all(int ret) "ret %d" =20 diff --git a/trace-events b/trace-events index dd318ed1af..9cb96f64c4 100644 --- a/trace-events +++ b/trace-events @@ -37,11 +37,6 @@ dma_complete(void *dbs, int ret, void *cb) "dbs=3D%p ret= =3D%d cb=3D%p" dma_blk_cb(void *dbs, int ret) "dbs=3D%p ret=3D%d" dma_map_wait(void *dbs) "dbs=3D%p" =20 -# exec.c -find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%= " PRIx64 -find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, u= int64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ",= offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64 -ram_block_discard_range(const char *rbname, void *hva, size_t length, bool= need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fa= llocate: %d ret: %d" - # job.c job_state_transition(void *job, int ret, const char *legal, const char *s= 0, const char *s1) "job %p (ret: %d) attempting %s transition (%s-->%s)" job_apply_verb(void *job, const char *state, const char *verb, const char = *legal) "job %p in state %s; applying verb %s (%s)" --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193563; cv=none; d=zohomail.com; s=zohoarc; b=h6s90YtXbeHT4cl+HAKSc06X/vhhENG6SSfjSjKX9ZP4YLrp0Q4go466arleF+yeJmOxeuBL4apMt/6VG7urG2LayowNydLQBLPxXbkD1mUC7/rW8/uzOP6ztnlgcqCPX+JigLPh8vvWXgtnXr9kfgPTqOJQvaMiO0BCep4gt7c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193563; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=zgH3hJroWZO1UK9YywGYVtlcVLycJueDEDps19iwMSg=; b=eue8HmsfNYrULThNlVOV8w9Ky5f+GVJs0LOFMAtUcj2ubX5DEw1tJJM7hIEijaGCPu+yP7YvDvYWl3AjYn6yd+f5UhXPeVc7kMd9qbcnjpKYEkQlPva8M3URB61Y0V207QJ4r8W2YEF2d2GMbb1BzuZ3N2s4bzZAUDvzZ1yQjIw= 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 1720193563127758.795698435283; Fri, 5 Jul 2024 08:32:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktz-0005gy-Ar; Fri, 05 Jul 2024 11:31: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 1sPktu-0005cg-5O for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:06 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktn-0000Ix-Sc for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:05 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a7541fad560so204966766b.0 for ; Fri, 05 Jul 2024 08:30:56 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77da27c044sm33099166b.157.2024.07.05.08.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:54 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 637955F931; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193456; x=1720798256; 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=zgH3hJroWZO1UK9YywGYVtlcVLycJueDEDps19iwMSg=; b=uzvV6aXMD/fLrJ0PvMQVDjSNB7hHVbLbCNjMuW7Irb3NG/7lpyBM+5pK8p0FoWr8EF kL7nicCYj0KJgCq62iE0lTMvFJDXDJw7EgZUov1b3pxj4xp0sx92qLLtYQA/1UBkcXGm IiwDxytBFJo/ufYabuCsZr161reATHkos+tFHwW6PzjBhQcumCdw2MlWhSSduf5UieIr okTeVoZxZRHU3OQNgtK4/mBY7aOKk0vXdF2TmIixinx0Sf7yoqzlkAGwb8WOGT3BetB8 2jQSGP8M6iUQCjlKm/t2PHH0zyBrBfUpg5hPRg6zhHOnxPzad51k3kT5bjfWh9pEeRLC t/CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193456; x=1720798256; 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=zgH3hJroWZO1UK9YywGYVtlcVLycJueDEDps19iwMSg=; b=kU75zsX1qzALqN32rN7KcGuTW5qIgp0U9Tm+JBrSpn61hhOBKFl/nqcc8aoUM7kn1o uN7zTHtnEIh1x1ZXwYacA/6c2AhsY+b6Q5QorNxeSIepkzOIefv0aHSIEAPqUsQZZVuj qHWrEMrV676aIg6WQoRzR6mypA0CS2hZ41vljdYEZoyGOel3fFCGSxrC01XTx8wKB4X2 TjUVGN4eUChw77oLXNIu9P1GSnIo2Debb1LtGEq6mq4K8R0NnRWEucx3cFDGvO/ug7Uc x0AqqTKi8GMgxBBfs63JtcWFYWXGtLBge7FaDpUwFZYtw8hl4d/HXMcX3HJvDK+KiK3F 3geg== X-Gm-Message-State: AOJu0Ywh7qw8Bt0mJOAsrRsa4h8yXr2YBA8kFqFfC0H7HaaGUBS0dldx kdRCxefwys7sMDnck/zHOJ387+eCRDzFdU2S0c1EcNTA+t8EgBerW0+0lER9g1w= X-Google-Smtp-Source: AGHT+IEmYUzvSGk1q179Y7kU1U+SyJnIRTXKSnWzEQN0FcvwBv8QvpB6NjEf9vBorWF0XF+zmU7hHQ== X-Received: by 2002:a17:906:747:b0:a77:c824:b4c4 with SMTP id a640c23a62f3a-a77c824b586mr190009666b.19.1720193455672; Fri, 05 Jul 2024 08:30:55 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Aleksandar Rikalo , Paul Burton Subject: [PULL 04/40] hw/core: ensure kernel_end never gets used undefined Date: Fri, 5 Jul 2024 16:30:16 +0100 Message-Id: <20240705153052.1219696-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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, T_SPF_TEMPERROR=0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193563492100001 Really the problem here is the return values of fit_load_[kernel|fdt]() are= a little all over the place. However we don't want to somehow get through not having set kernel_end and having it just be random unused data. The compiler complained on an --enable-gcov build: In file included from ../../hw/core/loader-fit.c:20: /home/alex/lsrc/qemu.git/include/qemu/osdep.h: In function =E2=80=98load_= fit=E2=80=99: /home/alex/lsrc/qemu.git/include/qemu/osdep.h:486:45: error: =E2=80=98ker= nel_end=E2=80=99 may be used uninitialized [-Werror=3Dmaybe-uninitialized] 486 | #define ROUND_UP(n, d) ROUND_DOWN((n) + (d) - 1, (d)) | ^ ../../hw/core/loader-fit.c:270:12: note: =E2=80=98kernel_end=E2=80=99 was= declared here 270 | hwaddr kernel_end; | ^~~~~~~~~~ Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Aleksandar Rikalo Message-Id: <20240705084047.857176-5-alex.bennee@linaro.org> diff --git a/hw/core/loader-fit.c b/hw/core/loader-fit.c index 9f20007dbb..7ccc9d5fbc 100644 --- a/hw/core/loader-fit.c +++ b/hw/core/loader-fit.c @@ -267,7 +267,7 @@ int load_fit(const struct fit_loader *ldr, const char *= filename, void *opaque) const char *def_cfg_name; char path[FIT_LOADER_MAX_PATH]; int itb_size, configs, cfg_off, off; - hwaddr kernel_end; + hwaddr kernel_end =3D 0; int ret; =20 itb =3D load_device_tree(filename, &itb_size); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193514; cv=none; d=zohomail.com; s=zohoarc; b=mbis4ZHO7ues7ndU5eVQHA6xG2L/g++LfVy0WnUBsOo/7XC/96ga3sn0bQ1pP4cdUk5nVtHbosTgXDCtqfNs8dVEHAnxz4GPDUFNjpZartNtwxP/t88WP9Vw8f+cHviQuikrACK3eiHbzGFw0bGVte6v35VpJocwNjDQfyZlIoo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193514; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yb3iq8Uefi2wrk4lmxR12EyJjPJCI4ULXKQi9nDSkSE=; b=kKR9hNhtktT3suEkewMOqlQcnampaZ6vaJIq5CZCu0NOaz7KsLnSgJKoEbkb2whiaZRpMnvKYw2p5rWIP1Ssh1hdY29KO8acZ4ctdGjLLZzoeiE6MxeDBQ+fBoo6WXOJOBkF+q91+LCueFjV5aQB4qVM/+Rx9UQxL9FjADWnLus= 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 1720193514705584.5995519075461; Fri, 5 Jul 2024 08:31:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktu-0005cq-Oa; Fri, 05 Jul 2024 11:31:06 -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 1sPkts-0005bq-73 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:04 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktp-0000Ju-Sv for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:03 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-52ea2ce7abaso1860650e87.0 for ; Fri, 05 Jul 2024 08:31:00 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58e9e68e110sm1929049a12.91.2024.07.05.08.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:55 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 7AA925F935; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193458; x=1720798258; 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=yb3iq8Uefi2wrk4lmxR12EyJjPJCI4ULXKQi9nDSkSE=; b=OQqyg1isdbClJoHoIs0oT5BZ+oNSIqP0HKXjRvYB3u5eHOQHxFlh9YltDwC9bHtLsd RjZfknKoP46HW1C53AWtM8fSHJrheCqL2BnJeuXAWEK3KYoUaXD5XVIOHf+KQdh24ir3 kYN+WBdwlbALdrVTL29I2KTwWotQl4ppKeKCmbCYhhFUjOjBH1SiqoEyYNgO5EX/Ca+B evCvOqkwSabnYqmdY93F+rOsmO+ibWTFS0SB+CoqM6V/OowrardRjwfRMl7pwcNj+WAo bQpnD8BV7VKCYmDEzdWroL0wu5E0Pp2r/qvk7SAGume+7H5zK8v6GMmCmnE3J7/+E9rj ilrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193458; x=1720798258; 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=yb3iq8Uefi2wrk4lmxR12EyJjPJCI4ULXKQi9nDSkSE=; b=HikECl/UDx2qa7yLrl4ld/t/PDWPddDF/zeHoSG0LguRh3R5/RAb/E8aJIWjF9vDly CcOhxZBiDFOdGWEuJnFnikVcXmR5XcmHkoVQw0dRr766WxWN+ZxWslrUCq7em1Fgg/wT SiqSjyVUYT3iYvFCGTFfsmKfS2O7OVTd6qDmFnpcpFECnGYJQ84KQ4RiK4S9F04pHHJF PnrNN879EfiP/W0at/pGqlb8Lkru8vNRyOP9mpqPH2xnHlvpf6OCitPmmMXmBoE/NknO FqmfVft/CbMNnr5sMQ9P/RLyJvUxtyHJEi/W2pu0iA7QdpW6pERk1+zqTrdZ86Eqiv0Y 2dFg== X-Gm-Message-State: AOJu0YzTG/CMaB2mq7BCUurDjQEYG7GYj4hK7WiE1gDGa3v6L4vzWqkZ yVHZpIUREyvXFQ3EZ3fg6DHbPSHyJMOCbTVYbNNuQppV/sl/3xbfVKtRUVUPXIg= X-Google-Smtp-Source: AGHT+IHfMA9NFaJxHx6aXpr+68A520t5IjObMWRon1c2zY7oqiy+85/NpP25xu0BpNDt52ckLMFJSA== X-Received: by 2002:ac2:4115:0:b0:52c:f3fa:86c with SMTP id 2adb3069b0e04-52ea0629bc7mr3994185e87.18.1720193457678; Fri, 05 Jul 2024 08:30:57 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 05/40] tests/docker: Specify --userns keep-id for Podman Date: Fri, 5 Jul 2024 16:30:17 +0100 Message-Id: <20240705153052.1219696-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::135; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x135.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193515424100002 From: Akihiko Odaki Previously we are always specifying -u $(UID) to match the UID in the container with one outside. This causes a problem with rootless Podman. Rootless Podman remaps user IDs in the container to ones controllable for the current user outside. The -u option instructs Podman to use a specified UID in the container but does not affect the UID remapping. Therefore, the UID in the container can be remapped to some other UID outside the container. This can make the access to bind-mounted volumes fail because the remapped UID mismatches with the owner of the directories. Replace -u $(UID) with --userns keep-id, which fixes the UID remapping. This change is limited to Podman because Docker does not support --userns keep-id. Signed-off-by: Akihiko Odaki Message-Id: <20240626-podman-v1-1-f8c8daf2bb0a@daynix.com> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-6-alex.bennee@linaro.org> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 8df50a0ca0..708e3a72fb 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -207,7 +207,12 @@ docker-run: docker-qemu-src $(call quiet-command, \ $(RUNC) run \ --rm \ - $(if $(NOUSER),,-u $(UID)) \ + $(if $(NOUSER),, \ + $(if $(filter docker,$(RUNC)), \ + -u $(UID), \ + --userns keep-id \ + ) \ + ) \ --security-opt seccomp=3Dunconfined \ $(if $(DEBUG),-ti,) \ $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=3D$(NETWORK)),--net= =3Dnone) \ --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193694; cv=none; d=zohomail.com; s=zohoarc; b=i49KIdoZyp/bFhj4HxZ3YSvdhzAMP5qFkJU05rKufbcRBefZwcMHgMcFtdkxy5Qj7WA0THfwfoDpbB2rGj3KNQl9vCgCj4EUgiKw+daynGb1/lSlVEt3AGwcjVqPe1pfWWndVMe4YL3jdxe7Qo26o6cp+S3KY7PN7VnstzEFKvY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193694; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Xv12aEHcacHy909xjN8SHkQelk6UZTRk75aOEyUvjoM=; b=bEhNA/v1CSElrJb1MbKAsfL6Mvc1Qo84tUpvwObBEb+ZtlqBOs1jfloXSjpwLKsx/IzOdsdl75aBUTf/ISMU1ZWudKvvEQ9mO5j+qXRUx+XFYQgHCQI+M/kvUMMmJqJJizQpqQSJ+Jz/5pzgUxCg/I7N1VTlspUwGL5kUdJ6e90= 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 1720193694928330.93471846312013; Fri, 5 Jul 2024 08:34:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktv-0005dH-KO; Fri, 05 Jul 2024 11:31:07 -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 1sPkts-0005bs-71 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:04 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktp-0000Nb-RJ for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:03 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-57cd26347d3so2426452a12.1 for ; Fri, 05 Jul 2024 08:30:59 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58ad8730dcfsm5495220a12.7.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 909875F93A; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193459; x=1720798259; 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=Xv12aEHcacHy909xjN8SHkQelk6UZTRk75aOEyUvjoM=; b=w+dG1OpSGb+cNSmjPl20J3Nj95hNAbuTUE9QlFAmmHh2mgHm0Gwd5j/MTXEsGsKkYT /OdOFaOQfDufFYTXX7/DK1QM7OBVGcj8M/TazCTPJgyZS33+2a2gv3hWlzIlLQRtt79Z sXvUbdrLsPKKQCzofexVoHHyYakNThhcH7BVPG1HbDQn+/ItAe4DYy/5f1o5cM/eoBKB Q8qhuBqHJCYm2JArLKNdw5Hwdir1rzIUFY+l/Ft4HXEcZK/mJMJ0XiJugSBQRLGSkkOw cLEY0yjITDQOjCHPEkoTwxXPNR1BGHxCU6UDnBiFD5Wo6Jf2Z4veUtzgJtIl10tTGaNA nLSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193459; x=1720798259; 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=Xv12aEHcacHy909xjN8SHkQelk6UZTRk75aOEyUvjoM=; b=pFhz0yynPjjid1/LPrmb/C+7ucXWzT5Y/My1R4gh/KoqeQaLimtwYXca4Ue/Kcmldl /L2OzOtYooFZJmfPOPu1SbzvsmS7l7Fyz1gEADCyf/ftgpd+J0E48hikmLgynY0yJU8F gLR8Ik0vHJ/M6wzFVs9v2wLoPbUa41rq0vrHRdK1lI8sIWtH5lqN0z7y5frw7+hHs2j1 VVSkWquTTFaTgoPMR8MB3Cg5pKF/RN5POTA+eqeS/DVGOVsnsAEbS9QHm0RTMPJ5oIzX HvG1Nu90AdjGCjWImVHySC6+XQN5JzGNqzJNJGo3xPkBWHR4eCHVUP1f3PS4opVz3B1j XvSQ== X-Gm-Message-State: AOJu0Yy8TAG+t+BEyfT2Q2eNhnCQuet3Q1RCpx7PrrfKoZ/FLLfr9O/6 GedDt21uVrwZtYJWmj2nZtOkHutHdoT+V3dy4D0D/G6Q7/F6NcSdRSOclVCVKy1XGPye6+HHoko w X-Google-Smtp-Source: AGHT+IFftEiOeAs1X03sFlaC9xR6z0gKqXmYs/z12ouezfcitktjOje10O0Gwb4jBt2dvLrwqP+cdQ== X-Received: by 2002:a05:6402:1cc1:b0:58b:4621:e866 with SMTP id 4fb4d7f45d1cf-58e5cd12b99mr2738756a12.41.1720193458578; Fri, 05 Jul 2024 08:30:58 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PULL 06/40] tests/tcg/minilib: Constify digits in print_num Date: Fri, 5 Jul 2024 16:30:18 +0100 Message-Id: <20240705153052.1219696-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::534; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x534.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193696032100001 From: Richard Henderson This avoids a memcpy to the stack when compiled with clang. Since we don't enable optimization, nor provide memcpy, this results in an undefined symbol error at link time. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-2-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-7-alex.bennee@linaro.org> diff --git a/tests/tcg/minilib/printf.c b/tests/tcg/minilib/printf.c index 10472b4f58..fb0189c2bb 100644 --- a/tests/tcg/minilib/printf.c +++ b/tests/tcg/minilib/printf.c @@ -27,7 +27,7 @@ static void print_str(char *s) =20 static void print_num(unsigned long long value, int base) { - char digits[] =3D "0123456789abcdef"; + static const char digits[] =3D "0123456789abcdef"; char buf[32]; int i =3D sizeof(buf) - 2, j; =20 --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193613; cv=none; d=zohomail.com; s=zohoarc; b=JBjeoSKjlbi1pN90FM+971ROzH/wCp40o3DR/djLq6jkyU68eZFdThj/PUHWNtyYaaWX0QGS80CzWsLOA8JK1N/uu41a+/IK3VhJYB60SFMiaZmukbPOcS+4qFRLntueiWR90d/fKKusGiMPbPuflmx1GiVrDtYKBctbC/bWuus= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193613; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=IJimcmE5TLHrLPLQt+MSqObaehoJiRaqoad5k34+dfEG/LJ2DCAP81kf/lp1KRQ7QNBcSndT6w9itv1UQMg61DY70QaQX7q3Hf5pvAzEfup6KeNH3x48wRocolLKFxmkIMn+WrURbyq1r/pCuyqCoJWePC9GGT7KfBAjhyArjpA= 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 1720193613854695.126082553738; Fri, 5 Jul 2024 08:33:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku2-0005iv-CW; Fri, 05 Jul 2024 11:31:14 -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 1sPktx-0005eY-0K for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:09 -0400 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktt-0000QA-2I for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:08 -0400 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-58bac81f40bso2512540a12.1 for ; Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cd9cb2f7sm56529166b.29.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A793F5F9EB; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193463; x=1720798263; 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=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=DIIagwuwpRqGQUSR/EpaflWq+x1InpfElgZszgSM+eIs+ixc0ac+PVQKMDuCNQkTwm SYURl4/yFJYneVcupwv/8CEE1aMvuqnqEfQSWE0IHIokPqNA/tnO82XZtTz9qPR536Yd bZzutQZvuW8YDFf3E8VMX8xvh9SsZtBHKr/HENxAszHj2OP8HPBMvMl6JC5FWODVLTw4 8szC9jpDk9GaLPGeb2dp4JLjGjb+YYS1at211x5LnxDJKWF/NK/zmyraazIjtryyZyZo /QlP6rBq6GHLQwP6wh9e5cySJFNnBu7nI5Ixe6KbfyuutF90hwAzC5GX189+s2hYQYUA /yVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193463; x=1720798263; 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=GTAwyE/pG5nM9OTzmL49b7cH+p8g0kVoInrpYccmZCc=; b=MSkpHDDou/jwLV5LMEwXwOMUxx8bZCoD8DN2qDrO1Qqm0IVfCrPTKUvEotvyQaXDzA ZGgzA2zHCK8c5MorbfIMdYuSsBGozF/zwOwS6xHSw06/neRaLuolGx9DowNou9nxFKMP ftruEuNZ4fOKd98GJgBUX8lIJZdMnjCbuCr4tvkiuQNqFbSpvFb/pLYb2d4ctgRanQ5j SCs7zN0JRhnIpRBFxQ9oG008PqxktTQCsaA2FX7FqH88AFQ2QW4wLpbIr2I4BRt4rQ/h 9CKnYqJbWNF2t1PiaYIKrA7FFheS5VU+Ppp8JaqXOAHVxGcmwh1xzULOXOvhQiORlZZ1 24MQ== X-Gm-Message-State: AOJu0Yx0BqEHUcL7LPeOEw/UAAVB2Zjox9JBS5cpv1V/8tDTmjkxtIHm 9dOgn9XDrmMUBKz3TgQSBum/cML4HmK2+8ElCg/XOdaGAoZ2C6hIy4iigbv2cG8= X-Google-Smtp-Source: AGHT+IH4KvaHkGHjYJ2QdqXFIse5w11479ab7AnM4yrPTvgSNADSewV7I7Z3yj4Pmkx422hZymKx6w== X-Received: by 2002:a17:906:4794:b0:a72:87c4:8fbe with SMTP id a640c23a62f3a-a77ba46bba9mr393737166b.21.1720193463004; Fri, 05 Jul 2024 08:31:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 07/40] tests/tcg: Adjust variable defintion from cc-option Date: Fri, 5 Jul 2024 16:30:19 +0100 Message-Id: <20240705153052.1219696-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::531; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x531.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193615746100004 From: Richard Henderson Define the variable to the compiler flag used, not "y". This avoids replication of the compiler flag itself. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-3-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-8-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index f21be50d3b..cb8cfeb6da 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -49,7 +49,7 @@ quiet-command =3D $(call quiet-@,$2,$3)$1 =20 cc-test =3D $(CC) -Werror $1 -c -o /dev/null -xc /dev/null >/dev/null 2>&1 cc-option =3D if $(call cc-test, $1); then \ - echo "$(TARGET_PREFIX)$1 detected" && echo "$(strip $2)=3Dy" >&3; else= \ + echo "$(TARGET_PREFIX)$1 detected" && echo "$(strip $2)=3D$(strip $1)"= >&3; else \ echo "$(TARGET_PREFIX)$1 not detected"; fi =20 # $1 =3D test name, $2 =3D cmd, $3 =3D desc diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/= Makefile.softmmu-target index 4b03ef602e..39d3f961c5 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -81,7 +81,7 @@ run-memory-replay: memory-replay run-memory-record EXTRA_RUNS+=3Drun-memory-replay =20 ifneq ($(CROSS_CC_HAS_ARMV8_3),) -pauth-3: CFLAGS +=3D -march=3Darmv8.3-a +pauth-3: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_3) else pauth-3: $(call skip-test, "BUILD of $@", "missing compiler support") diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index 4ecbca6a41..11ccde5579 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -32,17 +32,17 @@ config-cc.mak: Makefile =20 ifneq ($(CROSS_CC_HAS_ARMV8_2),) AARCH64_TESTS +=3D dcpop -dcpop: CFLAGS +=3D -march=3Darmv8.2-a +dcpop: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_2) endif ifneq ($(CROSS_CC_HAS_ARMV8_5),) AARCH64_TESTS +=3D dcpodp -dcpodp: CFLAGS +=3D -march=3Darmv8.5-a +dcpodp: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_5) endif =20 # Pauth Tests ifneq ($(CROSS_CC_HAS_ARMV8_3),) AARCH64_TESTS +=3D pauth-1 pauth-2 pauth-4 pauth-5 test-2375 -pauth-%: CFLAGS +=3D -march=3Darmv8.3-a +pauth-%: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_3) test-2375: CFLAGS +=3D -march=3Darmv8.3-a run-pauth-1: QEMU_OPTS +=3D -cpu max run-pauth-2: QEMU_OPTS +=3D -cpu max @@ -55,7 +55,7 @@ endif # bti-1 tests the elf notes, so we require special compiler support. ifneq ($(CROSS_CC_HAS_ARMV8_BTI),) AARCH64_TESTS +=3D bti-1 bti-3 -bti-1 bti-3: CFLAGS +=3D -fno-stack-protector -mbranch-protection=3Dstanda= rd +bti-1 bti-3: CFLAGS +=3D -fno-stack-protector $(CROSS_CC_HAS_ARMV8_BTI) bti-1 bti-3: LDFLAGS +=3D -nostdlib endif # bti-2 tests PROT_BTI, so no special compiler support required. @@ -64,12 +64,13 @@ AARCH64_TESTS +=3D bti-2 # MTE Tests ifneq ($(CROSS_CC_HAS_ARMV8_MTE),) AARCH64_TESTS +=3D mte-1 mte-2 mte-3 mte-4 mte-5 mte-6 mte-7 -mte-%: CFLAGS +=3D -march=3Darmv8.5-a+memtag +mte-%: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_MTE) endif =20 # SME Tests ifneq ($(CROSS_AS_HAS_ARMV9_SME),) AARCH64_TESTS +=3D sme-outprod1 sme-smopa-1 sme-smopa-2 +sme-outprod1 sme-smopa-1 sme-smopa-2: CFLAGS +=3D $(CROSS_AS_HAS_ARMV9_SME) endif =20 # System Registers Tests @@ -99,7 +100,7 @@ TESTS +=3D sha512-vector ifneq ($(CROSS_CC_HAS_SVE),) # SVE ioctl test AARCH64_TESTS +=3D sve-ioctls -sve-ioctls: CFLAGS+=3D-march=3Darmv8.1-a+sve +sve-ioctls: CFLAGS +=3D $(CROSS_CC_HAS_SVE) =20 sha512-sve: CFLAGS=3D-O3 -march=3Darmv8.1-a+sve sha512-sve: sha512.c @@ -134,7 +135,7 @@ endif =20 ifneq ($(CROSS_CC_HAS_SVE2),) AARCH64_TESTS +=3D test-826 -test-826: CFLAGS+=3D-march=3Darmv8.1-a+sve2 +test-826: CFLAGS +=3D $(CROSS_CC_HAS_SVE2) endif =20 TESTS +=3D $(AARCH64_TESTS) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193565; cv=none; d=zohomail.com; s=zohoarc; b=jtiKsnsFC1vlqE6hx9+dgHhwI5xWLFEETWeme7SpcawMBGTFtYNPDaaSNRLNnpUg43pG1pi4NOI3iAgPzdO18iXIPtz0oTIupvVzt2xh6NrYma07nUb7g9AH2+K1pVh0dHRmqPZlglZnonMfh/ZvL3438EkWUkt90Zni3NwKIIs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193565; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=URiLbq4/9zVnXxv5mThe5iKKCIjw63PUulDUIw3Un1M=; b=ngThkpnCATHX271PbFvrR8wLKP3thLapq46dG2/ar88l2n//LRwYh2T7CS0shf0JwmpbnAWZYXL3QYITZ3NHDarD/kv/vvDXUrzJ7MEMaxBQ7SzmBzGQu25KvV7OwcY/TJgAZxGX+4pwDpR81cIeIJy2C+OvNM2cBmfzq0K30pM= 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 1720193565905425.5736155329497; Fri, 5 Jul 2024 08:32:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku4-0005kl-Hp; Fri, 05 Jul 2024 11:31:16 -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 1sPku1-0005iK-IO for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:13 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktu-0000Qb-9p for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:13 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a724a8097deso220441866b.1 for ; Fri, 05 Jul 2024 08:31:05 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c8e18f32sm78421466b.95.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BD5F35F9ED; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193464; x=1720798264; 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=URiLbq4/9zVnXxv5mThe5iKKCIjw63PUulDUIw3Un1M=; b=yZFprYl5PuY7VKLq5AUieni/2MB2Uu93HQhE7S0QNArD/LBHD59O52KVG0RpA3z9c+ 9+8ZnqHlPNFP8l2PnVwo8K7v3JSYb+V6iKZvAPXSl3gm4wsBIA9IJfzb1NspY3xbFyza anlDv4boUeUhu9HEOqMRaduPxdqE2kR9tAPeG0nm3orZ7aK2pxAXA1/3MWUk9nSZtheV cfQiPzDs1vpfeER02d/AFgnp58R+pEVOR/hmCWCjn5Dn8ICuVUNtczFtm1ttthMs17i7 IjqVja/8gtbk3PWYR4K+I4e21dxWWtF5VcPz7HMSRwKqwBdevfVx4vsqTTooVf9TaVxs nLxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193464; x=1720798264; 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=URiLbq4/9zVnXxv5mThe5iKKCIjw63PUulDUIw3Un1M=; b=jHQt2ph5IX6BIzi7OXqj9GsgOQipC5yAVJOSUYpqOO0dr76ban4BAv4Wi7GW9jjYWG yq1TAoYyN18GosomgfaGCcs6ZOLuzrANWYmn4u831Mp2bEZRKTjOpLry1KIzoTP8euqp 578z7Y0fpxhItKGw1gEzwJuD9kCHID+QHEjRcK2iYcT/BU/OAP8UvLvHt7l5SrJdRzfN cHt6ekbvF+Ynl29G4LPtJR3j1EOXo+uRpgk1i32Kq5h/WxCh6u/3vPwqIXtpjYCv3cWg SyTkelU7Eo1r7NNzhnFPPFVlfnqzwTSOVqpnzrhAN02ASXfpQMKrPHPA03BgeSIxdTK1 1gZQ== X-Gm-Message-State: AOJu0YyKbdU5Q1g+jIDGVszCZz2cx9JxLiuckMMbHyqGTHc+cBT42yDF qUewg7zmz3ZWJHB/vZfNcPExvIXNfpkPJ0hd27iBZv3E8YgcAXTIkjcLy9ecdf8= X-Google-Smtp-Source: AGHT+IHDTwsRfjq5/r5PvnJWvtW0w8JOzKVFK74WhJK/L24j9bnKL3IM5gVaKDOTIHeWkzzf0tcAPA== X-Received: by 2002:a17:906:34d3:b0:a75:3f38:e0a4 with SMTP id a640c23a62f3a-a77ba7082c8mr373285266b.47.1720193464292; Fri, 05 Jul 2024 08:31:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 08/40] tests/tcg/aarch64: Drop -fno-tree-loop-distribute-patterns Date: Fri, 5 Jul 2024 16:30:20 +0100 Message-Id: <20240705153052.1219696-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62c; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193567542100007 From: Richard Henderson This option is not supported by clang, and is not required in order to get sve code generation with gcc 12. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-4-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-9-alex.bennee@linaro.org> diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/= Makefile.softmmu-target index 39d3f961c5..dd6d595830 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -39,7 +39,7 @@ memory: CFLAGS+=3D-DCHECK_UNALIGNED=3D1 memory-sve: memory.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) =20 -memory-sve: CFLAGS+=3D-DCHECK_UNALIGNED=3D1 -march=3Darmv8.1-a+sve -O3 -fn= o-tree-loop-distribute-patterns +memory-sve: CFLAGS+=3D-DCHECK_UNALIGNED=3D1 -march=3Darmv8.1-a+sve -O3 =20 TESTS+=3Dmemory-sve =20 --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193628; cv=none; d=zohomail.com; s=zohoarc; b=FGqJCm6QWjPXaZi4bmsGvO9/ve2XmLZ+b7A3dbeo6z8DZmLxaYkX9jVc2POmC7TMXT5Lz7gC9E66pcSbFZ9XybilS2g46BXYkM0N/2W/A/JKs0f9k55h1tu2n5P6bJEivSwGCg9TgNO2ZYdcmCu40vF2pUZmvuinZt9pj3fkGCE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193628; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=it+TebEWAUdyZUulzklPipDIOEzwrfquC83Yceo5Vww=; b=YUvErsQ8Vr0i6z9u83wAZ4gS3GYCV3eG3OeRviu2W5ZNeZg7gHfF7oIGBT5dqdiQe5AqU7LA5KOonfXetMCCCm274YL4TeodGU06Y/Si/dZYG5IsNAzy+Q2PG/a5wpC+WBEBPob61okEVHJyOa2jBxzzN6/fkrlQwgHQE4m2cjk= 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 172019362849999.55587757884643; Fri, 5 Jul 2024 08:33:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku2-0005j1-P8; Fri, 05 Jul 2024 11:31:14 -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 1sPku0-0005ht-RM for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:12 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktt-0000Qg-WF for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:12 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-57cf8880f95so2433805a12.3 for ; Fri, 05 Jul 2024 08:31:05 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77b226b1bcsm172178166b.88.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id D3C5E620ED; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193464; x=1720798264; 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=it+TebEWAUdyZUulzklPipDIOEzwrfquC83Yceo5Vww=; b=UvMC0qDbELTp+dHAjvkZk0o/GXMViFml59c2pjH5nd2uZYyzgxkEX67qLMMvb8LhTQ oBYAgFaKQ9cbeH8hnNOgpUVXd8RUsT4whPKpkWbv0qR2+Jb5KPI7HML1JaQjSpZ6U3g8 FRmDg3VivaPo+ON2yW0U+mL4f4f2oYvETSe29kzXtZ6A+UZtqdtsi5QEda+WNy/xVPQg Ov5b1MwtQ0hA4z/bTr3mJruzCnZKD2fm+luG8PkB9bWIS/MeiAtlAGGwD/Y5zzHxIuQn MQUB9cc76z4IkwfuFnVbCyeaVOgW8mVZJyKZIh/Dvi9E4J4iw1O2HhoRU/xrIfDiZy5V 66vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193464; x=1720798264; 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=it+TebEWAUdyZUulzklPipDIOEzwrfquC83Yceo5Vww=; b=kZ8w9ptyE2WEbuhS9RRoEbaB3ml1Vn9XHdf7wdrukSCm/KlqIJ2KV8srO7Kn9Y81BI kz98hk2sWpRhYeeLxwMf1TpEZWEiqha4DrW93xhtayqH0mb5uVioaabDLxdL2hHKPyLt X4IwDnMGJqFApMzxuZesuPj/O8FdhES5pIfDQ/E1HIXahaVFCZMS3JD/DMitOqiBeHRq 3Ro9Au9tzFUiw+OPOXwMunUqcoRyhVQjx6gDPXMGLF9WedLAIdUJicf1SIaZRvkNGfml VOkKPQoE1W3G//+kOe9Yk7+MnQ7zq6nYHOWQ3AJ+Vrjjqa2T6BtJk9RjrM/mleJAM9fL XNKg== X-Gm-Message-State: AOJu0YwJKKZ7mm6ubVdwqqi4xIvRUzGQkLvcREwI+ixcOhjtdhbumIJT sNMU1xwMHPei9VLRhwVYbfZEsnRVJ64vsbB2riIbS/CBjgMoAz0pqIt/gKztUHBsBq1ChK39HD3 d X-Google-Smtp-Source: AGHT+IGlhsrSTkQISMGkr2BGHBBb/YXVcSAXq5i6vJUG3AR9IRKMZAUWGk2wGaKosIc4NAUMd70Kfw== X-Received: by 2002:a17:906:1355:b0:a77:ddce:e9b8 with SMTP id a640c23a62f3a-a77ddceec07mr38506966b.75.1720193464024; Fri, 05 Jul 2024 08:31:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 09/40] tests/tcg/aarch64: Explicitly specify register width Date: Fri, 5 Jul 2024 16:30:21 +0100 Message-Id: <20240705153052.1219696-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::533; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x533.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193629802100001 From: Akihiko Odaki clang version 18.1.6 assumes a register is 64-bit by default and complains if a 32-bit value is given. Explicitly specify register width when passing a 32-bit value. Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20240627-tcg-v2-3-1690a813348e@daynix.com> Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-5-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-10-alex.bennee@linaro.org> diff --git a/tests/tcg/aarch64/bti-1.c b/tests/tcg/aarch64/bti-1.c index 99a879af23..1fada8108d 100644 --- a/tests/tcg/aarch64/bti-1.c +++ b/tests/tcg/aarch64/bti-1.c @@ -17,15 +17,15 @@ static void skip2_sigill(int sig, siginfo_t *info, ucon= text_t *uc) #define BTI_JC "hint #38" =20 #define BTYPE_1(DEST) \ - asm("mov %0,#1; adr x16, 1f; br x16; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; br x16; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16") =20 #define BTYPE_2(DEST) \ - asm("mov %0,#1; adr x16, 1f; blr x16; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; blr x16; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_3(DEST) \ - asm("mov %0,#1; adr x15, 1f; br x15; 1: " DEST "; mov %0,#0" \ + asm("mov %w0,#1; adr x15, 1f; br x15; 1: " DEST "; mov %w0,#0" \ : "=3Dr"(skipped) : : "x15") =20 #define TEST(WHICH, DEST, EXPECT) \ diff --git a/tests/tcg/aarch64/bti-3.c b/tests/tcg/aarch64/bti-3.c index 8c534c09d7..6a3bd037bc 100644 --- a/tests/tcg/aarch64/bti-3.c +++ b/tests/tcg/aarch64/bti-3.c @@ -11,15 +11,15 @@ static void skip2_sigill(int sig, siginfo_t *info, ucon= text_t *uc) } =20 #define BTYPE_1() \ - asm("mov %0,#1; adr x16, 1f; br x16; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; br x16; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_2() \ - asm("mov %0,#1; adr x16, 1f; blr x16; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x16, 1f; blr x16; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x16", "x30") =20 #define BTYPE_3() \ - asm("mov %0,#1; adr x15, 1f; br x15; 1: hint #25; mov %0,#0" \ + asm("mov %w0,#1; adr x15, 1f; br x15; 1: hint #25; mov %w0,#0" \ : "=3Dr"(skipped) : : "x15", "x30") =20 #define TEST(WHICH, EXPECT) \ --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193697; cv=none; d=zohomail.com; s=zohoarc; b=dRMsd8rKANKHftC5q3JgPJCLS2z4AuTpPSXkZpADQfza4Wgafox5jhFlHwHKoC56xFPQ+Y0ZeORkvcNRm9dmIAfU+NONhUY4F41KjeHJbIzZg7POLyV/Zz6K+3JB1tmzUpoXb9MwtRMoaGZQ4uXV1nYul3eHnAeEUnUq4QE4M0Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193697; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qi8EZxXfCvRnQubk3+hKID52gSjI2xNtzTbxu1dIU6s=; b=GIIYtXu6PY1uZJUJgYBWZzvzc/6YAVS56j7TbXwzw91yMPtIOlA3ML8Q0sXS5bFkaAsmiQCWt4Eem5zQWxUBVLUdRS9GZSSDmFexMPFwrrcKkTAIrF+7/WTH88Cx5lFNrZaG2rcuR6UsjObwkQW3qcXhs6H1zBHLl5zfW9PrpJ8= 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 1720193697806704.4979750368408; Fri, 5 Jul 2024 08:34:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku3-0005j6-88; Fri, 05 Jul 2024 11:31:15 -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 1sPkty-0005gN-Uc for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:11 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktt-0000QG-89 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:10 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-58b447c513aso2092152a12.2 for ; Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5861324dca6sm9809697a12.31.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EC3E0620F2; Fri, 5 Jul 2024 16:30:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193464; x=1720798264; 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=qi8EZxXfCvRnQubk3+hKID52gSjI2xNtzTbxu1dIU6s=; b=SsgN2AMEOtLniac5HMZXImt2fjBdShOzc8XyfWAaIMBGq5G74o+5Axg/ZeUnfiz4K9 74nrRTNvS4mwciG8cPHie4S2jhFgqHHc0/2cprfFwCMWoEyTKO2FMf/NpNUmG4t39wsX V1ImyBSOyu/5NaQ2YcZP8x/E9Kh7S1MBcIp5nr2U2q4tDsFCr7Y190Z5f/gaZy4Px2sj ct+yxggUpVumpjhmZRl81JbJlfG5N14RYguGpdqQlnRXmwT+sFdQCE50RUyC6Ew/NXu5 gQ8H80Xag7BF5osgq/QMUCElAIQf4nhw1KG/nW7Xrnuox5kTSxtQ1mvsyfgnjLWfXu+W v6Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193464; x=1720798264; 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=qi8EZxXfCvRnQubk3+hKID52gSjI2xNtzTbxu1dIU6s=; b=SuWdTr5wMYX/azhycE4ASFxYIpaQQICCuKnuYqpAPugPHe9WDeW9rjW6rFWhM++tOS 5AFdTd/qmDk9uWgyXHsnJlbzCkxFRcvP+E0Bcvj699Bo655Pub39dkeyPA0iK6KfkkkS DevT54G0157izQRyrDkCY1zv0pNqWCrFq2GZcyK7hBzX2IlNaDeHHCMsfNMS5Bxp7k/Y toe2k5C78F43K6teKIDibXUFzEIA276vQNwCaqFj6JEPrEhnzU2laKD6tkOUzkJ/NLQe Eiye1z10awdCuxvKUA30f9Rae1KAhoh8hbrJzXFZjHcu76k+/N/G/H0R6V80ApK1hq/b 4Kew== X-Gm-Message-State: AOJu0Ywc4NQ1kBuRNkfPAQODywt2mMeiHHnOV5oTVfQ6sJ8YRaLRt4d4 sdgJUML+pcV+qGcRimfeYgaCznVndGVP/wK7cL9GX1Pt8mVplbrx0OriGuHtoqS94WjckedMnUZ U X-Google-Smtp-Source: AGHT+IHiI68D0FraDJBDYUx6TOTBSDNW9KHhIvfBS05UPPDin+D54I0XSWig71Y9RFcokuGHl+yvzg== X-Received: by 2002:aa7:d693:0:b0:58b:9077:2bd4 with SMTP id 4fb4d7f45d1cf-58e5cd151dfmr2659043a12.41.1720193463385; Fri, 05 Jul 2024 08:31:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 10/40] tests/tcg/aarch64: Fix irg operand type Date: Fri, 5 Jul 2024 16:30:22 +0100 Message-Id: <20240705153052.1219696-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::52b; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193698102100005 From: Akihiko Odaki irg expects 64-bit integers. Passing a 32-bit integer results in compilation failure with clang version 18.1.6. Signed-off-by: Akihiko Odaki Message-Id: <20240627-tcg-v2-4-1690a813348e@daynix.com> Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-6-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-11-alex.bennee@linaro.org> diff --git a/tests/tcg/aarch64/mte-1.c b/tests/tcg/aarch64/mte-1.c index 88dcd617ad..146cad4a04 100644 --- a/tests/tcg/aarch64/mte-1.c +++ b/tests/tcg/aarch64/mte-1.c @@ -15,7 +15,7 @@ int main(int ac, char **av) enable_mte(PR_MTE_TCF_NONE); p0 =3D alloc_mte_mem(sizeof(*p0)); =20 - asm("irg %0,%1,%2" : "=3Dr"(p1) : "r"(p0), "r"(1)); + asm("irg %0,%1,%2" : "=3Dr"(p1) : "r"(p0), "r"(1l)); assert(p1 !=3D p0); asm("subp %0,%1,%2" : "=3Dr"(c) : "r"(p0), "r"(p1)); assert(c =3D=3D 0); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193700; cv=none; d=zohomail.com; s=zohoarc; b=e0qHUQTOMKtJAL/RYjx6f3hk8HFgi2XJFHI5DFgbgcceAQDWYxEOTl6F+0JAsLxt1J4dJcBnPfkth2g/kt0VCDSCM1f3Jm5XKLPguQYak8ruyeA8nAxMglDhSCCUbIXPtMuuoanodcdA/xLTRzts1NGq3v0ECGRHqzfy+O58uG4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193700; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7dL44LVhy8HUCuCBi0juUZMiha6qD0o8n5oVMcUj9i8=; b=eQQXpBtOHWNZFTtLkFrg02X6p7CUL16Me2SEhpSzjYbYuz5Y0kRWMNdQcTe8dcX3kJLcEARG8ZeeDo/XG4el6m2dDlYTv+4Lu6dO9Her3yOrWCfetV+nH7M5Ugdp7vJDOrenbDq07LQIHESGAVBPkhROSBgHVG9uObN01Mr/Pz4= 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 1720193700151485.23804090724775; Fri, 5 Jul 2024 08:35:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku7-0005nX-LY; Fri, 05 Jul 2024 11:31:19 -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 1sPku5-0005lL-Cf for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:17 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktt-0000QL-NB for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:17 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a77bf336171so258696966b.1 for ; Fri, 05 Jul 2024 08:31:05 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c4cdee52sm101519766b.128.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0D0D2620FA; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193464; x=1720798264; 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=7dL44LVhy8HUCuCBi0juUZMiha6qD0o8n5oVMcUj9i8=; b=rOu1jg4h4D7/QSccAJLykUdGoMYVJPY+OLfDkpAzju70lC8rSGZnNJtq3BIkNTV2cn EsHEYFBHaCoiKvKkeXr+CodvT4L0MC/HYdUy90g00HvIfzgpIqS5sP+KiKdaxLkGezpz 3Xgmw3BjobTaCPSpPEvylQQcrV1XSO+T/0z590QcXRllQsgJGeEgNBS7y/hWDZVZla48 Ca3fEWPO4T0d1abC/YHOkN66WkLbc/Nxb5+HYHgApN0AvLfzu2bsxhmH/TFIVLAeH0uW C9PG8TmBV8Ys+bFNDizfT3Bsi4ES9zfrzRHzNkW2vJb9PMa+g3v5Mbaw5r269bKbAfrO 9B9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193464; x=1720798264; 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=7dL44LVhy8HUCuCBi0juUZMiha6qD0o8n5oVMcUj9i8=; b=YhoFi41Z0Qest3tfZiNqLk1xOlbwMy+Su5ekGFkJiDMMWBuACrZO3dAHJdw0Fs53dY NMczSDWP+1IOLeEYq3kIfUATBYGLK8iiYlAgaIRv2Z4luKgqBLB59+zLJojJCQO2v2TC IpX2qjVpxi9fIuUdbWeKvCW/SsVeIAspSG0bevh7nSM6j9/8GYh5mbCombeBF0efDIH0 wrPk3yiGjJDgwa+lFAWnCMbSzL1dYbKQHZ7+AobJWXK0rj8U7pG+cQQTBfMcr8Wi/dtD v8qEVn5spkaclEh4+xKIZswUuNj+X9rqKiViYU4FkOK9zV+koA4YBjor6Ymad84n6OTt K1Jw== X-Gm-Message-State: AOJu0YzOA6EEmG7tdDwns7nKIgFjCRC4w1DJ0CqN3ay2NkInMi5Fsf2i WdOBiF2Yl7XEWmlZMNO/qXv0OHVM6HmwIqWovczc+IGJd223qSbEYGev/BAunxQ= X-Google-Smtp-Source: AGHT+IHvNJccW14j2SjIdj+564lohEMfSN7YgUhr1SpvIt/cFbGQRsI7MxrWEtQrYFkJ9BE4g9Bp1A== X-Received: by 2002:a17:906:1919:b0:a72:4207:479b with SMTP id a640c23a62f3a-a77bd99ec6cmr368981466b.5.1720193463682; Fri, 05 Jul 2024 08:31:03 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 11/40] tests/tcg/aarch64: Do not use x constraint Date: Fri, 5 Jul 2024 16:30:23 +0100 Message-Id: <20240705153052.1219696-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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, T_SPF_TEMPERROR=0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193702081100015 From: Akihiko Odaki clang version 18.1.6 does not support x constraint for AArch64. Use w instead. Signed-off-by: Akihiko Odaki Message-Id: <20240627-tcg-v2-5-1690a813348e@daynix.com> Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-7-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-12-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index 7ac47b564e..f631197287 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -126,7 +126,7 @@ static void convert_single_to_half(void) asm("vcvtb.f16.f32 %0, %1" : "=3Dt" (output) : "x" (input)); #else uint16_t output; - asm("fcvt %h0, %s1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %h0, %s1" : "=3Dw" (output) : "w" (input)); #endif print_half_number(i, output); } @@ -149,7 +149,7 @@ static void convert_single_to_double(void) #if defined(__arm__) asm("vcvt.f64.f32 %P0, %1" : "=3Dw" (output) : "t" (input)); #else - asm("fcvt %d0, %s1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %d0, %s1" : "=3Dw" (output) : "w" (input)); #endif print_double_number(i, output); } @@ -244,7 +244,7 @@ static void convert_double_to_half(void) /* asm("vcvtb.f16.f64 %0, %P1" : "=3Dt" (output) : "x" (input)); */ output =3D input; #else - asm("fcvt %h0, %d1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %h0, %d1" : "=3Dw" (output) : "w" (input)); #endif print_half_number(i, output); } @@ -267,7 +267,7 @@ static void convert_double_to_single(void) #if defined(__arm__) asm("vcvt.f32.f64 %0, %P1" : "=3Dw" (output) : "x" (input)); #else - asm("fcvt %s0, %d1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %s0, %d1" : "=3Dw" (output) : "w" (input)); #endif =20 print_single_number(i, output); @@ -335,7 +335,7 @@ static void convert_half_to_double(void) /* asm("vcvtb.f64.f16 %P0, %1" : "=3Dw" (output) : "t" (input)); */ output =3D input; #else - asm("fcvt %d0, %h1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %d0, %h1" : "=3Dw" (output) : "w" (input)); #endif print_double_number(i, output); } @@ -357,7 +357,7 @@ static void convert_half_to_single(void) #if defined(__arm__) asm("vcvtb.f32.f16 %0, %1" : "=3Dw" (output) : "x" ((uint32_t)inpu= t)); #else - asm("fcvt %s0, %h1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %s0, %h1" : "=3Dw" (output) : "w" (input)); #endif print_single_number(i, output); } @@ -380,7 +380,7 @@ static void convert_half_to_integer(void) /* asm("vcvt.s32.f16 %0, %1" : "=3Dt" (output) : "t" (input)); v8.= 2*/ output =3D input; #else - asm("fcvt %s0, %h1" : "=3Dw" (output) : "x" (input)); + asm("fcvt %s0, %h1" : "=3Dw" (output) : "w" (input)); #endif print_int64(i, output); } --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193549; cv=none; d=zohomail.com; s=zohoarc; b=KKIa4qOHDXJ7mxsS+FF9McXoTf7V0khB/Gxvo0qsYcAYSdbVKmORHnJnhrOnU81Nlu9Qmr5fzfYRY1XiUmQsZ9sGxybWzEQhdOdZ847aZdcn2DGDvAWtlPiVHg82v6l2KfYOY22rDAWVjqc/nMjqCOdOHn33MqIZrS9vSiBkUEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193549; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mWUoJ8jMYHKZK6JbWNGMObF6aodq8m6nBv1ts3bfECs=; b=i1PktgVItWULibshZLdphgArM4B5WSNQ0v9JGFNaG523oVjEy3OFK4fa2tUgs6hSMhi4K1qTBd8rU4EP9UVoBeDER19E4xYodNMI44MOcOBnSJWrRig93CMA4hHIdUhygbglIx5zwd2d7TlZxbf8WbwOdoMKTdDOsjFyUWqEr8A= 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 1720193549903907.1995739694837; Fri, 5 Jul 2024 08:32:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPktz-0005gw-A3; Fri, 05 Jul 2024 11:31: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 1sPktv-0005dC-CX for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:07 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktq-0000O6-Vi for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:07 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52ea5dc3c66so1501632e87.3 for ; Fri, 05 Jul 2024 08:31:02 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77a18c7123sm236694766b.58.2024.07.05.08.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 21C23620FD; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193461; x=1720798261; 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=mWUoJ8jMYHKZK6JbWNGMObF6aodq8m6nBv1ts3bfECs=; b=Sg2UBWVl7UkQNaW0vv0qf0dJ4Jw9egmEwa+LkZInYeT9numwHEfcGhoHWGVZ7DliYZ lmQFvXLPwqaCPevX4+5ESVBcHjqofLY7/IwSf1J2OA1ipPkaqYORdpS3xqPrcdC5f56T 9wJUQfjlyoQpS4Wz+DNwQuJzrbFrIA71mNl4/nV7x0hGlB7KIXsX1mWDDuU7zImYcMXK +3ncEoOtfjELiQXEQGJ0S2vZ587sqSAw0SaFQsE4WtjXonTKnCSQkLkYVNcWDqlCUBjb vtbffZiJQXgqKXxjd0xvUFdgJzr4g9j7R747ogopJ2chwgmZsyFTIvR2vdLccFeyBEDh 4bxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193461; x=1720798261; 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=mWUoJ8jMYHKZK6JbWNGMObF6aodq8m6nBv1ts3bfECs=; b=HdlBeNr2BcWdYOu/WMT3XcKr6fcO2uyg1A+KTkqqAjli+7rx6leaPSrmuter1MUkfx 37Pn0I3Egk+8IMiOoqwiShQjVvLae9LzZQ5yR+qLLD01vvh4pnxVA/ucrEuUSD90I0l2 1TnDbPPeRolBzfNWRfYCxP7d/R6riFRKl8doK2LHdiMHe2hay+sZT3/FvwiqWd7T60we zRJb3gEJ/U6FZ6666eGXau3ebVKQtOroXVWLJJPAotPbawa/rXubIsX0pMcZbPRA5d8I iexomt7+Aa2kdsZnpjAQtBw9+E9v/NlCitsSZDmktktcLxb7tI2IMcoB+QULFSKX8l4u 3yWw== X-Gm-Message-State: AOJu0Yzjhv/d6ocD2hD7ByqqgFSbvSmkTWHFCcMm7h8WdnUqdz1h3l2d opktlS8XztUnIswOp+9pJw/oxPGzDRrRumUusJAvEZfVEmoZO4oKDbJsVMA0VyCbdCf+ZB8/+hd s X-Google-Smtp-Source: AGHT+IG0SSWEJpdw2cBbq/3YXwpEo0ihf9pl6B/13VyKeqvdIa58uYBQExqWIflSxlPgNT2fdf27+g== X-Received: by 2002:a05:6512:32a6:b0:52d:3ada:4b6b with SMTP id 2adb3069b0e04-52ea060dc75mr4337366e87.1.1720193460674; Fri, 05 Jul 2024 08:31:00 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 12/40] tests/tcg/aarch64: Add -fno-integrated-as for sme Date: Fri, 5 Jul 2024 16:30:24 +0100 Message-Id: <20240705153052.1219696-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::12d; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12d.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193551424100001 From: Richard Henderson The only use of SME is inline assembly. Both gcc and clang only support SME with very recent releases; by deferring detection to the assembler we get better test coverage. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-8-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-13-alex.bennee@linaro.org> diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index 11ccde5579..ad1774c2ce 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -20,6 +20,7 @@ run-fcvt: fcvt =20 config-cc.mak: Makefile $(quiet-@)( \ + fnia=3D`$(call cc-test,-fno-integrated-as) && echo -fno-integrated-as= `; \ $(call cc-option,-march=3Darmv8.1-a+sve, CROSS_CC_HAS_SVE); \ $(call cc-option,-march=3Darmv8.1-a+sve2, CROSS_CC_HAS_SVE2);= \ $(call cc-option,-march=3Darmv8.2-a, CROSS_CC_HAS_ARMV8_= 2); \ @@ -27,7 +28,7 @@ config-cc.mak: Makefile $(call cc-option,-march=3Darmv8.5-a, CROSS_CC_HAS_ARMV8_= 5); \ $(call cc-option,-mbranch-protection=3Dstandard, CROSS_CC_HAS_ARMV8_= BTI); \ $(call cc-option,-march=3Darmv8.5-a+memtag, CROSS_CC_HAS_ARMV8_= MTE); \ - $(call cc-option,-Wa$(COMMA)-march=3Darmv9-a+sme, CROSS_AS_HAS_ARMV9_= SME)) 3> config-cc.mak + $(call cc-option,-Wa$(COMMA)-march=3Darmv9-a+sme $$fnia, CROSS_AS_HAS= _ARMV9_SME)) 3> config-cc.mak -include config-cc.mak =20 ifneq ($(CROSS_CC_HAS_ARMV8_2),) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193619; cv=none; d=zohomail.com; s=zohoarc; b=FPu/j9IyJJOD8BWb2sHHKW7NhYJIYzZrwqIenu5cXca8gH/aGje2DQn+w3zCewjgpEOXN7jahhtX53SpHLFs9tZIQUfVBbL7UU29+Px/kUc7UWi5xHWADHTlj0OTAOLwmVmoeh845ZrQW65DcSDBfSbUM+0PoQXlykBk1x0RXlk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193619; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bHg4+s/FpPZxeeTuztoD98f0IJGMJLG80p/HXuBKFjc=; b=Bjj85ZCNwyzy7RcycAV9J6yye+CTlnkXMeSMPIFtLOgt8ixgjskOxuE6vuycDBYJbLuGdtHAgRfjyAvOJVMqyYPiSTczlpX2V/24cgL8pX8wCEtD4rrqEFStdgACyyb1cAcRTo4VpPcOKIhNy+eex0fJpNMtFeKIV9OCV3aUNyI= 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 172019361952340.43182383277508; Fri, 5 Jul 2024 08:33:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku1-0005iG-L7; Fri, 05 Jul 2024 11:31:13 -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 1sPktw-0005eP-Kn for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:08 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktq-0000O4-Nt for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:08 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52e9a920e73so2049195e87.2 for ; Fri, 05 Jul 2024 08:31:02 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58f4114a9ffsm1293305a12.12.2024.07.05.08.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 474B262102; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193461; x=1720798261; 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=bHg4+s/FpPZxeeTuztoD98f0IJGMJLG80p/HXuBKFjc=; b=qxiy6dmdzyTFotvH3Z/HSFYicj52u17NDcMXqSify9Z9KUHrn21VfcwKK+sSvsSrn7 LcVwXkjbXXQJoHQipJ0XMp82TeFAiuygPNl2/YVFWCGvky3S3ZcF1U+/HnvrFJf5yAsf GiB65YZt8M+GGHOeWugiB+Te0ElROPoiWRThjihx7c95K/9x+jedKwGdsO7Bzj4FxQOf GiRr6hcic/AAr1vskKg1eLyDSXPSeKnTzAnaOYCfI0Ycblr3GhZIlQ6YAEpbSa65+Hw0 H3K9EQy4iXq2zsSXmoPeOxEZu+da3LM4yqxCnJsTzje7e8gN9zWqZbvW3Yye8aFDyYN8 mULg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193461; x=1720798261; 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=bHg4+s/FpPZxeeTuztoD98f0IJGMJLG80p/HXuBKFjc=; b=WDWVOJ84YJDTi5macudN02yERwZoudKpW6+e4DhxhIsorowX/xsz04hpcAKiCprkeR vu8fCLY2tnCmQiYi9NODduOCGcrBFRCTHdiGU+MnuwNu8KP4dQyeYsp6i6z9irwLo85m HPfqdOI2lHMQn8CXu/+95ycEmRJhrsRddGHViqSZIXIuxKiH9UrIBPZolNkApz7xHNTg piLl5VX+vkuQnoyLhyYzvOthbkmXThnJ00OS3oXUamYEQAPKAM3QWA5OH/9gwBa92slk ZjM216otOhf+0Mw4k3X4I9r/dRGVZcGEZIq3Ka9nco0uiUSIFrGHJcyws9cj+mrHNGCr 2quA== X-Gm-Message-State: AOJu0YxG48scwKqfrWNVqlhxHpVlq5b5eVWixK/IJKOL2IWqMf30kcoB hXQImcicMRGG9w8rBYz0SDD/Wr1FGAoHpk5+y92mB5/+qVooJEBn8JVnksgjipI= X-Google-Smtp-Source: AGHT+IFTiv0oubs7bM42ekfAzoERzLf9pXDA1zpSSTxwMnjIr3pbS/SR9pk7r3u4Xuv4yLhEQW7xhQ== X-Received: by 2002:ac2:5b83:0:b0:52e:9ba5:9853 with SMTP id 2adb3069b0e04-52ea062de5cmr3500464e87.24.1720193459651; Fri, 05 Jul 2024 08:30:59 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 13/40] tests/tcg/arm: Fix fcvt result messages Date: Fri, 5 Jul 2024 16:30:25 +0100 Message-Id: <20240705153052.1219696-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::12f; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193619869100001 From: Akihiko Odaki The test cases for "converting double-precision to single-precision" emits float but the result variable was typed as uint32_t and corrupted the printed values. Propertly type it as float. Signed-off-by: Akihiko Odaki Fixes: 8ec8a55e3fc9 ("tests/tcg/arm: add fcvt test cases for AArch32/64") Message-Id: <20240627-tcg-v2-1-1690a813348e@daynix.com> [rth: Update arm ref file as well] Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-9-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-14-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index f631197287..157790e679 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -258,7 +258,7 @@ static void convert_double_to_single(void) =20 for (i =3D 0; i < ARRAY_SIZE(double_numbers); ++i) { double input =3D double_numbers[i].d; - uint32_t output; + float output; =20 feclearexcept(FE_ALL_EXCEPT); =20 diff --git a/tests/tcg/aarch64/fcvt.ref b/tests/tcg/aarch64/fcvt.ref index e7af24dc58..2726b41063 100644 --- a/tests/tcg/aarch64/fcvt.ref +++ b/tests/tcg/aarch64/fcvt.ref @@ -211,45 +211,45 @@ Converting double-precision to half-precision 40 HALF: 0x7f00 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005935e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015673e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851006e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -257,41 +257,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -574,87 +574,87 @@ Converting double-precision to half-precision 40 HALF: 0x7f00 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766502400000000000e+09 / 0x4f730c3b (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962457600000000000e+09 / 0x4f71605e (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638080000000000000e+08 / 0x4e4c0001 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023259404089913006e-08 / 0x33000001 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015662e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96046021428264793940e-08 / 0x337ffff4 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896384000000000000e+08 / 0x4e61ff01 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09756025369279086590e-05 / 0x387fc00e (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912768000000000000e+08 / 0x4e620001 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10352071817032992840e-05 / 0x38800007 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 =3D> OK) -20 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +20 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282844e-308 / 0x000009ea82a2287680 (0 =3D> OK) -21 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +21 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 22 DOUBLE: 1.49147387366816238764e-308 / 0x00000ab98fba843210 (0 =3D> OK) -22 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +22 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828198432922363282e+00 / 0x402df855 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -937,45 +937,45 @@ Converting double-precision to half-precision 40 HALF: 0x7f00 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007530e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -1.40129846432481707093e-45 / 0x80000001 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -983,41 +983,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -1300,45 +1300,45 @@ Converting double-precision to half-precision 40 HALF: 0x7f00 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -1346,41 +1346,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -1845,45 +1845,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005935e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015673e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851006e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -1891,41 +1891,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2208,87 +2208,87 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766502400000000000e+09 / 0x4f730c3b (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962457600000000000e+09 / 0x4f71605e (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638080000000000000e+08 / 0x4e4c0001 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023259404089913006e-08 / 0x33000001 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015662e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96046021428264793940e-08 / 0x337ffff4 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896384000000000000e+08 / 0x4e61ff01 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09756025369279086590e-05 / 0x387fc00e (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912768000000000000e+08 / 0x4e620001 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10352071817032992840e-05 / 0x38800007 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 =3D> OK) -20 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +20 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282844e-308 / 0x000009ea82a2287680 (0 =3D> OK) -21 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +21 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 22 DOUBLE: 1.49147387366816238764e-308 / 0x00000ab98fba843210 (0 =3D> OK) -22 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +22 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828198432922363282e+00 / 0x402df855 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2571,45 +2571,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007530e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -1.40129846432481707093e-45 / 0x80000001 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -2617,41 +2617,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2934,45 +2934,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -2980,41 +2980,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) diff --git a/tests/tcg/arm/fcvt.ref b/tests/tcg/arm/fcvt.ref index f052b6d7e5..8e007c3345 100644 --- a/tests/tcg/arm/fcvt.ref +++ b/tests/tcg/arm/fcvt.ref @@ -211,45 +211,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005935e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015673e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851006e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -257,41 +257,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -574,87 +574,87 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766502400000000000e+09 / 0x4f730c3b (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962457600000000000e+09 / 0x4f71605e (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638080000000000000e+08 / 0x4e4c0001 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023259404089913006e-08 / 0x33000001 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015662e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96046021428264793940e-08 / 0x337ffff4 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896384000000000000e+08 / 0x4e61ff01 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09756025369279086590e-05 / 0x387fc00e (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912768000000000000e+08 / 0x4e620001 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10352071817032992840e-05 / 0x38800007 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 =3D> OK) -20 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +20 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282844e-308 / 0x000009ea82a2287680 (0 =3D> OK) -21 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +21 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 22 DOUBLE: 1.49147387366816238764e-308 / 0x00000ab98fba843210 (0 =3D> OK) -22 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +22 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828198432922363282e+00 / 0x402df855 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -937,45 +937,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007530e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -1.40129846432481707093e-45 / 0x80000001 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -983,41 +983,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -1300,45 +1300,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -1346,41 +1346,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -nan / 0xffffe000 (0 =3D> OK) @@ -1845,45 +1845,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005935e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015673e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851006e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -1891,41 +1891,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2208,87 +2208,87 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766502400000000000e+09 / 0x4f730c3b (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962457600000000000e+09 / 0x4f71605e (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750797e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013061e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638080000000000000e+08 / 0x4e4c0001 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023259404089913006e-08 / 0x33000001 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015662e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026624000000000000e+08 / 0x4e4e0000 (0x10 =3D> INEXACT ) +15 SINGLE: 5.96046021428264793940e-08 / 0x337ffff4 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994299e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896384000000000000e+08 / 0x4e61ff01 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09756025369279086590e-05 / 0x387fc00e (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013665e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912768000000000000e+08 / 0x4e620001 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10352071817032992840e-05 / 0x38800007 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 =3D> OK) -20 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +20 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282844e-308 / 0x000009ea82a2287680 (0 =3D> OK) -21 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +21 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 22 DOUBLE: 1.49147387366816238764e-308 / 0x00000ab98fba843210 (0 =3D> OK) -22 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 =3D> UNDERFLOW = INEXACT ) +22 SINGLE: 1.40129846432481707093e-45 / 0x00000001 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828198432922363282e+00 / 0x402df855 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32540006400000000000e+09 / 0x4e9e0000 (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859812e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570815e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: inf / 0x7f800000 (0x14 =3D> OVERFLOW INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2571,45 +2571,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -inf / 0xff800000 (0x14 =3D> OVERFLOW INEXACT ) 04 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859812e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007530e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11100004769645909791e+31 / 0xf30c3a59 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999085e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11100003258488635273e+30 / 0xf1605d5b (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -1.40129846432481707093e-45 / 0x80000001 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750797e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -2617,41 +2617,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) @@ -2934,45 +2934,45 @@ Converting double-precision to half-precision 40 HALF: 0000 (0x1 =3D> INVALID) Converting double-precision to single-precision 00 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -00 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +00 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) 01 DOUBLE: -nan / 0x00fff8000000000000 (0 =3D> OK) -01 SINGLE: 4.29077299200000000000e+09 / 0x4f7fc000 (0 =3D> OK) +01 SINGLE: -nan / 0xffc00000 (0 =3D> OK) 02 DOUBLE: -inf / 0x00fff0000000000000 (0 =3D> OK) -02 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0 =3D> OK) +02 SINGLE: -inf / 0xff800000 (0 =3D> OK) 03 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 =3D> OK) -03 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 =3D> OVERFLOW = INEXACT ) +03 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0x14 =3D> OVERFLOW = INEXACT ) 04 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -04 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +04 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 05 DOUBLE: -3.40282346638528859811e+38 / 0x00c7efffffe0000000 (0 =3D> OK) -05 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x10 =3D> INEXACT ) +05 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 =3D> OK) 06 DOUBLE: -1.11100000000000007529e+31 / 0x00c661874b135ff654 (0 =3D> OK) -06 SINGLE: 4.07766476800000000000e+09 / 0x4f730c3a (0x10 =3D> INEXACT ) +06 SINGLE: -1.11099992680387713644e+31 / 0xf30c3a58 (0x10 =3D> INEXACT= ) 07 DOUBLE: -1.11099999999999999084e+30 / 0x00c62c0bab523323b9 (0 =3D> OK) -07 SINGLE: 4.04962432000000000000e+09 / 0x4f71605d (0x10 =3D> INEXACT ) +07 SINGLE: -1.11099995702702262681e+30 / 0xf1605d5a (0x10 =3D> INEXACT= ) 08 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 =3D> OK) -08 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 =3D> OK) +08 SINGLE: -2.00000000000000000000e+00 / 0xc0000000 (0 =3D> OK) 09 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 =3D> OK) -09 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 =3D> OK) +09 SINGLE: -1.00000000000000000000e+00 / 0xbf800000 (0 =3D> OK) 10 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 =3D> OK) -10 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 =3D> UNDERFLOW = INEXACT ) +10 SINGLE: -0.00000000000000000000e+00 / 0x80000000 (0x18 =3D> UNDERFLOW= INEXACT ) 11 DOUBLE: -1.17549435082228750796e-38 / 0x00b810000000000000 (0 =3D> OK) -11 SINGLE: 2.15587225600000000000e+09 / 0x4f008000 (0 =3D> OK) +11 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 =3D> OK) 12 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 =3D> OK) 12 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 =3D> OK) 13 DOUBLE: 1.17549435082228750796e-38 / 0x003810000000000000 (0 =3D> OK) -13 SINGLE: 8.38860800000000000000e+06 / 0x4b000000 (0 =3D> OK) +13 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 =3D> OK) 14 DOUBLE: 2.98023224000000013060e-08 / 0x003e600000001c5f68 (0 =3D> OK) -14 SINGLE: 8.55638016000000000000e+08 / 0x4e4c0000 (0x10 =3D> INEXACT ) +14 SINGLE: 2.98023223876953125000e-08 / 0x33000000 (0x10 =3D> INEXACT ) 15 DOUBLE: 5.96046000000000015661e-08 / 0x003e6ffffe6cb2fa82 (0 =3D> OK) -15 SINGLE: 8.64026560000000000000e+08 / 0x4e4dffff (0x10 =3D> INEXACT ) +15 SINGLE: 5.96045985901128005934e-08 / 0x337ffff3 (0x10 =3D> INEXACT ) 16 DOUBLE: 6.09755999999999994298e-05 / 0x003f0ff801a9af58a1 (0 =3D> OK) -16 SINGLE: 9.47896320000000000000e+08 / 0x4e61ff00 (0x10 =3D> INEXACT ) +16 SINGLE: 6.09755988989491015672e-05 / 0x387fc00d (0x10 =3D> INEXACT ) 17 DOUBLE: 6.10352000000000013664e-05 / 0x003f100000c06a1ef5 (0 =3D> OK) -17 SINGLE: 9.47912704000000000000e+08 / 0x4e620000 (0x10 =3D> INEXACT ) +17 SINGLE: 6.10351999057456851005e-05 / 0x38800006 (0x10 =3D> INEXACT ) 18 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -18 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +18 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 19 DOUBLE: 1.00097656250000000000e+00 / 0x003ff0040000000000 (0 =3D> OK) -19 SINGLE: 1.06536140800000000000e+09 / 0x4e7e0080 (0 =3D> OK) +19 SINGLE: 1.00097656250000000000e+00 / 0x3f802000 (0 =3D> OK) 20 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 =3D> OK) 20 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 21 DOUBLE: 1.37899728486072282843e-308 / 0x000009ea82a2287680 (0 =3D> OK) @@ -2980,41 +2980,41 @@ Converting double-precision to single-precision 22 DOUBLE: 1.49147387366816238763e-308 / 0x00000ab98fba843210 (0 =3D> OK) 22 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 =3D> UNDERFLOW = INEXACT ) 23 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 =3D> OK) -23 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 =3D> OK) +23 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 =3D> OK) 24 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 =3D> OK) -24 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 =3D> OK) +24 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 =3D> OK) 25 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 =3D> OK) -25 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 =3D> INEXACT ) +25 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0x10 =3D> INEXACT ) 26 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 =3D> OK) -26 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 =3D> INEXACT ) +26 SINGLE: 3.14159250259399414062e+00 / 0x40490fda (0x10 =3D> INEXACT ) 27 DOUBLE: 6.55030000000000000000e+04 / 0x0040effbe000000000 (0 =3D> OK) -27 SINGLE: 1.19956249600000000000e+09 / 0x4e8effbe (0 =3D> OK) +27 SINGLE: 6.55030000000000000000e+04 / 0x477fdf00 (0 =3D> OK) 28 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 =3D> OK) -28 SINGLE: 1.19956275200000000000e+09 / 0x4e8effc0 (0 =3D> OK) +28 SINGLE: 6.55040000000000000000e+04 / 0x477fe000 (0 =3D> OK) 29 DOUBLE: 6.55050000000000000000e+04 / 0x0040effc2000000000 (0 =3D> OK) -29 SINGLE: 1.19956300800000000000e+09 / 0x4e8effc2 (0 =3D> OK) +29 SINGLE: 6.55050000000000000000e+04 / 0x477fe100 (0 =3D> OK) 30 DOUBLE: 1.31007000000000000000e+05 / 0x0040fffbf000000000 (0 =3D> OK) -30 SINGLE: 1.20795123200000000000e+09 / 0x4e8fffbf (0 =3D> OK) +30 SINGLE: 1.31007000000000000000e+05 / 0x47ffdf80 (0 =3D> OK) 31 DOUBLE: 1.31008000000000000000e+05 / 0x0040fffc0000000000 (0 =3D> OK) -31 SINGLE: 1.20795136000000000000e+09 / 0x4e8fffc0 (0 =3D> OK) +31 SINGLE: 1.31008000000000000000e+05 / 0x47ffe000 (0 =3D> OK) 32 DOUBLE: 1.31009000000000000000e+05 / 0x0040fffc1000000000 (0 =3D> OK) -32 SINGLE: 1.20795148800000000000e+09 / 0x4e8fffc1 (0 =3D> OK) +32 SINGLE: 1.31009000000000000000e+05 / 0x47ffe080 (0 =3D> OK) 33 DOUBLE: 2.14748364700000000000e+09 / 0x0041dfffffffc00000 (0 =3D> OK) -33 SINGLE: 1.32539993600000000000e+09 / 0x4e9dffff (0x10 =3D> INEXACT ) +33 SINGLE: 2.14748352000000000000e+09 / 0x4effffff (0x10 =3D> INEXACT ) 34 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -34 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +34 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 35 DOUBLE: 3.40282346638528859811e+38 / 0x0047efffffe0000000 (0 =3D> OK) -35 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x10 =3D> INEXACT ) +35 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 =3D> OK) 36 DOUBLE: 1.79769313486231570814e+308 / 0x007fefffffffffffff (0 =3D> OK) -36 SINGLE: 2.13909491200000000000e+09 / 0x4efeffff (0x14 =3D> OVERFLOW = INEXACT ) +36 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0x14 =3D> OVERFLOW = INEXACT ) 37 DOUBLE: inf / 0x007ff0000000000000 (0 =3D> OK) -37 SINGLE: 2.13909504000000000000e+09 / 0x4eff0000 (0 =3D> OK) +37 SINGLE: inf / 0x7f800000 (0 =3D> OK) 38 DOUBLE: nan / 0x007ff8000000000000 (0 =3D> OK) -38 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0 =3D> OK) +38 SINGLE: nan / 0x7fc00000 (0 =3D> OK) 39 DOUBLE: nan / 0x007ff0000000000001 (0 =3D> OK) -39 SINGLE: 2.14328934400000000000e+09 / 0x4eff8000 (0x1 =3D> INVALID) +39 SINGLE: nan / 0x7fc00000 (0x1 =3D> INVALID) 40 DOUBLE: nan / 0x007ff4000000000000 (0 =3D> OK) -40 SINGLE: 2.14538649600000000000e+09 / 0x4effc000 (0x1 =3D> INVALID) +40 SINGLE: nan / 0x7fe00000 (0x1 =3D> INVALID) Converting half-precision to single-precision 00 HALF: 0xffff (0 =3D> OK) 00 SINGLE: -1.31008000000000000000e+05 / 0xc7ffe000 (0 =3D> OK) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193517; cv=none; d=zohomail.com; s=zohoarc; b=JgkE02uH1gl7OVLQRu7BTKRRU8i3tSvk8f6/vZzcb9u6yemcnNopv/DP8j+tVoCduCdV5q0A066K0Wzgc2+YJsnmetfcEN3/U5nniXRtRTKq5/9eJH4fF1AmCCAhmX1WyR5FIYksc2Y1NX+MRmQ8r4d9m3KX3VW49CShWQ3qxCc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193517; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=nRoFsyx+m619boGjC+CQwE+ICP9tXSsJdqLrwUZiNk8=; b=dTgm5GUanl4/oZ0DJZYXHM3mzkgALTSChBg0VW5oaMMY7n6gBcR0DPd0PFa0l/iVwBzsmU2W5U89H4iijXqvSf9Ebj6ZYkwLunLkDuzdornnyNOrkrHyWo7R3b0m0aydYjwjgK86o6W+1cNuc/8RsY0sgp1yZXriYgfbmx9tj4w= 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 1720193517446900.395334107093; Fri, 5 Jul 2024 08:31:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku9-0005os-EY; Fri, 05 Jul 2024 11:31:21 -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 1sPku6-0005mU-DM for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:18 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktq-0000OE-VG for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:18 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a6fd513f18bso195533066b.3 for ; Fri, 05 Jul 2024 08:31:02 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf6039asm688913266b.54.2024.07.05.08.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:30:57 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 61CE262107; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193461; x=1720798261; 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=nRoFsyx+m619boGjC+CQwE+ICP9tXSsJdqLrwUZiNk8=; b=lzFvXzTlOBxf2RWsQ/YuMko962ejhRQjy5R2AS+ELfom3HhD9Zzv582ceR8dfP6h1U stPMrtWGSqgZHQ3JJ0nYR4fQ6+TcW/Kn2C/umo4Raqczv0bh8M+t5iuy6oq2QMrS2vBd 48tBTJ6Co6kQYzKiaemDfeZC/EJISXRefyQNKyVhDCWthAZvkYd3r4TeZFB2khkmjlic o2W+yDs5kLgWd/CVX9OhbyE430Gv0+5F80ty09Z1U1TJLQ7yFVgxECneN2gZv3D5lS6s 22o5DLwo5+F8ssoUJZE5OUKVRLVMPNZguJpQZkrC8BlvJG3j9M8lJhmdhowuTTxuk4bc ac/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193461; x=1720798261; 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=nRoFsyx+m619boGjC+CQwE+ICP9tXSsJdqLrwUZiNk8=; b=j7li3t3ZjrUSbcMr2JHdpuNm6OGQcny0NeRlloVcVOSNYp9XFadh5YveNQ6NRiHe27 hltw6lx3iWBNqQqyNVizT2hpNNMDgMVvzNi+J1JrpKfBAKrtL4oEQj3xSIFQL0Hnk338 b/nSMuNiQlygqkE5zumwS+9T/mOsZhr+B5c7Od53VXxDnOdQZOy0gzRcPIernmkVRU0Y 9GGCrwyIB50+Tdabnmn/D2zeRaA0w5jFhOmQ7gmcX/uQSEzlviWLZ8L5c3HyHze14pdT GMWuozUcoGziVH80UI3rMh2U8PjEtIMK+I1lzM1lP2M8GUsEH56gH1rzfqdIz1thPBEd ZxfQ== X-Gm-Message-State: AOJu0Yxypvxt3a3lAVhB/e5I9Q+LexTxEsAXdCax5nVv90XcUt7cUqMl u7Ogh4qBzndm9iUPJf5C4xP11gAK5+q1ojeQlRoNhotY06AhpH68wA+8pgzCT20= X-Google-Smtp-Source: AGHT+IF/CA/2txbomjhD+huuTxiUAdoiiWAv2xIp0Hlgdebv2Ug0dpvKCtS4L1HwIdT+IsoPn8hY5w== X-Received: by 2002:a17:906:48d8:b0:a77:da14:840a with SMTP id a640c23a62f3a-a77da1485b8mr91370166b.69.1720193460951; Fri, 05 Jul 2024 08:31:00 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 14/40] tests/tcg/arm: Drop -N from LDFLAGS Date: Fri, 5 Jul 2024 16:30:26 +0100 Message-Id: <20240705153052.1219696-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::631; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x631.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, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193519336100001 From: Richard Henderson This is redudant with a linker script, and is not supported by clang. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-10-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-15-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/Makefile.softmmu-target b/tests/tcg/arm/Makefile= .softmmu-target index 39e01ce49d..547063c08c 100644 --- a/tests/tcg/arm/Makefile.softmmu-target +++ b/tests/tcg/arm/Makefile.softmmu-target @@ -13,7 +13,7 @@ VPATH +=3D $(ARM_SRC) test-armv6m-undef: test-armv6m-undef.S $(CC) -mcpu=3Dcortex-m0 -mfloat-abi=3Dsoft \ -Wl,--build-id=3Dnone -x assembler-with-cpp \ - $< -o $@ -nostdlib -N -static \ + $< -o $@ -nostdlib -static \ -T $(ARM_SRC)/$@.ld =20 run-test-armv6m-undef: QEMU_OPTS=3D-semihosting-config enable=3Don,target= =3Dnative,chardev=3Doutput -M microbit -kernel @@ -30,7 +30,7 @@ CRT_PATH=3D$(ARM_SRC) LINK_SCRIPT=3D$(ARM_SRC)/kernel.ld LDFLAGS=3D-Wl,-T$(LINK_SCRIPT) CFLAGS+=3D-nostdlib -ggdb -O0 $(MINILIB_INC) -LDFLAGS+=3D-static -nostdlib -N $(CRT_OBJS) $(MINILIB_OBJS) -lgcc +LDFLAGS+=3D-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc =20 # building head blobs .PRECIOUS: $(CRT_OBJS) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193688; cv=none; d=zohomail.com; s=zohoarc; b=Hd0lPDFknwEJgWDfgQbf4WxTKCxtFyLkJe8JS1RxKrjceLrxcNPMzhltQzaDeUFtY/5HgEy5spmH+1WIuWL/5WEHuiVrjXdeJgOZhaUkAZyjdgZZrltSpwEV8RL9NIfBSQchy9VNgC4dTeqQmH7HXQHWq/V/8SEYOjQFqZ6Pn6w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193688; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ylCfX57vu2XtKdQ2UE07h/WESYaBK96i7YkZDwjHda4=; b=Cy9w78E25eWNRxexqbj5pYLPWzKqgW6MkCEmODhwAs8B1v26S5p502e23xZJify4W4wgyncNWxGPEACoBmDgcdOS8EQr4Nn0ESpH0bi8D1UBsGijBXbUihhs5ifCl/ullgYapaxLuWQurOvBZBBbh+ARiNuvAX+oZ36lJbpMCEo= 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 1720193688209209.66926317275488; Fri, 5 Jul 2024 08:34:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku5-0005lC-83; Fri, 05 Jul 2024 11:31:17 -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 1sPku3-0005j7-9f for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:15 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkty-0000Rh-57 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:15 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a77b550128dso227619966b.0 for ; Fri, 05 Jul 2024 08:31:08 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77ab405d36sm185924166b.186.2024.07.05.08.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 760D95F8AF; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193467; x=1720798267; 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=ylCfX57vu2XtKdQ2UE07h/WESYaBK96i7YkZDwjHda4=; b=jMkTZFL+H/x6Kc7yVz5WrvgqBDQV/BzkdYeVZw0oa+71zsjFOJnoI3HnPwl46MQzSF 0chlSeQX1yy2x4i3EU4ubbDXMwVinMCOHA3UC/XOyDkgzbTCVNb6jGGIcNa8vadmBkkD bucmYiRFLq/t4ToeckFB3IznwMaFXia7fK/qWO4Wh5ggZg4hozXfWXLsWnysqIrmxe1W uswP3WIypq8Xvt/c25r6ZtRHAVAQNsH8GAQK3Se4Aeky/WdPMJHXoFaClCkf4BrZdj5o ijjvSOuOAL+Cgmbz9nKJnlAC1MS8LTa128c3LTUj9nC5c3KmZ0ME99Rfa0Y3WfuExm3q 5+zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193467; x=1720798267; 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=ylCfX57vu2XtKdQ2UE07h/WESYaBK96i7YkZDwjHda4=; b=lPY20YaG/EJzRS6wIGWCZmTJ5k+U7mofnuGcEtx8I6OyKz4Wy6jDr9PKQhcCNQlNuJ mG1Ajziah6Qy4twqEK/SVTlFSqoKDt7d6pbKPAe1iLuFTn0IJwErF0iNK97Hik4piu8d vLIKqwB8AYqz3uY+lXgR9P6ikAe8imuaQlYehnWgjIGkX+irv3bjgQxtZ1upSjbrwpBp /gVH0zf1yNWh2hGn4L/GXx9alBnOLR/QMJQrlxuCD9LIpfRDor5F1QjXxmJ/7JC4+LdZ EJpO/BNyzj+YVjQiN1g29bPziYU55JaUVu6lMQSchkaaN1XPGoTNz0MGrXsH38w7tJ15 ZagA== X-Gm-Message-State: AOJu0YzTRBs2CexVdrPHnf+gZ5iXkiuHKMvQaP17dIQkTpNLH91+h2pz L9y/7kiu5w9o9KKeLfflIxxMVz07Hva7aHZ0s90QkoynJ5znFv7nj14z62Hzrfo= X-Google-Smtp-Source: AGHT+IELrAN0WvOf6IiV4zXOkT7YLd0AvenxfVzf0knR6hixn0iY24Ig8j1kL7B9Eus2YWRPN1Fmzw== X-Received: by 2002:a17:906:17c1:b0:a6f:59dc:4ed0 with SMTP id a640c23a62f3a-a77ba48e64emr387205866b.46.1720193466525; Fri, 05 Jul 2024 08:31:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 15/40] tests/tcg/arm: Use -fno-integrated-as for test-arm-iwmmxt Date: Fri, 5 Jul 2024 16:30:27 +0100 Message-Id: <20240705153052.1219696-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62c; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193689994100003 From: Richard Henderson Clang does not support IWMXT instructions. Fall back to the external assembler. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-11-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-16-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index 0a1965fce7..95f891bf8c 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -8,6 +8,11 @@ ARM_SRC=3D$(SRC_PATH)/tests/tcg/arm # Set search path for all sources VPATH +=3D $(ARM_SRC) =20 +config-cc.mak: Makefile + $(quiet-@)( \ + $(call cc-option,-fno-integrated-as, CROSS_CC_HAS_FNIA)) 3> config-cc= .mak +-include config-cc.mak + float_madds: CFLAGS+=3D-mfpu=3Dneon-vfpv4 =20 # Basic Hello World @@ -17,7 +22,8 @@ hello-arm: LDFLAGS+=3D-nostdlib =20 # IWMXT floating point extensions ARM_TESTS +=3D test-arm-iwmmxt -test-arm-iwmmxt: CFLAGS+=3D-marm -march=3Diwmmxt -mabi=3Daapcs -mfpu=3Dfpv= 4-sp-d16 +# Clang assembler does not support IWMXT, so use the external assembler. +test-arm-iwmmxt: CFLAGS +=3D -marm -march=3Diwmmxt -mabi=3Daapcs -mfpu=3Df= pv4-sp-d16 $(CROSS_CC_HAS_FNIA) test-arm-iwmmxt: test-arm-iwmmxt.S $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) =20 --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193514; cv=none; d=zohomail.com; s=zohoarc; b=hQY3XXTyLQoR88tQPN9vY0gO35lR8B9oTqRo4xD1wghdO30nzKjyACw2xLO10cYNdUhG6arG4TEqmJCragLjr15h09Pl53m4lNLkb0ISK2wfWzF62UyI8Xxf8z+X7AGILrW3HDfDKLaK42onPa0ueQfWRxsu5HxZksklooIr5lA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193514; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FV/c21quCr2VaXyJq0rrCWTuAfHB+Xc6e4tf9YOx3HA=; b=n9mysAb0YDVyK+UwM6YkNOVNDtnzI6+0R8DciN/UukhJsRqcJWqcl7fSZEuUHRNGyw+RS9yG/L4WjuuLwtXDE+CRrrByAkdgCWlf04UwTyIhNKv6LwKOAlGyr2p8I7NJzz1f0oMA1qacNg1Oa0od/UjuWup979ff05/5tuKaQ9g= 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 1720193514708424.6281207211424; Fri, 5 Jul 2024 08:31:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPkuB-0005pp-Uf; Fri, 05 Jul 2024 11:31:23 -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 1sPku9-0005oZ-2Q for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:21 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPku0-0000Ra-NP for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:20 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a7527afa23cso214712066b.2 for ; Fri, 05 Jul 2024 08:31:08 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77d56ccb8csm46718666b.200.2024.07.05.08.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8B4C56211A; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193467; x=1720798267; 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=FV/c21quCr2VaXyJq0rrCWTuAfHB+Xc6e4tf9YOx3HA=; b=xbiw100lxVheZOvQJxpgsyiVU047ySljYn6rsgc7Gm3wlyQVYbtyGf9QBUnxiu9xSa PluvtmYTwGCCRJOS7e9OkPFYbVHfahQl642rB/H96kDcm9hfUPOrnVB1PyexLSokxqeX cymJmGZLXYYR44/0YhZUUHuEXq/6iHU7xfvZYotNO3FdSCcj1U9gIZH7RYn5wg6wx0Y7 Hd8hHKLVjs16LOUmfP9WkH2TgSZlUjB+WJOOkHTq5i3bP6uYflhXeNUfgfi/A265GEkB NzQao6rgUz3zOKz1b+etSdbwmDEV1epdyQsgMOKOqrCAA9QM/cwppT7IGTbeUkcIEklr B1ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193467; x=1720798267; 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=FV/c21quCr2VaXyJq0rrCWTuAfHB+Xc6e4tf9YOx3HA=; b=OE03YyFGOKE1nUoks7/B2XOtVZsvYtS+nXPwAsJcVp7aVMNuEmUKd1NNJNA+bnECdj MucJD0nleA4riOnr7clRjQdCFiriC0rooSXSjDZ38iAiAAn3iLFXil5ssFbpJFQlITCN 0vDrjf2j9A/b3hzV2EsLYb2xswqkC6aYvF4PG18lCooy4tSbnxYG9IPN8fPIo/X0javq 2a68FkJPe4Wq9kgApe1GO2JhxuqlL4L35C4c7N9yIA0QGcZV904r0hofrUqnlfgXLhdS ABw41MF62xPL0j348lTO/odFXCSxuix6Rvm9E1jKURsgl9tCXZaLXFasIndT5GYZmq/E F5cQ== X-Gm-Message-State: AOJu0YyEmK+N5mKYigIrFVjrSzjnpxCb5WzHPnS4P/XOqSbpWQRRiwie YjAhdpfq+L5fH52kXtXIxJ9k8ee77Z/pq7zbGzkV19TwJdCxCROkcN5+6X+KAvIDAtJ58YUpfcX H X-Google-Smtp-Source: AGHT+IGbI/prXsD4sS4V/tCTlMQAVAoGENYkY1umeErSiqMOHC6m50YqmLRZ5AngPVzFaj9PBxrZ2w== X-Received: by 2002:a17:906:4818:b0:a6f:4e1f:e613 with SMTP id a640c23a62f3a-a77ba48e4c4mr310842966b.37.1720193466737; Fri, 05 Jul 2024 08:31:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Akihiko Odaki , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 16/40] tests/tcg/arm: Manually register allocate half-precision numbers Date: Fri, 5 Jul 2024 16:30:28 +0100 Message-Id: <20240705153052.1219696-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193515417100001 From: Akihiko Odaki Clang does not allow specifying an integer as the value of a single precision register. Explicitly move value from a general register. Signed-off-by: Akihiko Odaki [rth: Use one single inline asm block.] Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-12-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-17-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index 157790e679..d8c61cd29f 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -355,7 +355,12 @@ static void convert_half_to_single(void) =20 print_half_number(i, input); #if defined(__arm__) - asm("vcvtb.f32.f16 %0, %1" : "=3Dw" (output) : "x" ((uint32_t)inpu= t)); + /* + * Clang refuses to allocate an integer to a fp register. + * Perform the move from a general register by hand. + */ + asm("vmov %0, %1\n\t" + "vcvtb.f32.f16 %0, %0" : "=3Dw" (output) : "r" (input)); #else asm("fcvt %s0, %h1" : "=3Dw" (output) : "w" (input)); #endif --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193710; cv=none; d=zohomail.com; s=zohoarc; b=T9s2Bbrz49oidtNz8aG1VJcMJB/sJjwRAYbBGheuJLOPcubkKs/JNANqVW5XpsxE6mQyGNxlB1aXuBw3221tZqrb8Zq3y0jy6WjUZghEB2BWnPM5numj6IUw4D4JqhtclrYAMls6t1EAibc142hqCL2nxHmnYaFbEuOCj/GEWrQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193710; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mpfNv2j1tI1/v38krNO8PFDL7fPSKpwptFmGNLBYEoE=; b=Y0CsbpPrLdBxao/lNPln96hHFaaDZMgiXWORPOZH5Ru9y1As7O1iu+TpPxsQ+PuJRSawb/5zEoVvnBPjivmzTuSEbgrLpFxvpr/07LFbsfplGALg31Z4XALR+1wPsJjUBBWmUdq1jo6gmBUKnVX7J+gjjFM9OY6jwnOAXrUyaKY= 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 1720193710930345.14164589827806; Fri, 5 Jul 2024 08:35:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku5-0005lZ-SM; Fri, 05 Jul 2024 11:31:17 -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 1sPku3-0005j4-SV for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:15 -0400 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 1sPktw-0000RQ-V1 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:14 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a77cbb5e987so99699866b.3 for ; Fri, 05 Jul 2024 08:31:07 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77d965dc4asm37881266b.87.2024.07.05.08.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A26546211C; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193466; x=1720798266; 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=mpfNv2j1tI1/v38krNO8PFDL7fPSKpwptFmGNLBYEoE=; b=ej3zdBcfzH/zSAxOhJFma/V29bxTzJiF/+09GrVFfD8bouleA/YCPAgg+YSOtq1obR ubIInOeDnoEtXdc5fad11x6OpCRVYwpdfJup2HMoffLISncwZ7yScM92vbTcyZ3nWDL6 PPnLZbRjOjUttXy61hBPCp4zTA+EjLujNqM1C8taMGJ3cKmIndHh6472AlRRIK6J6nX5 EiQKZgiS4pGHaqdtCMbiU3Gs4RXLfHBdJXtANm1vXIB5G8fiMJ3Eam+wXAioU3KAwmuo n3kDstTcvdxTz8+t/YfdCTD5D0+J/2Ycx52V5X7eLBIj7MbMY+jCfVykISS4ql/WhSCh 8WpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193466; x=1720798266; 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=mpfNv2j1tI1/v38krNO8PFDL7fPSKpwptFmGNLBYEoE=; b=iRku91COMWJSRzWbZkbRIdYtbyADy1jzY/JuJgPSbQwLegJhC5tQE4kETVKDJcFCSF NOIVPw4H0VoooIUnUf4qz2HCBFVwJxn9ilA/NFI4zPneOkM5wLm4MUoI+GNHL94ANTEq exwKtc6LW3mJeW+e9tgoh4td8QHwloX0zj7/p7/IrZCVdik+HylbQnXEZCHtVFGUyR85 msQTM27tdcuIAf7WUXWFYukxCeeg2jJmh0YJFKscd0WcyjwRF1fdm/SYcmawe0HOspfE 2wnuZeF4ZKehR1dBn3Lsix7kQpNFKYOTvP16MCxErqnsJhXRV7PXZo3VGwKFWI8Aj/Gz lniw== X-Gm-Message-State: AOJu0YzPc5+CztL4/gPzg1BPalZupy0flXz8Y6HBhizxE599uOd6DyLU /RvIwAW3gHUsVoRwd1XO3fxbzrKIoh5IbZx3/49/q5Le2V96XeDvlDYJNeWTBjo= X-Google-Smtp-Source: AGHT+IFktobtFQF7pXq8M8MB/zRklhx6L1bZLUudQVSQNGTyOtiiGg+8aBxphxOzxduoqOoXb3IEdA== X-Received: by 2002:a17:906:494e:b0:a77:cf09:9c70 with SMTP id a640c23a62f3a-a77cf099d0emr113404666b.43.1720193466149; Fri, 05 Jul 2024 08:31:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 17/40] tests/tcg/arm: Use -march and -mfpu for fcvt Date: Fri, 5 Jul 2024 16:30:29 +0100 Message-Id: <20240705153052.1219696-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::634; envelope-from=alex.bennee@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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193712201100009 From: Richard Henderson Clang requires the architecture to be set properly in order to assemble the half-precision instructions. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-13-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-18-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index 95f891bf8c..8e287191af 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -29,8 +29,8 @@ test-arm-iwmmxt: test-arm-iwmmxt.S =20 # Float-convert Tests ARM_TESTS +=3D fcvt -fcvt: LDFLAGS+=3D-lm -# fcvt: CFLAGS+=3D-march=3Darmv8.2-a+fp16 -mfpu=3Dneon-fp-armv8 +fcvt: LDFLAGS +=3D -lm +fcvt: CFLAGS +=3D -march=3Darmv8.2-a+fp16 -mfpu=3Dneon-fp-armv8 run-fcvt: fcvt $(call run-test,fcvt,$(QEMU) $<) $(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193932; cv=none; d=zohomail.com; s=zohoarc; b=X/tQDVcCPM3VCdX2sbMEHsXRkwboZdhRkZxwPgMSYnV5CyGHUXnQVPDGW+JHRXJE6MuHGlp+dMb4KlMnflY8PmaN43e3kd47praRvvO317Aeua/u/JxBOpQKzH6WsCXi7eNBpgJficbLZWBwU4SaCw5vUt6sFcUU8AG3Ai2zvBE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193932; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yODWEb1vcYCc/9pyRjXwD+WI1whqQ36urKRs7eztwzQ=; b=NAmHv5CtURUxpmbTTxrDFTlHHa8MalZ7O0pmofgG2OvXjy/qBjrz6DgUW5gNel/iz1+h9jWT90pCty2hlo/4Rb+yMBIYqTClvdIQS0clqzrZ05jc2xjeUhJeLquC8aG3jqfVLRhyKjVxOjsm8AhT57+Z2ifvia2HlGoTnZd4Aqw= 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 1720193932398687.9691905020069; Fri, 5 Jul 2024 08:38:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0B-0002of-2q; Fri, 05 Jul 2024 11:37:35 -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 1sPl02-0002dY-Dm for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:26 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzz-0001J6-LN for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:25 -0400 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-52e976208f8so2006598e87.2 for ; Fri, 05 Jul 2024 08:37:23 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a752cb50dc7sm417579466b.101.2024.07.05.08.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:20 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B6DD35F92A; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193842; x=1720798642; 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=yODWEb1vcYCc/9pyRjXwD+WI1whqQ36urKRs7eztwzQ=; b=FUxHJhzyg4AMlhXoDxktgeU9WXxBc6bcfh3t3iJWUWKsiUiPivNJkAqSIk8Hav8eKS 8uwb15BJhLLZYN4etVQITdCvXvWPTKEAH2LZixf2qT3sJ9izBihdawT7P9IBqaAfNqZc PxpQgrOV87W/0so/ffEjyaKNyTElheQIf6xyuqJMZF4N+iz6Dh2k2CIM2zXdqgIEXlCQ u6oy7P5FHYvB9lwbVP8YCYdLI/fIeXXlEXtXaXlG9Wev4q40MKXM9pxH44UfBpAH3DKG 0Yl4uqDYongF4xJK7IcPuija3KDB2MXtwAvxdBvha9CD/Wk5zjhW0PxhwMdVD1JFX1sx un1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193842; x=1720798642; 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=yODWEb1vcYCc/9pyRjXwD+WI1whqQ36urKRs7eztwzQ=; b=D41wt7RHMxxx6QYooI17hnqpyPfgtdn74vvA4CwALS+opohBvA4t2IIRMa9oHmZL/X /3v6LIJ451MjBCDS4oC9P929+NJ6+myYaLQbqNfRL25rGmC1ch1jDIT4AW4eLrn6koI/ 4nsxntRyrKPtiaw9YYNAzb4t9o/2RN7DcN8DEmVy5OTBX9oIyjOe+D7QVPbvthTHdukV yWwLOzZ2ifiFBwG2zKJTsKzamTwOAYs99d66xIG7z2DK24qwEYh3WpOlsbegslZVZAIn GXIuCp3iPvvIudauhE+hQOtCZ8CP0ufTyLRQLeKqTduwo+0rPWuppPu1gyRmLbX0nReh lgHw== X-Gm-Message-State: AOJu0YyVPcQsFvbQS3qTsiGCU1422O7v3Ucu/SqevnyiX3+VU21juw6K MS4JxjWP+xgoR68z19O7C92fZ4Z4F+qRX+qIByZ31GRpRPDtGgmeLfrFVrM48e0= X-Google-Smtp-Source: AGHT+IFKxUGk7CuQ2Jqs30QtZpZGDjHf4y0EX6R/CCBx5cBsjTBfMYyrpN4eGxrhXhGfbaIWcqvDEQ== X-Received: by 2002:ac2:4115:0:b0:52c:f3fa:86c with SMTP id 2adb3069b0e04-52ea0629bc7mr4008184e87.18.1720193841693; Fri, 05 Jul 2024 08:37:21 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 18/40] tests/tcg/arm: Use vmrs/vmsr instead of mcr/mrc Date: Fri, 5 Jul 2024 16:30:30 +0100 Message-Id: <20240705153052.1219696-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::136; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x136.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193933541100006 From: Richard Henderson Clang 14 generates /home/rth/qemu/src/tests/tcg/arm/fcvt.c:431:9: error: invalid operand for i= nstruction asm("mrc p10, 7, r1, cr1, cr0, 0\n\t" ^ :1:6: note: instantiated into assembly here mrc p10, 7, r1, cr1, cr0, 0 ^ /home/rth/qemu/src/tests/tcg/arm/fcvt.c:432:32: error: invalid operand for = instruction "orr r1, r1, %[flags]\n\t" ^ :3:6: note: instantiated into assembly here mcr p10, 7, r1, cr1, cr0, 0 ^ This is perhaps a clang bug, but using the neon mnemonic is clearer. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-14-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-19-alex.bennee@linaro.org> diff --git a/tests/tcg/arm/fcvt.c b/tests/tcg/arm/fcvt.c index d8c61cd29f..ecebbb0247 100644 --- a/tests/tcg/arm/fcvt.c +++ b/tests/tcg/arm/fcvt.c @@ -427,10 +427,9 @@ int main(int argc, char *argv[argc]) =20 /* And now with ARM alternative FP16 */ #if defined(__arm__) - /* See glibc sysdeps/arm/fpu_control.h */ - asm("mrc p10, 7, r1, cr1, cr0, 0\n\t" + asm("vmrs r1, fpscr\n\t" "orr r1, r1, %[flags]\n\t" - "mcr p10, 7, r1, cr1, cr0, 0\n\t" + "vmsr fpscr, r1" : /* no output */ : [flags] "n" (1 << 26) : "r1" ); #else asm("mrs x1, fpcr\n\t" --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193916; cv=none; d=zohomail.com; s=zohoarc; b=cjIsuu88UZSqeLqWdZEYSjQugjR+unWGVapzGzinVHe1t97jm7jwwmBxXWmgCd82v3wYJkvjLWeaIdpZEnRnAGsZ2m4SuIMEnNdV6Y7+PVZLB9zgbHWxbEmzcfRGwR/Jvu7tEUmiqbNJRQDpYzzc8HTSvXoI5X47idIbQhAfKB0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193916; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=n236Rd+ZsQdBpOfpU2JzZjmyVcpBVPLX43laLzo8bCU=; b=SYf9h1pBEDFNHwSdD1mKAJzPFIo4WWpfm3Jhld/9UqpFPuPwyLU/q6ei3o8+4w6Vjya018SoNdKeH5PE0n2vFqDQ5BAtNm44olrDyOy/PoE3sHZl3/FOC5m8gGegKFXP2FsELUhBGnJ7SrK6MZUWzsQwYdCmT0GXefvJ05HIaKc= 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 1720193915994161.97296284541324; Fri, 5 Jul 2024 08:38:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0B-0002pr-OK; Fri, 05 Jul 2024 11:37:35 -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 1sPl02-0002dl-Qa for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:26 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl00-0001JE-0m for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:26 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a77b550128dso228461266b.0 for ; Fri, 05 Jul 2024 08:37:23 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77dba80177sm25511866b.30.2024.07.05.08.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:20 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CB2666211E; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193842; x=1720798642; 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=n236Rd+ZsQdBpOfpU2JzZjmyVcpBVPLX43laLzo8bCU=; b=fcMOHP/xRw1Ihu5WbaqRNOzWTzsxWxKQCxeWvoMez8bFVb071MtwFBvbXh9VhqlJ8p ZpQjbA3Q72/0oy6Rg4v4dsBTcy9TPChd0PnayRYLDgEwjzW9LGXjTwx3vkaCqR8kaDjj e1A82X2qKIAeAzCj1T660VOoJWS6Y4DDgUh62uWYq5IeaUDbedwOL4u+hyw3wZWVI8OV vF77wxCruGyCLpSrSnC8p6f1pq2ZROihwopmA/nivRIm2XnQzPAbVt2wNgavz0M/Ea3H rtCchRTs8+xhLiqOMoJwSnfuFPki0hgif1AAO2ePiPJVQmQb9DYKOVfSkPaQrIukiKHV viVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193842; x=1720798642; 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=n236Rd+ZsQdBpOfpU2JzZjmyVcpBVPLX43laLzo8bCU=; b=f+3JnG/0i/hMjon9GCb9j4jDVj3bEF1Bx+zF8uc0ZyI9rZgG3q2ZJgw4cVuC5xFRa3 ewRp0n1+QTU/uTG35mMQoUA1GptLbBq4vE4yEHMzXMT4aKuNkXTRDA1jxh4LDjfFPCnz CWarqb7SLzDmHCxsEQs9CsF99fJay/rdUf77o2zEcFZeDxjfmBGBo9evTCKCKbSP1wUZ MrB5tLfH6tLi/WlsNVe31VjvGw79qenA+WDKU+pnD6BbVkzpolwhcM8+V0tcS9Xw/4qr bLx7dCTJ4X/QXfPUyi7KZ8TtI7bVigu2peh8523ZncGxTTIwhMTPOd0xrzFCUvR/zX5e fuxw== X-Gm-Message-State: AOJu0YwvWWUeXwPiO/322npYd1z6qAGzE2cg0JM/Ftg4XRBQvPTG/xGh +0bau+XJRe3CdID7xcuk58aZhJjSbXDV+T/kbHLeSt2oQ4P+uOnafD/eqUnQqG0= X-Google-Smtp-Source: AGHT+IHEyA5Tw15ixlH7b6MQBwt7uQYKFPV7w9u6HhVlGiGwOvgNj3lx2hQhViuqIaw+/8lNk4n3nA== X-Received: by 2002:a17:906:c00f:b0:a77:dc23:5625 with SMTP id a640c23a62f3a-a77dc235698mr55196266b.22.1720193842229; Fri, 05 Jul 2024 08:37:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Akihiko Odaki , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Laurent Vivier Subject: [PULL 19/40] linux-user/main: Suppress out-of-range comparison warning for clang Date: Fri, 5 Jul 2024 16:30:31 +0100 Message-Id: <20240705153052.1219696-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62e; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193917385100001 From: Richard Henderson For arm32 host and arm64 guest we get .../main.c:851:32: error: result of comparison of constant 70368744177664 w= ith expression of type 'unsigned long' is always false [-Werror,-Wtautologi= cal-constant-out-of-range-compare] if (TASK_UNMAPPED_BASE < reserved_va) { ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ We already disable -Wtype-limits here, for this exact comparison, but that is not enough for clang. Disable -Wtautological-compare as well, which is a superset. GCC ignores the unknown warning flag. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Message-Id: <20240630190050.160642-15-richard.henderson@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-20-alex.bennee@linaro.org> diff --git a/linux-user/main.c b/linux-user/main.c index 94c99a1366..7d3cf45fa9 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -843,6 +843,7 @@ int main(int argc, char **argv, char **envp) */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtype-limits" +#pragma GCC diagnostic ignored "-Wtautological-compare" =20 /* * Select an initial value for task_unmapped_base that is in range. --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720194482; cv=none; d=zohomail.com; s=zohoarc; b=dx9Be9WJAhBkJwXJNKbRjuyTqnE6ItVavHyly4L9ySX5wOZ5lPmhqHovLASjRrI3rv0DJ0V/zU7eYrvMM18MjRJYgK94x7j8rtOJovJn5cVCxmLU25xsWDompraxOKE7jETkzXLVXW54U59386uzcj/6KjsSfDA7h88C9QKPWLA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720194482; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rcX3YpwLOTpsYf6Zhkg5VHQ84A4CmDm7f1BhkBXtQSg=; b=Ef9ulVzh8cW4+NbvNl+s5RzZ049usk4M7t+XsPIKcuyAVqJ6riMYUzht6VDZiZzbj7iCvgxic3U7cqiygMyrYgoFNpRnMQAIdND/bLLO2PUkjuVfXDgEtehf4xZmvVWpGymAXjrqOUuU1PiIf3dDtSTTRweAs248FV6/RG6Y9gc= 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 1720194482964911.9015500597187; Fri, 5 Jul 2024 08:48:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl9Z-0005m6-Rj; Fri, 05 Jul 2024 11:47:17 -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 1sPl9Y-0005lx-FE for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:47:16 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl9W-0005dj-Tp for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:47:16 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a72517e6225so200780166b.0 for ; Fri, 05 Jul 2024 08:47:14 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab065672sm694985966b.136.2024.07.05.08.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:47:11 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E421D62139; Fri, 5 Jul 2024 16:30:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720194433; x=1720799233; 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=rcX3YpwLOTpsYf6Zhkg5VHQ84A4CmDm7f1BhkBXtQSg=; b=v6x66gDWZIcj7Rb9RA3+pRjGb9NtRY19pacTflwaG2+Vo0C9XGMC+hqQ1xCvCuAP7r W3kjfk/T8eqMIhr/W6AHeuLPVZ4pYgaXxijIkZ082BaEci+809NdEXuIe/FouaNuTmqu fNNlAuM5IQ/rwgkL0tTRvse/Dxo7m+VQgzSjztcO7YbOuAWOQX6iPndY26lSc2KHoB+d IXuX+37ijJNvRK4WRUDkgjvHOnst/tWGhVxw44RIOFsohocqhtDBD0GU0z/XM3/jjYmg 8lFn+s8vjLL4CQqKd/cFFvL6hYsgUEP2iIsyU3fNn3Ckaa6up8xuNJqoS9zo13ENp2bt AFKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720194433; x=1720799233; 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=rcX3YpwLOTpsYf6Zhkg5VHQ84A4CmDm7f1BhkBXtQSg=; b=SmVkYPFdv52ZkjlaIk6HoXrNqXGOM4NvgEXa2DihH0lg3soYbFC6YZWf7gW2ZiRwDo DEH1fPWfuwMmiZQSig4n2aO38/CdJsm/APz4QRMl5LTGdKWa6isHWEwVmNVifTTyN3cl z7aHk6JcC5p/p1yZzThd5J+rg62k2YcRiw9FJ0Mth2+9eueuBZPKMwgMNdCS1QzcYnS4 OH8WAWvP2RXYMX6NZd/9olnat+IBnq0xtVz9y9obBGzF8TJX4IHvZOU5aj9mRhM74NrU GbJ8U0LEEH5jWzd7hDUqB2mnBf/KYQmWEtd3q5lnqIVcp+i4PxB4cTi6bGnbreZNIz3V pdNQ== X-Gm-Message-State: AOJu0Yys4yT/j8672BHUjFROciVseKdFwGAql/tKusoW3Ikj+0QYLZwA qfrr3Ow3FLH5yY8gWsayOsuUHMF5JpsbqH9EkwveHNnSakSoObyY0IFCe3GufsQ= X-Google-Smtp-Source: AGHT+IHZakTOQ63u/vDKjw44Uccj2lVU1sTcoUBNRJ82FyC4S746mGvFDpyZSgcVR24XXRn4D+kliw== X-Received: by 2002:a17:906:8746:b0:a77:c5e4:eebd with SMTP id a640c23a62f3a-a77c5e4f35fmr225965566b.26.1720194432531; Fri, 05 Jul 2024 08:47:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 20/40] gitlab: don't bother with KVM for TCI builds Date: Fri, 5 Jul 2024 16:30:32 +0100 Message-Id: <20240705153052.1219696-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720194484221100001 In fact any other accelerator would be pointless as the point is to exercise the TCI accelerator anyway. Reviewed-by: Thomas Huth Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-21-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 425fc6479b..e3a0758bd9 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -635,7 +635,7 @@ build-tci: - TARGETS=3D"aarch64 arm hppa m68k microblaze ppc64 s390x x86_64" - mkdir build - cd build - - ../configure --enable-tcg-interpreter --disable-docs --disable-gtk -= -disable-vnc + - ../configure --enable-tcg-interpreter --disable-kvm --disable-docs -= -disable-gtk --disable-vnc --target-list=3D"$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '= ; done)" || { cat config.log meson-logs/meson-log.txt && exit 1; } - make -j"$JOBS" diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 3de0341afe..cb499e4ee0 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -68,7 +68,7 @@ cross-i686-tci: variables: IMAGE: debian-i686-cross ACCEL: tcg-interpreter - EXTRA_CONFIGURE_OPTS: --target-list=3Di386-softmmu,i386-linux-user,aar= ch64-softmmu,aarch64-linux-user,ppc-softmmu,ppc-linux-user --disable-plugins + EXTRA_CONFIGURE_OPTS: --target-list=3Di386-softmmu,i386-linux-user,aar= ch64-softmmu,aarch64-linux-user,ppc-softmmu,ppc-linux-user --disable-plugin= s --disable-kvm MAKE_CHECK_ARGS: check check-tcg =20 cross-mipsel-system: --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193945; cv=none; d=zohomail.com; s=zohoarc; b=J5SVLMsxp5WE65IYp9pG4Wggnjf+aqMUAilDkOLM4KWHu63SGeCJjquSsnK3iOsLiKCoYF3P1qYOVKN624ttW7o/a3usjwZTcF+LRpxtObLyXSHLiIg+Yd2i0oOLk2xmEU5c+rwhN8Wu2ndgjI3wWtiZqBi7TL10Kod9VACOQ4I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193945; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0dlqVxV0N2PAZeKsvqSde0gH8murih16mQWVBlzmyoo=; b=UQJFeFYJTh65PfiWMd9Bv9SzM9k0yey0RtOPNN434A0Wz2FI/I5RB/QazF/V8/GKlru0eQZYE7H+D9ippnmsMW90prf+BXHgcWq/MLQ7H0jUn3/kdc4xBMHG0jWe3PpU7KJS5WGnDDYIJRXfT5Kb71wZ2PP5wDeX7aUiJ5l8qAc= 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 1720193945586205.01207066241284; Fri, 5 Jul 2024 08:39:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPkzy-0002bq-Fn; Fri, 05 Jul 2024 11:37:22 -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 1sPkzt-0002aZ-P8 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:17 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzr-0001Gv-Ma for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:17 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-58b966b41fbso2492910a12.1 for ; Fri, 05 Jul 2024 08:37:15 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cdc2e039sm56103766b.28.2024.07.05.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:11 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 086EB6213B; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193834; x=1720798634; 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=0dlqVxV0N2PAZeKsvqSde0gH8murih16mQWVBlzmyoo=; b=opyRY+Z6F3kWtt5Q+gralYQACf1pNgoKANX1Nd/L5WCeE0NIwSMflaM/q4O2uzixO7 O3YkX9KXz0iwPpugj0/fjE9TERNVPNBlwC0d/V+4NvZbiOJV3BQ1BKiFOFZAreKLxsWm vHERnryTXtb0vid5KOcoqpGFk5Qrcs9A+9NhFVQMPHQ/4JpC9A7AiEDiYj8lmDCVWEab qRZRlPpAyiN7n+TPDW4wMcFShcZ1DOMmLWMv/hWNHPlcFABl+Xc/0no3CpA98Mkr1Pyx +hzifHzqZHw3baajGhAZAvWnwE711P3pDEsosPHoBuYmKKdYynvXQMd0r/dXooFcKfH8 GOww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193834; x=1720798634; 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=0dlqVxV0N2PAZeKsvqSde0gH8murih16mQWVBlzmyoo=; b=J20LyX025Wz5hENEZhz2r7gxL3C9BouAqEcKkHqCbDcUuCUOpuL5TuN2hyanFga7wi XmRBcvGGyTOOkRISZjHzltMSXNiZWSi6tA25jbljmAE6ni+KKh4iANuWAZQrtCY5IdZw uUQHLKLeQLagG0tR9B951CTZuIqrhIKcg79vmcLjsrLf/d7DvV8u54nKq/jILrgVNCmp g4s/BjgN1vffM+AAeLzbSKSgV8jWjQeU0VtyJDEO6PZGECue53DFRcPujBM7gH8XHEQe zrXLwOiPNdOUnhgI2T3rieDa2ROSJeqTq2yO/O96Z3/HY+4GAERh/XZUI01YP+AsAY3Q mcfQ== X-Gm-Message-State: AOJu0YzTm/mCWB0TUhAS2ERm/JD38FAYRWKLWFApsqXyWtY6cI/hwKuM Wmhf2hY3BFCgqEWDnAxWcG28Nk85Pn5T9iptxcSOGDPStRHNNpEyA9JFkdiMO6M= X-Google-Smtp-Source: AGHT+IHw9YfQcIfOXRyMYZqDzbPJA9O7N83TExhGNDUBJ9JzqYXNTOKPz9MmwFsOuBpNU/MwPMlY8A== X-Received: by 2002:a17:907:76d4:b0:a77:dd5c:d7f4 with SMTP id a640c23a62f3a-a77dd5ce42cmr45292866b.15.1720193834020; Fri, 05 Jul 2024 08:37:14 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 21/40] test/plugin: make insn plugin less noisy by default Date: Fri, 5 Jul 2024 16:30:33 +0100 Message-Id: <20240705153052.1219696-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::532; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x532.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193947548100009 While the match functionality is useful lets make the verbosity optional while we are actually running. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-22-alex.bennee@linaro.org> diff --git a/tests/plugin/insn.c b/tests/plugin/insn.c index 5e0aa03223..524f9ddde8 100644 --- a/tests/plugin/insn.c +++ b/tests/plugin/insn.c @@ -20,6 +20,7 @@ static qemu_plugin_u64 insn_count; =20 static bool do_inline; static bool do_size; +static bool do_trace; static GArray *sizes; =20 typedef struct { @@ -73,30 +74,30 @@ static void vcpu_insn_matched_exec_before(unsigned int = cpu_index, void *udata) MatchCount *match =3D qemu_plugin_scoreboard_find(insn_match->counts, cpu_index); =20 - g_autoptr(GString) ts =3D g_string_new(""); - insn->hits++; - g_string_append_printf(ts, "0x%" PRIx64 ", '%s', %"PRId64 " hits", - insn->vaddr, insn->disas, insn->hits); =20 uint64_t icount =3D qemu_plugin_u64_get(insn_count, cpu_index); uint64_t delta =3D icount - match->last_hit; =20 match->hits++; match->total_delta +=3D delta; - - g_string_append_printf(ts, - " , cpu %u," - " %"PRId64" match hits," - " =CE=94+%"PRId64 " since last match," - " %"PRId64 " avg insns/match\n", - cpu_index, - match->hits, delta, - match->total_delta / match->hits); - match->last_hit =3D icount; =20 - qemu_plugin_outs(ts->str); + if (do_trace) { + g_autoptr(GString) ts =3D g_string_new(""); + g_string_append_printf(ts, "0x%" PRIx64 ", '%s', %"PRId64 " hits", + insn->vaddr, insn->disas, insn->hits); + g_string_append_printf(ts, + " , cpu %u," + " %"PRId64" match hits," + " =CE=94+%"PRId64 " since last match," + " %"PRId64 " avg insns/match\n", + cpu_index, + match->hits, delta, + match->total_delta / match->hits); + + qemu_plugin_outs(ts->str); + } } =20 static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) @@ -216,6 +217,11 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin= _id_t id, } } else if (g_strcmp0(tokens[0], "match") =3D=3D 0) { parse_match(tokens[1]); + } else if (g_strcmp0(tokens[0], "trace") =3D=3D 0) { + if (!qemu_plugin_bool_parse(tokens[0], tokens[1], &do_trace)) { + fprintf(stderr, "boolean argument parsing failed: %s\n", o= pt); + return -1; + } } else { fprintf(stderr, "option parsing failed: %s\n", opt); return -1; --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193962; cv=none; d=zohomail.com; s=zohoarc; b=Cryg0s8xD6eNbwKs3Ws0ggf5sOhheqOp6RInVLA/DO846lCwKR7INXSFXtAuGliHMaus0AhYzGuJ48mZkgMJuZ0nN+wGK05/7WuGTndS92p2d9m+htTmMp8BsT2YdeOo6E77bvxsmSC5SFypLH8LgqUWKAyzmbBuF/DUi1puoJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193962; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Lf/1KqRAAMtl+wrn2ncS2jotaeqgCn1AGWcRKaNCTcQ=; b=RLst+SCW0JW3DTzz387solwerXe6QFpJ3uqoQX3MATxrZxWLrQ5X0QPzf7fGVZxqaNn0+KYrxF2z+PhokgVYA9tGi3BiaZNUL6fBSctHb5jadn+vOH4cyzCTfAL2Fg4Tqug4OZLcSUgi1pHccn3hgwgC8bemQyTCe3stnzXQPeE= 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 1720193962118759.4059316477968; Fri, 5 Jul 2024 08:39:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0G-00038X-AB; Fri, 05 Jul 2024 11:37:40 -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 1sPl07-0002g2-5H for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:31 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzv-0001Hz-2L for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:30 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a77cbb5e987so100505266b.3 for ; Fri, 05 Jul 2024 08:37:18 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cf0b9181sm54418666b.99.2024.07.05.08.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1A3CF5F92B; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193837; x=1720798637; 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=Lf/1KqRAAMtl+wrn2ncS2jotaeqgCn1AGWcRKaNCTcQ=; b=evs/7AoS4FzAabJJkG/Qni7EPuOAn8rQuYS9W44G7LIhu/12BhF/7YPKgNzX0YJSjQ 4H2KfNtH+Iq4BSs4t5wswEJQ0ODJDSSTgxrbDt3m7TNhzfBhGRE8BjMF3IGqs4TlEWnK w1x+x2+3Jq5gyJfaYwjygR/6D467YVFMuSkvB8D2pcX7CHQ/x06jt1gRbkQaNfjC/Z7G /QF/WggxSYUfvZelkOgVUe6DILQ6rbjBDOr3FHeIoCxHHHUBFBrBDommRiRf4sZiPlc5 SngQlntEb15zAkdHaCAfnMBKFm/28J5Nhh68QjtykSXL04z9cDDTwhgnkLEFstIU8G+c QcjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193837; x=1720798637; 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=Lf/1KqRAAMtl+wrn2ncS2jotaeqgCn1AGWcRKaNCTcQ=; b=P1BbFa01ORhhkkeAookoJFX44IDk/BI83zxhE4yHctJGsbFlKSc8fOwOhuNsjI2wOo jx4yG6p0K0dNC8QgQbUwtAWITVbhNwkZhLB8mAtcAgF1Q3+umqS0BYx61fjHAlK+u4+v mzkQo5Efq8ukwHgdWiU/YQkhdaB81G8jLmOqGwfYvwfupILJRk3QDcAhHnOqvQwmr1Yz 9424F8G2bS+oWAf8CFgv1++noUZZ+aF5e3FxULMiWJgeDTTkUGTCeWU0wV5FL7uWqy5o K3lICuIM/UKSMRw1bbimVwPkpzK6tx24rh2R+1AZKxYMGCNKYLMxwYjn+hi2DKtO1ACQ XJBw== X-Gm-Message-State: AOJu0Yz/M5VvszwCmbrHfeEsLyyX7SDrdDo6Z/ZukxeOHRCmYKoTzdLn mMut7qYvTP1u7iSDj0DqBo7+9sWgQSTGGjwN7nRJDnfTBloSs/8tldzywUn51Qb/74xo5aa2BMh 9 X-Google-Smtp-Source: AGHT+IGiq5+2cuTq3PxYEQ+/myz4MD50poKk6+0coOjHrqCpPRufg96/UpTQM1pWUHNOgk63iWoNDA== X-Received: by 2002:a17:906:2514:b0:a77:cc6f:e77c with SMTP id a640c23a62f3a-a77cc6fed76mr170946166b.58.1720193837413; Fri, 05 Jul 2024 08:37:17 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 22/40] test/plugins: preserve the instruction record over translations Date: Fri, 5 Jul 2024 16:30:34 +0100 Message-Id: <20240705153052.1219696-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.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, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193963608100001 We are interested in the particular instruction so we should use a stable record for it. We could bring this down to physical address but for now vaddr + disas seems to do the trick. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-23-alex.bennee@linaro.org> diff --git a/tests/plugin/insn.c b/tests/plugin/insn.c index 524f9ddde8..baf2d07205 100644 --- a/tests/plugin/insn.c +++ b/tests/plugin/insn.c @@ -43,6 +43,44 @@ typedef struct { char *disas; } Instruction; =20 +/* A hash table to hold matched instructions */ +static GHashTable *match_insn_records; +static GMutex match_hash_lock; + + +static Instruction * get_insn_record(const char *disas, uint64_t vaddr, Ma= tch *m) +{ + g_autofree char *str_hash =3D g_strdup_printf("%"PRIx64" %s", vaddr, d= isas); + Instruction *record; + + g_mutex_lock(&match_hash_lock); + + if (!match_insn_records) { + match_insn_records =3D g_hash_table_new(g_str_hash, g_str_equal); + } + + record =3D g_hash_table_lookup(match_insn_records, str_hash); + + if (!record) { + g_autoptr(GString) ts =3D g_string_new(str_hash); + + record =3D g_new0(Instruction, 1); + record->disas =3D g_strdup(disas); + record->vaddr =3D vaddr; + record->match =3D m; + + g_hash_table_insert(match_insn_records, str_hash, record); + + g_string_prepend(ts, "Created record for: "); + g_string_append(ts, "\n"); + qemu_plugin_outs(ts->str); + } + + g_mutex_unlock(&match_hash_lock); + + return record; +} + /* * Initialise a new vcpu with reading the register list */ @@ -131,16 +169,19 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct= qemu_plugin_tb *tb) * If we are tracking certain instructions we will need more * information about the instruction which we also need to * save if there is a hit. + * + * We only want one record for each occurrence of the matched + * instruction. */ if (matches->len) { char *insn_disas =3D qemu_plugin_insn_disas(insn); for (int j =3D 0; j < matches->len; j++) { Match *m =3D &g_array_index(matches, Match, j); if (g_str_has_prefix(insn_disas, m->match_string)) { - Instruction *rec =3D g_new0(Instruction, 1); - rec->disas =3D g_strdup(insn_disas); - rec->vaddr =3D qemu_plugin_insn_vaddr(insn); - rec->match =3D m; + Instruction *rec =3D get_insn_record(insn_disas, + qemu_plugin_insn_va= ddr(insn), + m); + qemu_plugin_register_vcpu_insn_exec_cb( insn, vcpu_insn_matched_exec_before, QEMU_PLUGIN_CB_NO_REGS, rec); @@ -173,13 +214,38 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) qemu_plugin_u64_sum(insn_count)); } qemu_plugin_outs(out->str); - qemu_plugin_scoreboard_free(insn_count.score); + + g_mutex_lock(&match_hash_lock); + for (i =3D 0; i < matches->len; ++i) { Match *m =3D &g_array_index(matches, Match, i); + GHashTableIter iter; + Instruction *record; + qemu_plugin_u64 hit_e =3D qemu_plugin_scoreboard_u64_in_struct(m->= counts, MatchCount, hits); + uint64_t hits =3D qemu_plugin_u64_sum(hit_e); + + g_string_printf(out, "Match: %s, hits %"PRId64"\n", m->match_strin= g, hits); + qemu_plugin_outs(out->str); + + g_hash_table_iter_init(&iter, match_insn_records); + while (g_hash_table_iter_next(&iter, NULL, (void **)&record)) { + if (record->match =3D=3D m) { + g_string_printf(out, + " %"PRIx64": %s (hits %"PRId64")\n", + record->vaddr, + record->disas, + record->hits); + qemu_plugin_outs(out->str); + } + } + g_free(m->match_string); qemu_plugin_scoreboard_free(m->counts); } + + g_mutex_unlock(&match_hash_lock); + g_array_free(matches, TRUE); g_array_free(sizes, TRUE); } --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193967; cv=none; d=zohomail.com; s=zohoarc; b=bR1CiJMrG0aBjGlRyqgp3IQdWlhW5w0x29rWx+eMjNcF+OBK2J28kVbUZKdhxi5KjwWy9bml2JiOpEtKRYo71fPS4qWboBOF2055GK0Sag7xVEUXvkXvgXTFlv4CbqGQH46w928Yhi3kVloLDqFT2zx/VISNMeF/ZttH7NJHMHU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193967; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; b=fp/1wXGNLWes4uMKBRuPCw+Yu1IBgY+7/SYCPl57VblJzq6zFlKtPauIbALvnJwvORelqvo/JqMv3GlOio6fvV+ta1NABA2Tcm9JU16O43y0OOmi2iWBEKVelQQ0MgIZrZqNF3SMM65QbzQNcLrYgzYjYQ5mpyBIQ53+Uw9CmUE= 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 1720193967892771.0446353929539; Fri, 5 Jul 2024 08:39:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl08-0002gh-VJ; Fri, 05 Jul 2024 11:37: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 1sPkzv-0002bB-MD for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:20 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzu-0001Hg-6d for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:19 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a77c349bb81so135810666b.3 for ; Fri, 05 Jul 2024 08:37:17 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a754758168asm302976066b.80.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 311C96213D; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193837; x=1720798637; 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=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; b=nBorfrRyWsoOAHoVOXgomwqnm7d5LAGTo2tozBUYS1MMaNyuuxrYZMqpn9JYp9zT4X JSzKvL9/KX+IDCFV28c6xNDfQzmYHqInMot/8oxJ0CyC4JkkxKrhpqXfi35rkSGjnuDv L8hX+PE/6wroKmXuUe5TEW99qhy0Jzyn6RXDkaWvgi5iUwVeEa2F1npNkkB/W07iI+aJ CaHMhsT2QLrOCDjZXNT1WAN8MJMtk+A12nhne5VztlU/bO8mneAql0CfB2rn6wNEb8dA dGHOyWX2Azv/cpkeZx2JgVUiyQ9vwL+SJ1ueXzymlTJOhjPzdV/PZO3kYT6A8FuZbcfA Avtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193837; x=1720798637; 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=UMmvQJJsx2DzZLMmy3nNlACqKsBlZyZqjVhcXblbIqc=; b=c3cpdPR8wnLB97U/admKbDycJyKo4bGnQSx7PuqRzF55VOS0akBDwoHwmD9eAByZmZ u4gz2DzUx1oUZaLKSJR0SdywqELfKQAM1Es7u0dg+DyNANIbmi9IIytONwKP2eBFb/I5 IX73UJwCxbVR16adeEKCbgMiSgIp5NM+poMLz/gYFC83V+8mDG46G6oW+DWNAJzLhAvT W0fgXNgCP2NWiEtEjn/6JD9/vD1mHqr/otDU5eyKvI+j2juTZSiS4ItHjXrJSkbKqbYJ bOEGgpVb+TeQLTGORS0hiBLoa5ZQYycX2U+AVPPngeN2kDQt0IK2ib/h7fYC+5A4L9u9 +vxQ== X-Gm-Message-State: AOJu0Yz4dNkmmWmeFkU/f30bISYTCfe0NfGD/m6Yn0/yglBUNHkVWwvd LhWF6C4AK5HYpB7HHXwe/LIMZy8HfGAt0+4jWtZ/hw6WAcDU0qNKB8HbNGFE0V4= X-Google-Smtp-Source: AGHT+IFa48Cz+gmVleoTPkMnhutlTxVHuN9HPPpERa5+T8e5HfULn1vcLkEeNfXBKCfwg/5N1uOglg== X-Received: by 2002:a17:906:fa0e:b0:a72:8d2f:859c with SMTP id a640c23a62f3a-a77ba48deb1mr321164466b.33.1720193836475; Fri, 05 Jul 2024 08:37:16 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 23/40] plugins/lockstep: preserve sock_path Date: Fri, 5 Jul 2024 16:30:35 +0100 Message-Id: <20240705153052.1219696-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::633; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x633.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193969610100005 We can't assign sock_path directly from the autofree'd GStrv, take a copy. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-24-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index 237543b43a..67a779ee9d 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -347,7 +347,7 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_= id_t id, return -1; } } else if (g_strcmp0(tokens[0], "sockpath") =3D=3D 0) { - sock_path =3D tokens[1]; + sock_path =3D g_strdup(tokens[1]); } else { fprintf(stderr, "option parsing failed: %s\n", p); return -1; --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193932; cv=none; d=zohomail.com; s=zohoarc; b=m2q7gFUJGs58FYgcKk90FpldG60PAZkovXRJWKz7dNcZGHbLR45D7I4BThV2WKuk03CHEvXmZFlO5+I6g+x1tyUlZKeL2Zlnz9NR02jxWocBd9QoUPfKFxrHEspoetlj1zgx1tiEC6xwOjlM3dIZYCE1cxGvOciwNuVhHQN+NJo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193932; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RP3B/0cPkW5+Move7SaNmebJelEP2P1mPvRnO3rEjf4=; b=FL4/Uz3sL/+i8WVUniINO2wEnT2RA0iBWonyKlOYsHeu4KkrcWvRbTujiWQeVlQUxsovwpCFDhUN9215o1xt4onilnSvHTZAOdRsuB6k8+f6lbr22HpkEauvapnylgOPU9bESMOjTffJSGrvehDCDGkQgIpWiCNcCyifgGlsmEs= 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 1720193932054630.2120854335486; Fri, 5 Jul 2024 08:38:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl08-0002ge-NZ; Fri, 05 Jul 2024 11:37: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 1sPkzw-0002bL-4m for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:20 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzu-0001Hj-HN for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:19 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-58ba3e38028so2365220a12.0 for ; Fri, 05 Jul 2024 08:37:18 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58f9893a747sm972496a12.19.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4891E62142; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193837; x=1720798637; 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=RP3B/0cPkW5+Move7SaNmebJelEP2P1mPvRnO3rEjf4=; b=lvuWJuOSWefr+gjQaTwklWxx6VQ/e/GNzz6gurV7EfnRg0A14rW8XpivBgCQyP0ptN SeMm9Uc4jpJTsNPGUEbD4gRR5R+k8KiukAk6jltJubbSYoCD2lRxZV+UAMhYyFI4O4LX C62BP3YJ/jeq4X5XRzUfAHsGMpO/72T7IV1X4BuaGMXgTfT3GWKmNH5Fch2H8VhUPKuz Q7tCDUIDcnAQxy79M/vGSLNkvOTHprtBcU7Sp5qbTPXGgND3MHDve7hWk99acl84Bxhf S6H9l6tBqacfSveLRxiGdA1r75qZDIUIBa4XPtIu9kv+sLDr8l2VHkeWRzDbjcZi095U dGxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193837; x=1720798637; 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=RP3B/0cPkW5+Move7SaNmebJelEP2P1mPvRnO3rEjf4=; b=PBHbZkRRi8NWwu9E2QapLOv00Mcdk54GAVNEI4C52Hqv7Qq3x3lOJH9VCXpVyNIaJZ j6oBPOeRMtPSvXP46jgtZXBE7ai2GcFu0x55XJksorG8mxG9/hqomHxlIPpPczyNo6vW 8A86arqZZvRGTUKWXe/4XJrnZD7XdSIorQtbVkLEJYBVhcGrSzKMimPbqqwROWvCtcVl pyIJnUPBFM8f7J9V5mN5eZRuOVmdecCnKAo0BtMC3YZPAOXKfpnquW+8VgqX5hyRQAa7 ZM8/s/MwPvt5fDGo1/RmLM89pMH5GkMVtALUO63qq5h7YO+r0/N8KFAG17gb0BKxFUVs YnWQ== X-Gm-Message-State: AOJu0YyV4aSRtPz7mtzT0wx8/DVsqptP5/efSrAHKkP+1A/epxBJ0TS8 Z8iIrROnLR3hsxO0+s8vC5gV90+lO6MYKB3OwPgI+F2ZiXzGruXtaIR3ifrDq0U= X-Google-Smtp-Source: AGHT+IEsXcdPA9DWU3UXkw9eQ3VkaZvKs7/u4HBjVDh7e/yRtBHCqEXbAfRYLaa3ao0IyM8dUnbuMg== X-Received: by 2002:a05:6402:2548:b0:585:c001:c1b5 with SMTP id 4fb4d7f45d1cf-58e5a6f21bemr3745678a12.5.1720193836880; Fri, 05 Jul 2024 08:37:16 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 24/40] plugins/lockstep: make mixed-mode safe Date: Fri, 5 Jul 2024 16:30:36 +0100 Message-Id: <20240705153052.1219696-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::52a; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193933528100005 The ExecState is shared across the socket and if we want to compare say 64 bit and 32 bit binaries we need the two to use the same sizes for things. Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-25-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index 67a779ee9d..8b90b37f67 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -57,7 +57,7 @@ typedef struct { /* The execution state we compare */ typedef struct { uint64_t pc; - unsigned long insn_count; + uint64_t insn_count; } ExecState; =20 typedef struct { @@ -148,7 +148,7 @@ static void report_divergance(ExecState *us, ExecState = *them) =20 g_string_printf(out, "=CE=94 insn_count @ 0x%016" PRIx64 - " (%ld) vs 0x%016" PRIx64 " (%ld)\n", + " (%"PRId64") vs 0x%016" PRIx64 " (%"PRId64")\n", us->pc, us->insn_count, them->pc, them->insn_count= ); =20 for (entry =3D log, i =3D 0; --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193941; cv=none; d=zohomail.com; s=zohoarc; b=Wg3XHDNbZBEDtlkpvFl/mmBTJCUWuNqI/XTiFLmidWnpHtJo2MsFot8pvb5mxCkemEZqRoR9vfd82TGk2nlGUSKfweUARXalMaAz+NJBpjSaJi8RVMGVPLTfXgnPzK7Lh4WdsDpLM0eGMalgmO/vjz6hisssO3/gu3yHJ9m+D6M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193941; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZNf7s8R2vDveHCOH4mOfJzT2WATK9n15xFa8GFpeYac=; b=bfO93omtu4zKf/qYH7dDlDTAUxhU+puTSjDOQM0HrUr4v2ZZBQVFnt2EqQu+pxXLD9POzQ0rv44whV+Bz+6+Hilvv23o5NxP7Tqog0L6pLHJjtFZ/T3P29c9kelpSPEXBkGIlq+Mpmp+FEnDEOfW9j5/dOaUUU4gdX1mU9FewbU= 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 1720193941661959.7034756491745; Fri, 5 Jul 2024 08:39:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl08-0002gd-Oz; Fri, 05 Jul 2024 11:37: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 1sPkzs-0002Zr-FJ for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzp-0001GX-Uj for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a77b60cafecso197590366b.1 for ; Fri, 05 Jul 2024 08:37:13 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77b6c8b69csm149544266b.45.2024.07.05.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:10 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5DEFC6214B; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193832; x=1720798632; 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=ZNf7s8R2vDveHCOH4mOfJzT2WATK9n15xFa8GFpeYac=; b=Akjlxt9uwyCF3QueVHdJ6ox/TaI7VGdVyJ8+X6SNy2Ai+3pVAVKCtwAezaFF61DHD6 V+9DYteSLwDdANn2PCMApmjw3QydGjKaLqDS2ayd3CO2Lb1WuzYP6hAz8JudbiaGQJHp zh2PE5HZ+B9yV3oqUUqxW1+BOQcwSvS2afgtDEU/iEDzgV91l3L3x5/GvDNp5PPe5Z8M osOI9FY5zvHzTJfUifceUv+lbggcj2tDAAxb05YFahmndJk2ipEBsLVZ8rj8pWld11EY 8j/zMboPl2QF5mxwb/zEEL3qq0lgl1vZdbq+2Re8quxNc408rsbn9OkMSEN7uCr6PoE6 IoQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193832; x=1720798632; 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=ZNf7s8R2vDveHCOH4mOfJzT2WATK9n15xFa8GFpeYac=; b=L1YyDrl5pvh9fwe2ARqcLsN0XqdBfi4JvtVwnhmGzFDortOuwImaRfQOaXukKAMX3i zbaYuPoTZRo5vKwaroJo+U5003gQn++OHeSRaRluO5XEa49nLwsvap+gZK0armmFjgkv 6cOyyYl7kT6Zk2gng2mly7QDHYkOR1D7PpzC5o2zFfkQdeyKXCjaVa2y48SxF3sIB+Ex Wo86vrihqvJU7+TRWjivux5VBlkQ/J+kLMJY2KwsW3mMa4q0lbCELdudCg1rA7685yk/ cg/kH05zBEg6pmvuz7SKZ8zOFQa2gr8yu9qr1IDa8DmynU9+7M52VlZzwnp6OvTcePHL 2ozQ== X-Gm-Message-State: AOJu0Yyp5EJciGM+P1pGqKJkLTatq+BzKjLsQUqHGucCJkgFVV7DVutq fMusXO332mbM+20V+PhezdYuvvVjIZT+nL53XWAZYNZSDVj+nQJGJHmhTKWoKjs= X-Google-Smtp-Source: AGHT+IG9Y/VNO3PfLfponUYjg1F1xZWW57EaId1cUQm2sVSeLvimHixh5ICb+jRSN1qlIx70AQjb+Q== X-Received: by 2002:a17:907:97c8:b0:a6f:b5ff:a6fd with SMTP id a640c23a62f3a-a77ba46133dmr424780166b.12.1720193832252; Fri, 05 Jul 2024 08:37:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 25/40] plugins/lockstep: mention the one-insn-per-tb option Date: Fri, 5 Jul 2024 16:30:37 +0100 Message-Id: <20240705153052.1219696-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62a; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193943526100001 This really helps with lockstep although its super slow on big jobs. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-26-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index 8b90b37f67..1765fd6c36 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -14,7 +14,8 @@ * particular run may execute the exact same sequence of blocks. An * asynchronous event (for example X11 graphics update) may cause a * block to end early and a new partial block to start. This means - * serial only test cases are a better bet. -d nochain may also help. + * serial only test cases are a better bet. -d nochain may also help + * as well as -accel tcg,one-insn-per-tb=3Don * * This code is not thread safe! * --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193984; cv=none; d=zohomail.com; s=zohoarc; b=CtBdViNCTY7iYKwUzPBUieQgW+IITv/mp8KgXKvwqM7uA1V3Sv+3He7UE1ZI4to6yhsG2/Jde74SBq97oqxc6O4ZIQ/cNTwNiiGQnNKelVtNp1YvO1JXCAQS5a8EjSq9IDNqjLfOxOTq5SSnN9cfELwmPtPY31b+GKtoJjncZ84= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193984; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=WM8Oz4o9c2T29sVKmOxM7YRppBa9hMmSs60bXcG4GL4=; b=hmySkDmKsfXKVJqIX6vFY+LpXdwsmBEA1NjTJeHpTf1JAr0IfJ8Wh43aOdanKohTb5MUhB41MADbky+xqaeaIq4U+hFAknoyuBCgoO0MnR38vg5Zp/v1mk/FZteoROQZz5V/30O0SQsWQyZZwhOlOssdLwlMdqyd7ZEaQJFmS94= 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 172019398412092.32119051093878; Fri, 5 Jul 2024 08:39:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0E-00032E-NF; Fri, 05 Jul 2024 11:37:38 -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 1sPkzw-0002bM-B7 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:20 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzu-0001Ht-Pe for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:20 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-58ba3e38028so2365231a12.0 for ; Fri, 05 Jul 2024 08:37:18 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58ec828b34asm1785413a12.15.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 7384E62152; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193837; x=1720798637; 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=WM8Oz4o9c2T29sVKmOxM7YRppBa9hMmSs60bXcG4GL4=; b=fFLu3nfSX4XXV8wpthNLS5Ml1/Vb35lL7gzgtD8R+3tj8OleGZ4BwWkdV0rIADfaom GFMoMnTBtB3KwAIK4qWFvtzXG58LnnHBFbPPHQ/wm8xvbUr4nDGuXF+Kaf4neIlJALra ALvZtRaki0dLPcDvjKRg70UQJVyKQLbSegohB4hw+mJqT4wky5Rrz8L8r8F2dTY5LGI3 lw6OzCmKL3FudHqAcHU1gNiodbbMX2J19iQw1TIwnzb01vN8tJWfsnBC/ZrZ8ieW+r7H ab/asXQCRbRKJrfC76p5/QYinSvln+7mus/0urOcXRzzH3hJ09BbihxNq8F+vKl2rsEY zyGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193837; x=1720798637; 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=WM8Oz4o9c2T29sVKmOxM7YRppBa9hMmSs60bXcG4GL4=; b=KZnPrvpU3a4JkCveesfPCT/bxvA4sOF7/3wqs6iXPe0+ycIkilMKEmmKTAEW4J7OYh IMlMNh/JqogX+PbRstjB/dBoEI52UKX9F9lRfNuBkffnZ1LAsRfGZlLf/KCpHMHZQAgh ipXCzfGQTETyCU0oKJiR22bYbKns+Zcr4+lzXGSt5BX1o7L5VBeF/5W/AaVue3ksKY2q 2Wvz19XKU9MA66XFTLUldT4KFscUqkYJAfEG0v6tLK2vb6eLSkp5rKVYxI+vBWHvJplF r+3EniVIrMg8/Xo93vJGLi/4Eed7aF+dhUxQcUTY8PJZTNDZ2jHNyb0KA856e5mNMoDT wP8Q== X-Gm-Message-State: AOJu0YyB5sgLtg+qb8hxhNTYoRpcDg9fVpCe8Z/9e1MCX5rHaX4Giz9i hSmSMgLWG68HWNgDtm5j+YsliRGbgRGaNe7xd7kEyk9Fpc16K7gP5zKm7eQ/jA8= X-Google-Smtp-Source: AGHT+IFub/N3G6hdjFsYcNS+1QLYj8GR53cqoUWTQFkL/xqPfEYgLt5skzjhHwCGDqivmUh7OZPcnw== X-Received: by 2002:a05:6402:2548:b0:585:c001:c1b5 with SMTP id 4fb4d7f45d1cf-58e5a6f21bemr3745694a12.5.1720193837133; Fri, 05 Jul 2024 08:37:17 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour , Pierrick Bouvier Subject: [PULL 26/40] plugins/lockstep: clean-up output Date: Fri, 5 Jul 2024 16:30:38 +0100 Message-Id: <20240705153052.1219696-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::52b; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193985742100001 We were repeating information which wasn't super clear. As we already will have dumped the last failing PC just note the divergence and dump the previous instruction log. Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-27-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index 1765fd6c36..6a7e9bbb39 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -135,10 +135,13 @@ static void report_divergance(ExecState *us, ExecStat= e *them) =20 /* Output short log entry of going out of sync... */ if (verbose || divrec.distance =3D=3D 1 || diverged) { - g_string_printf(out, - "@ 0x%016" PRIx64 " vs 0x%016" PRIx64 + g_string_printf(out, "@ " + "0x%016" PRIx64 " (%" PRId64 ") vs " + "0x%016" PRIx64 " (%" PRId64 ")" " (%d/%d since last)\n", - us->pc, them->pc, g_slist_length(divergence_log), + us->pc, us->insn_count, + them->pc, them->insn_count, + g_slist_length(divergence_log), divrec.distance); qemu_plugin_outs(out->str); } @@ -147,10 +150,7 @@ static void report_divergance(ExecState *us, ExecState= *them) int i; GSList *entry; =20 - g_string_printf(out, - "=CE=94 insn_count @ 0x%016" PRIx64 - " (%"PRId64") vs 0x%016" PRIx64 " (%"PRId64")\n", - us->pc, us->insn_count, them->pc, them->insn_count= ); + g_string_printf(out, "=CE=94 too high, we have diverged, previous = insns\n"); =20 for (entry =3D log, i =3D 0; g_slist_next(entry) && i < 5; @@ -163,7 +163,7 @@ static void report_divergance(ExecState *us, ExecState = *them) prev->insn_count); } qemu_plugin_outs(out->str); - qemu_plugin_outs("too much divergence... giving up."); + qemu_plugin_outs("giving up\n"); qemu_plugin_uninstall(our_id, plugin_cleanup); } } --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193895; cv=none; d=zohomail.com; s=zohoarc; b=AuzJjRTXVBzC4nVkM2YrkIIAR36dHCWzu0riu8v0lPPBg47eDYeOu7ebS3PItSkuTIqKu0ag1ra3cYQcL/yVgWg9MHT+dn1oRFRWaIikABEU/4t7voWFmwGY+wq6L7uowI+rHqPNnYXyABJ5SHiqJw3k3KxxKaO8swNOf1mNcts= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193895; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ua23xrZ298Q42RDQyaYLhWTnQd77z5dPlxT8bKsVuUY=; b=lRLEnvOW+STUjkr62pQf3PtKlIyKUG578T32ouGzua2g1KAsalzdxNpHk9eTekQgoZUg+SDvmtkgCGAc7WFQQWcmcMZzSSzTM2EFb/vGzTt03nQQ8iF9qSngUuwErtg2bZWQSk10x9H+x3OKFpmjIGiov+afSvizyBPxHLZcMCU= 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 1720193895730197.42171660708186; Fri, 5 Jul 2024 08:38:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPkzw-0002b6-Gu; Fri, 05 Jul 2024 11:37:20 -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 1sPkzs-0002Zq-F2 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzp-0001GP-Id for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-58b5f7bf3edso1118672a12.0 for ; Fri, 05 Jul 2024 08:37:13 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5907e4d79ddsm212536a12.59.2024.07.05.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:10 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 896355F876; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193832; x=1720798632; 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=Ua23xrZ298Q42RDQyaYLhWTnQd77z5dPlxT8bKsVuUY=; b=T9OaeGVBYQU0WVa+fs/1TSFsI2Ra0XfWN6SmbU2MCwsrwBM9Nd1NUlnHgpNVo3HMZU /KvfSlU7pS69DQwacEeFvsNy2MnzesDOqMfSwX9N1XZ8oACPR1bYcu9nyHRT80z0TwlB fEtNv9IWOAYg2hve9mKiLVhvIWoN+cDejvStI+rVwzXWQmu+Jg+kBrj5Dw5lrC+55DT3 m5QXW3lkoEP+tyQrvm0lHnQ2FwdhLMSgZLMC+vGSkOm0HvQ/72Ja/bKAwhV1mMdHiYfq cAjZRWnMIl5QSOuHBm79sFDE06VN5YdlbWfGhQ3/hR/Hvgui8YOr+DKps2Bn7S3iexD5 Zu5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193832; x=1720798632; 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=Ua23xrZ298Q42RDQyaYLhWTnQd77z5dPlxT8bKsVuUY=; b=p4D6qxljGzmHviwGs6cfIIXTFv97hXYpOz+JElLpqNZ/5QVgWiX//VxmCXGei7pC18 EiQnG686TeN3p+ORE8OUcUZlVoQ97KuQp9JJsq+HvP/0wjG+Qd8cS2FtntMK557VSGFv 6Rle/titkftRyBSd3NioLQ6vcRFzI/l1i+sUc27GcrDUt5SMUyuv46opGyFUcCtrzcXQ 7SRLuMnj2iyOQYh4pQd9ud0rYGmPCTZFVge7QrDYR+nR3r9driEDtGVyzkLzgRjKZkvl YioO8fs6eO8wQTE/bGujc4MA+v7a5gxGZZ+yl26tvzabIDCOxEVaP71sgt5zGSkR4L2E ucqA== X-Gm-Message-State: AOJu0YzcGPUcChp5U+uH4HLehFfquFbqaRPVhYGWnkkUKWWMa0YaMvHv W1OiAOlFZhpCHg5Z2QDjYJx4Nx6SbZSUspqL5OaA9NfcO4kCFI7bWIrvKgnLMDE= X-Google-Smtp-Source: AGHT+IFZccrel+TFP0JVYkHmWdVeZ5dXJTaanWcRPzpZB2PkqoX9Q4At3wMRE6ZwNXLYT2CNqZAgog== X-Received: by 2002:a05:6402:1ece:b0:57d:496:209a with SMTP id 4fb4d7f45d1cf-58e5994eb84mr4943921a12.6.1720193831410; Fri, 05 Jul 2024 08:37:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 27/40] plugins: Ensure vCPU index is assigned in init/exit hooks Date: Fri, 5 Jul 2024 16:30:39 +0100 Message-Id: <20240705153052.1219696-28-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::52e; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193897315100001 From: Philippe Mathieu-Daud=C3=A9 Since vCPUs are hashed by their index, this index can't be uninitialized (UNASSIGNED_CPU_INDEX). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-Id: <20240606124010.2460-2-philmd@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-28-alex.bennee@linaro.org> diff --git a/plugins/core.c b/plugins/core.c index 9d737d8278..a864275ae7 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -245,6 +245,7 @@ void qemu_plugin_vcpu_init_hook(CPUState *cpu) { bool success; =20 + assert(cpu->cpu_index !=3D UNASSIGNED_CPU_INDEX); qemu_rec_mutex_lock(&plugin.lock); plugin.num_vcpus =3D MAX(plugin.num_vcpus, cpu->cpu_index + 1); plugin_cpu_update__locked(&cpu->cpu_index, NULL, NULL); @@ -263,6 +264,7 @@ void qemu_plugin_vcpu_exit_hook(CPUState *cpu) =20 plugin_vcpu_cb__simple(cpu, QEMU_PLUGIN_EV_VCPU_EXIT); =20 + assert(cpu->cpu_index !=3D UNASSIGNED_CPU_INDEX); qemu_rec_mutex_lock(&plugin.lock); success =3D g_hash_table_remove(plugin.cpu_ht, &cpu->cpu_index); g_assert(success); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193948; cv=none; d=zohomail.com; s=zohoarc; b=BQBda345zZD9cFsGxzsv8jhqUgQkE5rZ8EoqrE/LQDRMrhl9undkS6fDdMfqTCytB60PcQIzwqZ5wIbCe8bXqamBmVFDnUdpddX3qbCWUF69UTOocAwUqhctdCNR5sXfS77xZ1NCnz2R9lnqD6yVGqJcgV94fT3OPyTDbnOy1PE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193948; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XHcDwGWcAEdZtrzAOVXBblsUbX47TAsskA5aGzhGobA=; b=GnVmzj9VUchwqwsSuvMcmWkhz8p39D67MwR9a8PJv2ocRsVKzFZvp4MIBAW4Cz8Xh1NfkHLy+NRI2GsidzvMMPo+zArChigaZeJK3tQ9fKaKVkJ08QdBk2GLaUGhcwM7Ie+cQw3PyHiWpwHp7w3EkcQ9UF/8zglPS0CFRSh13ys= 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 1720193948456158.69516688178908; Fri, 5 Jul 2024 08:39:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0C-0002rS-EF; Fri, 05 Jul 2024 11:37:36 -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 1sPl04-0002ea-2w for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl02-0001Ja-5Y for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:27 -0400 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2eaae2a6dc1so26647591fa.0 for ; Fri, 05 Jul 2024 08:37:24 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08d0e7sm688192866b.165.2024.07.05.08.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:20 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A11D262155; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193843; x=1720798643; 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=XHcDwGWcAEdZtrzAOVXBblsUbX47TAsskA5aGzhGobA=; b=PoFJPeD0JgXi7RFumxc/DUaJralHHwJhNJxHJhu801DR4fP9nkssClfFNoU0DiJUqG l53Bv9pPGliTuoszMXazvlG/MN6c0MSw3dJi5Im9P8Lb/u+DAX7bKKtDV8VG3a8wklGt lMeXcylpnJs5h3irekQo9ooTbx1vfgt1IBpztNSkOPRZx8aM6Bbyd7Ye7bjDwPQHRna7 ratuOqIrqd9If6RgokddrNN5HTABQOSuytc/INt13ZEXICB0EIVQJMfTnKQY+PxDEjMb 1HIn493DlvGYYBxA+YbHIJAj7eAH7Qo6iIornp0/AhqdmS+vRt3PVJrN+47uuo5/YKxa fysA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193843; x=1720798643; 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=XHcDwGWcAEdZtrzAOVXBblsUbX47TAsskA5aGzhGobA=; b=i5hFrCiHKxkhmnNGCBSe7RF+kC81cFhr55rRjzMnJ7dzDjHO/TqiWOp5BFjnIJ7F3t N7sHFFm1gPgIJKaYk2z2TFgnPFOYayGh8LEq7JjoVwDIxjnslq2fHJdKoIw6aeTnDWUS OUB/IR12FQDgaejC+HuiHUxkRI2K9fvdHSwI1ftBcSMt2GpZsNX/23GppttjuxGghOaS 3swOPoN9793xeLKwE3dHPvgmffMnDuLHKfBK5kcFyWAtPmk0IOQnCoolUONxf1c/Fhh0 1mE87bPKXE1THEPt9orteZDoWgCqE1obv9LAYbEGv6fdw1/3W0ZZ+8/piVHv0uqZ4OGf veEg== X-Gm-Message-State: AOJu0YzDGy2DjsVIWSxkCReD9H752Cu4kANGVuBhCZTz2ZG5tYOYiokr XzLCRtXy1raZRbCuTilbNA1dwm5gmKou3kJ6gS4o53+Ue5dN+9B7qM0W/rMLO6A= X-Google-Smtp-Source: AGHT+IHE4Hx2qnBGa0yjQGxGqK2+IHmHvdTnqeukx+ZK7/mErmC5np0DIHi3FPEdrALxmuNCXC2+QQ== X-Received: by 2002:a2e:730a:0:b0:2ec:4093:ec7 with SMTP id 38308e7fff4ca-2ee8eda81femr41880451fa.30.1720193842507; Fri, 05 Jul 2024 08:37:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Eduardo Habkost , Marcel Apfelbaum , Yanan Wang Subject: [PULL 28/40] plugins: Free CPUPluginState before destroying vCPU state Date: Fri, 5 Jul 2024 16:30:40 +0100 Message-Id: <20240705153052.1219696-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::22c; envelope-from=alex.bennee@linaro.org; helo=mail-lj1-x22c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193949521100013 From: Philippe Mathieu-Daud=C3=A9 cpu::plugin_state is allocated in cpu_common_initfn() when the vCPU state is created. Release it in cpu_common_finalize() when we are done. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Message-Id: <20240606124010.2460-3-philmd@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-29-alex.bennee@linaro.org> diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h index bc5aef979e..af5f9db469 100644 --- a/include/qemu/plugin.h +++ b/include/qemu/plugin.h @@ -149,6 +149,9 @@ struct CPUPluginState { =20 /** * qemu_plugin_create_vcpu_state: allocate plugin state + * + * The returned data must be released with g_free() + * when no longer required. */ CPUPluginState *qemu_plugin_create_vcpu_state(void); =20 diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index f131cde2c0..8f6cb64da3 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -283,6 +283,11 @@ static void cpu_common_finalize(Object *obj) { CPUState *cpu =3D CPU(obj); =20 +#ifdef CONFIG_PLUGIN + if (tcg_enabled()) { + g_free(cpu->plugin_state); + } +#endif g_array_free(cpu->gdb_regs, TRUE); qemu_lockcnt_destroy(&cpu->in_ioctl_lock); qemu_mutex_destroy(&cpu->work_mutex); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193901; cv=none; d=zohomail.com; s=zohoarc; b=DAv2um2844lFyGGQrftPVIpstlFyuYZbnfztkKi1frt7srZY3MsCAVjx7EbpCJNifXLWVgPMA1dJqjD+GS6uHM+oK7633yXL9SzmdzVhotkOcgxMwx/PrzcjV1zYu9DnSp11DiA3BMOyIDPQUg8TWxojKWtFGXO5JBJzT5E/P9o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193901; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YzA2EMsKf7CQ8lqPZMs8GAjfAh3DVBSL7qsQ3s3Y9XE=; b=jwCqSZhpR76Yg8JI7U3CquseeqNqRT5mBpztRuft/u7YGSmBc1tECxJyxzdPsB1e09aYgcrKoYAfg13QFrUE/sQtcQ0EC3WLeKu2b/b2pcsOSBaTWiR4KsyN8weJGlO/TLFiPIMlZOTqcGFJUFlU0vVNhfGFBOd6LkNubIDvDbs= 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 1720193901485462.72663618156844; Fri, 5 Jul 2024 08:38:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl02-0002dV-GM; Fri, 05 Jul 2024 11:37:26 -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 1sPkzu-0002aj-Hq for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:18 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzs-0001H8-Sd for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:18 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-57cd26347d3so2434633a12.1 for ; Fri, 05 Jul 2024 08:37:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58eff6d1da5sm1537029a12.0.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BA15962156; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193835; x=1720798635; 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=YzA2EMsKf7CQ8lqPZMs8GAjfAh3DVBSL7qsQ3s3Y9XE=; b=mr61Th4ex8OBsmmNWv37GykglZ0JpsWZP5TOyG5UbAJPArL26dWNZZHfIaf5MDAh+i 6E1nDF2xPP1CrIDRcL2s4yfsgsw7lR5Ec/lfLNXLgXPVzFHTE0PnpfwkZCw9sO8rURVl xdMLmVZSDDt0f2+1A7xeBLceyEl5TOIEii7HgHURzxohomATdzK2WAmexJCtBeOzh4h8 5ICmTbD8Ux2QhM3kY409kt83suJG9fCZvnrn3AHPPqIm8L3Fh8TXuAr/P14mNXX+YeKf c9aqp8BhHIc4zQhJoHvspuTpEPfrJkEeE0r6nEWK9WXY56jI2yphhHC10CCjfyFg49mH 6MRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193835; x=1720798635; 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=YzA2EMsKf7CQ8lqPZMs8GAjfAh3DVBSL7qsQ3s3Y9XE=; b=C/rF9vefZcfL94Kif2mFWobhKHceYY74P9fT5TORfIcsA39ZmxiEVY7AqZ3kbMD55N 4r7It9WB/9adArwVmk/n0yWeGNldqXmdR1/2qqa9gVO1KCh/UinNbsoBfTwoSapdTCox BsF0m5pvo+mBpHkDQDvqQ7P4lVtnHJ5J0+mTeGLtRlyuFWhvT0U7n2bJqMOkGvkFB6XC dN0MojLgMRPSOaq/ECFeuwUnEQSfNBSm/78suoG1nSU8nQ+p+x76uJc+LezGgaogGo6T uWad34wPifPy86qkFj+rfjnW7/TcESd31awQwMvsY/KchE6K6Ackf4U9NpXQKD2kYBMc +OFQ== X-Gm-Message-State: AOJu0YwSiqk41632bhvG9Tdaby9g8UDn87KYVAyoYwNQubAKbHtVPT8Q bPJyQWFTrPWAuJzHKDhYDFsF5d78IPie9bss9E9k2pu2EelQyhGYiZ8sY2SqRJQ= X-Google-Smtp-Source: AGHT+IEPCetaNG5Cf400+fFPzzFGj7ghkDve4XAhmciBM8muzHyP8AnevjWFZVSlDTUs5v4fo6SBhw== X-Received: by 2002:a05:6402:274c:b0:57c:6d9a:9149 with SMTP id 4fb4d7f45d1cf-58e5adce5efmr3133130a12.15.1720193834775; Fri, 05 Jul 2024 08:37:14 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Eduardo Habkost , Marcel Apfelbaum , Yanan Wang , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 29/40] accel/tcg: Move qemu_plugin_vcpu_init__async() to plugins/ Date: Fri, 5 Jul 2024 16:30:41 +0100 Message-Id: <20240705153052.1219696-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::534; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x534.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193903558100001 From: Philippe Mathieu-Daud=C3=A9 Calling qemu_plugin_vcpu_init__async() on the vCPU thread is a detail of plugins, not relevant to TCG vCPU management. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Pierrick Bouvier Message-Id: <20240606124010.2460-4-philmd@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-30-alex.bennee@linaro.org> diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c index 8f6cb64da3..b19e1fdacf 100644 --- a/hw/core/cpu-common.c +++ b/hw/core/cpu-common.c @@ -192,13 +192,6 @@ static void cpu_common_parse_features(const char *type= name, char *features, } } =20 -#ifdef CONFIG_PLUGIN -static void qemu_plugin_vcpu_init__async(CPUState *cpu, run_on_cpu_data un= used) -{ - qemu_plugin_vcpu_init_hook(cpu); -} -#endif - static void cpu_common_realizefn(DeviceState *dev, Error **errp) { CPUState *cpu =3D CPU(dev); @@ -274,7 +267,7 @@ static void cpu_common_initfn(Object *obj) #ifdef CONFIG_PLUGIN if (tcg_enabled()) { cpu->plugin_state =3D qemu_plugin_create_vcpu_state(); - async_run_on_cpu(cpu, qemu_plugin_vcpu_init__async, RUN_ON_CPU_NUL= L); + qemu_plugin_vcpu_init_hook(cpu); } #endif } diff --git a/plugins/core.c b/plugins/core.c index a864275ae7..12c67b4b4e 100644 --- a/plugins/core.c +++ b/plugins/core.c @@ -241,7 +241,7 @@ static void plugin_grow_scoreboards__locked(CPUState *c= pu) end_exclusive(); } =20 -void qemu_plugin_vcpu_init_hook(CPUState *cpu) +static void qemu_plugin_vcpu_init__async(CPUState *cpu, run_on_cpu_data un= used) { bool success; =20 @@ -258,6 +258,12 @@ void qemu_plugin_vcpu_init_hook(CPUState *cpu) plugin_vcpu_cb__simple(cpu, QEMU_PLUGIN_EV_VCPU_INIT); } =20 +void qemu_plugin_vcpu_init_hook(CPUState *cpu) +{ + /* Plugin initialization must wait until the cpu start executing code = */ + async_run_on_cpu(cpu, qemu_plugin_vcpu_init__async, RUN_ON_CPU_NULL); +} + void qemu_plugin_vcpu_exit_hook(CPUState *cpu) { bool success; --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193912; cv=none; d=zohomail.com; s=zohoarc; b=ATNIsbmTXNEu1zWbucmr5jhg42l5CBMio3Qn/VFcMMjhZjD4GccvPF/bfzKBk7iCMHlguGxM29zHV3aGE5pFmbmMe14a84Pt5Mh6S91Wvy+FeG41hgpA+A3Qs6Hi3+pWOwPmQf3+ICZv66I+NGnilqfetH87YqS6VxpaDjBUQQo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193912; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=AzZJILDpjzCFS1oa5xiSH1SXLCbMpnINOysIyIIVbec=; b=mX3Ta7b0RCXSJW0fZEyEYaJQ9cs4FFE9Pt9Hf5TAdF0igEniQUpXlMXNWjsNOBCFJhN/qYr86QQVTSg/T6suroNj4yNYBROKMgErTZZtXhRI0GW/iw/TZrjb2YeTb17NqR95xcKp8Oj6awnUJ6TwHKdojDOjql2nzc0ahV1DceQ= 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 1720193912145971.5940305846848; Fri, 5 Jul 2024 08:38:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0F-00033B-07; Fri, 05 Jul 2024 11:37:39 -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 1sPl04-0002eb-7Z for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl00-0001JG-BZ for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:27 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-58b447c511eso2387501a12.2 for ; Fri, 05 Jul 2024 08:37:23 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf638fesm686349366b.68.2024.07.05.08.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:20 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CE3E55F931; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193843; x=1720798643; 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=AzZJILDpjzCFS1oa5xiSH1SXLCbMpnINOysIyIIVbec=; b=EgeIztKz2EHAecYecCkmc1FD4HYzuqcefh/0ypZ53JtnGiVAJa+bcN4PQ2tBtywOR5 K8pQ0k1brxtRbzYHTlkRqkeYrr2WBPag6Lrk4udXlQphWulWKhnnst744wygd2ZnUesf RR0GUx9T3qtyAoU+Jw6KwfZjLrHSOMNKDNrREjDCy2Z8DwSASqbbaeImvO1aNS3DprGR DyG/GX7+NYlLo8KPAOWjnFWdCMrwKKS1WP16c2bMvuk5VXiqveWYLCTNtXatIkQ+aODV u1vHyGzSUyywY4UdZ8Dr/KC/VFldB/NCLkGi06JWessoiwAoJNULMzjLZMygM4zSu8k5 BmiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193843; x=1720798643; 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=AzZJILDpjzCFS1oa5xiSH1SXLCbMpnINOysIyIIVbec=; b=Csk46In+rMXN3G5Hb4dV3c7Lmr7rYYQFtgTJ9S2LQ5ppnA44t7Bdjrrv+xjtO5i5so Jyisf6K0zIV4XY9BmLP0z+oUMaCRwZ/GyiYU+5nXA3++iAVINhcpKQN2wcyw1HJasx89 ugPixiA4ipSSYlht0eczBXzZf1QWjwXjbrNoFUgy5gtJRHX1mGDIXbNRttVkjaB45vg5 1YGsxIaJZUUdEOPQxH0mKihrsunEfcrNHbT2ZNLemdYSeL2AjvkYfq7yqwC2tNFMztPq oFs7hxGuX/PyiAtPwohdTSw53kkyo+Jq7hjY7SQuKsQVai6Ng3K2x/pVnVFE0i5Bfq75 Ae6w== X-Gm-Message-State: AOJu0Yw2i5oymJAXRptfcV3zljI+Cg30H/6ggP2eMWDtsqjfHRjD122S g5mXFB1I79ZCP6x8rx6aQyGPN43YjCITEwaPGSmL+bGabL0DCGNugh5k7L2iizc= X-Google-Smtp-Source: AGHT+IFnWmXC2OshjSJmyBEEzd1zp2xXesFXu9aa4D2IxGRrCmdUXsLCq/qC3ch5OHK2C61yC8Ti3A== X-Received: by 2002:a17:906:64f:b0:a77:de2a:af00 with SMTP id a640c23a62f3a-a77de2ab225mr27017066b.44.1720193842241; Fri, 05 Jul 2024 08:37:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 30/40] gdbstub: Clean up process_string_cmd Date: Fri, 5 Jul 2024 16:30:42 +0100 Message-Id: <20240705153052.1219696-31-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::535; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x535.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193913399100001 From: Gustavo Romero Change 'process_string_cmd' to return true on success and false on failure, instead of 0 and -1. Signed-off-by: Gustavo Romero Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20240628050850.536447-2-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-31-alex.bennee@linaro.org> diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index b3574997ea..37314b92e5 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -962,14 +962,14 @@ static inline int startswith(const char *string, cons= t char *pattern) return !strncmp(string, pattern, strlen(pattern)); } =20 -static int process_string_cmd(const char *data, - const GdbCmdParseEntry *cmds, int num_cmds) +static bool process_string_cmd(const char *data, + const GdbCmdParseEntry *cmds, int num_cmds) { int i; g_autoptr(GArray) params =3D g_array_new(false, true, sizeof(GdbCmdVar= iant)); =20 if (!cmds) { - return -1; + return false; } =20 for (i =3D 0; i < num_cmds; i++) { @@ -984,16 +984,16 @@ static int process_string_cmd(const char *data, if (cmd->schema) { if (cmd_parse_params(&data[strlen(cmd->cmd)], cmd->schema, params)) { - return -1; + return false; } } =20 gdbserver_state.allow_stop_reply =3D cmd->allow_stop_reply; cmd->handler(params, NULL); - return 0; + return true; } =20 - return -1; + return false; } =20 static void run_cmd_parser(const char *data, const GdbCmdParseEntry *cmd) @@ -1007,7 +1007,7 @@ static void run_cmd_parser(const char *data, const Gd= bCmdParseEntry *cmd) =20 /* In case there was an error during the command parsing we must * send a NULL packet to indicate the command is not supported */ - if (process_string_cmd(data, cmd, 1)) { + if (!process_string_cmd(data, cmd, 1)) { gdb_put_packet(""); } } @@ -1523,9 +1523,9 @@ static void handle_v_commands(GArray *params, void *u= ser_ctx) return; } =20 - if (process_string_cmd(get_param(params, 0)->data, - gdb_v_commands_table, - ARRAY_SIZE(gdb_v_commands_table))) { + if (!process_string_cmd(get_param(params, 0)->data, + gdb_v_commands_table, + ARRAY_SIZE(gdb_v_commands_table))) { gdb_put_packet(""); } } @@ -1889,15 +1889,15 @@ static void handle_gen_query(GArray *params, void *= user_ctx) return; } =20 - if (!process_string_cmd(get_param(params, 0)->data, - gdb_gen_query_set_common_table, - ARRAY_SIZE(gdb_gen_query_set_common_table))) { + if (process_string_cmd(get_param(params, 0)->data, + gdb_gen_query_set_common_table, + ARRAY_SIZE(gdb_gen_query_set_common_table))) { return; } =20 - if (process_string_cmd(get_param(params, 0)->data, - gdb_gen_query_table, - ARRAY_SIZE(gdb_gen_query_table))) { + if (!process_string_cmd(get_param(params, 0)->data, + gdb_gen_query_table, + ARRAY_SIZE(gdb_gen_query_table))) { gdb_put_packet(""); } } @@ -1908,13 +1908,13 @@ static void handle_gen_set(GArray *params, void *us= er_ctx) return; } =20 - if (!process_string_cmd(get_param(params, 0)->data, - gdb_gen_query_set_common_table, - ARRAY_SIZE(gdb_gen_query_set_common_table))) { + if (process_string_cmd(get_param(params, 0)->data, + gdb_gen_query_set_common_table, + ARRAY_SIZE(gdb_gen_query_set_common_table))) { return; } =20 - if (process_string_cmd(get_param(params, 0)->data, + if (!process_string_cmd(get_param(params, 0)->data, gdb_gen_set_table, ARRAY_SIZE(gdb_gen_set_table))) { gdb_put_packet(""); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720194483; cv=none; d=zohomail.com; s=zohoarc; b=iMrhVj75HmltRVRr2+dc2YUx8Z2HhtAoMM+irprPdYdF9TsiV+PDEid/zvX14kk1LHUv6gEVnCUB1pwgpDwxOzq92J9pC3Y0pqNtc7RSx40JPTUslM4QPkKzVfywozyS8J0sg1NNiuIYB6I/ZsbM8IiMB4TZwSSJ1zspwBUFON8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720194483; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=AEGqmlXFYPvY+nN/cPxtjQjQNeseQhDcWtxEKb6+a1E=; b=VXq+sK4rH0WLEODr+2zuR9D3TduTwEJpWZ+PDOAObguwa/S8IdP+OogVrbcCj+cI7vR+gfnvznBm+z1Cajv0TF5t+ELFsb8AvgOuTOOtigSAnTtx5Lvw91DnutaJeYtd2CZ9sJ0ZxEUqh1XSDEO2wcwn9BDueCdJUuuUGj87L60= 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 1720194482999922.723841654644; Fri, 5 Jul 2024 08:48:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl9f-0005nG-DT; Fri, 05 Jul 2024 11:47:25 -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 1sPl9c-0005mZ-7h for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:47:21 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl9Y-0005pK-Ti for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:47:19 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52e9f788e7bso1901030e87.0 for ; Fri, 05 Jul 2024 08:47:16 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77d965dc4asm38847666b.87.2024.07.05.08.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:47:11 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EEF7262157; Fri, 5 Jul 2024 16:30:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720194435; x=1720799235; 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=AEGqmlXFYPvY+nN/cPxtjQjQNeseQhDcWtxEKb6+a1E=; b=SAp9axVxMlXc6REjVpeOshxWAxxHwrsUUJfpIj2/A0zkpYxGdtPWp0eJjfUhZPFl6k VLF4UW5TSax5/TqFviIefQDuDRR3X9IjZKIQ1CSedBogR9GFgfqUvX9+GwkWzGcDINNo kY6XzK/dZnVYIjF72M09QvozY8zR3ulMZYE4gGx/pDXLHDw1uSPutM/uy4EF6hVOUGAW TJv7pVxx1o9z6i+dz7hA+bZB556QIbD4mP7hj7ZnJPk6ZmB0pUYMYMKhcew5EMThSIKs dXMVIv8ojtVmPL6/wXCWSkaqI5x0QhyMZVz9gknzMXEBJsHGJ0W1Dht3USzMcahwUFCY k62Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720194435; x=1720799235; 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=AEGqmlXFYPvY+nN/cPxtjQjQNeseQhDcWtxEKb6+a1E=; b=h67U4YNSFDwbk2MCp79OHucxSg2XLIU15tZVR+TQIA24ugOl99LAEjTkApqSSUgj9Y gpLV4pVa0701td3UINqO9z4GUnm5pR77GdD7ghLOMJFCd2tp+iuxR4NZYm4VW/RUFL6P jmbxCowScKHqMWyPtTbS/vxD1Ku4BoEJkim3LHQTomxf/hJELivbD6UMkrsuZXx9Vh7J vIyFGZRxegsjsLu0iQCjNHBsJQ6H0MT+336XAgotJc3q2gdynPoUV/Ct4rOJ3urgE04E a2Gf6v4yVmfnXq0SyApcUToMNUsp4H2bNdB4LYvX+s6j56L1Ijo1gxMd/SfOfki9f2W8 +DZA== X-Gm-Message-State: AOJu0Yy2fHqP0cWGkDx1rAIZtxdFu9Qx2gBiD82scmB3GjLzwUFnIUDW vf3/7Ag0nPtONAjBQmUyDV0HOafh3xFoEJUqnNrqQdvwEfP11ELrBF+W2UHY1vg= X-Google-Smtp-Source: AGHT+IFLDubuOnePDXM4kPiz7x6qoU8YDI6z0VYRELmHWPU6eb8nvZdGYtsBL5dipDAZOx8leOttug== X-Received: by 2002:a19:2d0e:0:b0:52e:9d28:c288 with SMTP id 2adb3069b0e04-52ea06274d0mr3296791e87.24.1720194433134; Fri, 05 Jul 2024 08:47:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 31/40] gdbstub: Move GdbCmdParseEntry into a new header file Date: Fri, 5 Jul 2024 16:30:43 +0100 Message-Id: <20240705153052.1219696-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::12b; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720194484284100005 From: Gustavo Romero Move GdbCmdParseEntry and its associated types into a separate header file to allow the use of GdbCmdParseEntry and other gdbstub command functions outside of gdbstub.c. Since GdbCmdParseEntry and get_param are now public, kdoc GdbCmdParseEntry and rename get_param to gdb_get_cmd_param. This commit also makes gdb_put_packet public since is used in gdbstub command handling. Signed-off-by: Gustavo Romero Reviewed-by: Alex Benn=C3=A9e Message-Id: <20240628050850.536447-3-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-32-alex.bennee@linaro.org> diff --git a/gdbstub/internals.h b/gdbstub/internals.h index 32f9f63297..34121dc61a 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -106,7 +106,6 @@ static inline int tohex(int v) */ =20 void gdb_put_strbuf(void); -int gdb_put_packet(const char *buf); int gdb_put_packet_binary(const char *buf, int len, bool dump); void gdb_hextomem(GByteArray *mem, const char *buf, int len); void gdb_memtohex(GString *buf, const uint8_t *mem, int len); @@ -166,27 +165,6 @@ void gdb_put_buffer(const uint8_t *buf, int len); */ void gdb_init_gdbserver_state(void); =20 -typedef enum GDBThreadIdKind { - GDB_ONE_THREAD =3D 0, - GDB_ALL_THREADS, /* One process, all threads */ - GDB_ALL_PROCESSES, - GDB_READ_THREAD_ERR -} GDBThreadIdKind; - -typedef union GdbCmdVariant { - const char *data; - uint8_t opcode; - unsigned long val_ul; - unsigned long long val_ull; - struct { - GDBThreadIdKind kind; - uint32_t pid; - uint32_t tid; - } thread_id; -} GdbCmdVariant; - -#define get_param(p, i) (&g_array_index(p, GdbCmdVariant, i)) - void gdb_handle_query_rcmd(GArray *params, void *ctx); /* system */ void gdb_handle_query_offsets(GArray *params, void *user_ctx); /* user */ void gdb_handle_query_xfer_auxv(GArray *params, void *user_ctx); /*user */ diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h new file mode 100644 index 0000000000..639257493e --- /dev/null +++ b/include/gdbstub/commands.h @@ -0,0 +1,72 @@ +#ifndef GDBSTUB_COMMANDS_H +#define GDBSTUB + +typedef void (*GdbCmdHandler)(GArray *params, void *user_ctx); + +typedef enum GDBThreadIdKind { + GDB_ONE_THREAD =3D 0, + GDB_ALL_THREADS, /* One process, all threads */ + GDB_ALL_PROCESSES, + GDB_READ_THREAD_ERR +} GDBThreadIdKind; + +typedef union GdbCmdVariant { + const char *data; + uint8_t opcode; + unsigned long val_ul; + unsigned long long val_ull; + struct { + GDBThreadIdKind kind; + uint32_t pid; + uint32_t tid; + } thread_id; +} GdbCmdVariant; + +#define gdb_get_cmd_param(p, i) (&g_array_index(p, GdbCmdVariant, i)) + +/** + * typedef GdbCmdParseEntry - gdb command parser + * + * This structure keeps the information necessary to match a gdb command, + * parse it (extract its parameters), and select the correct handler for i= t. + * + * @cmd: The command to be matched + * @cmd_startswith: If true, @cmd is compared using startswith + * @schema: Each schema for the command parameter entry consists of 2 char= s, + * the first char represents the parameter type handling the second char + * represents the delimiter for the next parameter. + * + * Currently supported schema types: + * 'l' -> unsigned long (stored in .val_ul) + * 'L' -> unsigned long long (stored in .val_ull) + * 's' -> string (stored in .data) + * 'o' -> single char (stored in .opcode) + * 't' -> thread id (stored in .thread_id) + * '?' -> skip according to delimiter + * + * Currently supported delimiters: + * '?' -> Stop at any delimiter (",;:=3D\0") + * '0' -> Stop at "\0" + * '.' -> Skip 1 char unless reached "\0" + * Any other value is treated as the delimiter value itself + * + * @allow_stop_reply: True iff the gdbstub can respond to this command wit= h a + * "stop reply" packet. The list of commands that accept such response is + * defined at the GDB Remote Serial Protocol documentation. See: + * https://sourceware.org/gdb/onlinedocs/gdb/Stop-Reply-Packets.html#Stop-= Reply-Packets. + */ +typedef struct GdbCmdParseEntry { + GdbCmdHandler handler; + const char *cmd; + bool cmd_startswith; + const char *schema; + bool allow_stop_reply; +} GdbCmdParseEntry; + +/** + * gdb_put_packet() - put string into gdb server's buffer so it is sent + * to the client + */ +int gdb_put_packet(const char *buf); + +#endif /* GDBSTUB_COMMANDS_H */ diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 37314b92e5..9ff2f4177d 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -30,6 +30,7 @@ #include "qemu/error-report.h" #include "trace.h" #include "exec/gdbstub.h" +#include "gdbstub/commands.h" #include "gdbstub/syscalls.h" #ifdef CONFIG_USER_ONLY #include "accel/tcg/vcpu-state.h" @@ -920,43 +921,6 @@ static int cmd_parse_params(const char *data, const ch= ar *schema, return 0; } =20 -typedef void (*GdbCmdHandler)(GArray *params, void *user_ctx); - -/* - * cmd_startswith -> cmd is compared using startswith - * - * allow_stop_reply -> true iff the gdbstub can respond to this command wi= th a - * "stop reply" packet. The list of commands that accept such response is - * defined at the GDB Remote Serial Protocol documentation. see: - * https://sourceware.org/gdb/onlinedocs/gdb/Stop-Reply-Packets.html#Sto= p-Reply-Packets. - * - * schema definitions: - * Each schema parameter entry consists of 2 chars, - * the first char represents the parameter type handling - * the second char represents the delimiter for the next parameter - * - * Currently supported schema types: - * 'l' -> unsigned long (stored in .val_ul) - * 'L' -> unsigned long long (stored in .val_ull) - * 's' -> string (stored in .data) - * 'o' -> single char (stored in .opcode) - * 't' -> thread id (stored in .thread_id) - * '?' -> skip according to delimiter - * - * Currently supported delimiters: - * '?' -> Stop at any delimiter (",;:=3D\0") - * '0' -> Stop at "\0" - * '.' -> Skip 1 char unless reached "\0" - * Any other value is treated as the delimiter value itself - */ -typedef struct GdbCmdParseEntry { - GdbCmdHandler handler; - const char *cmd; - bool cmd_startswith; - const char *schema; - bool allow_stop_reply; -} GdbCmdParseEntry; - static inline int startswith(const char *string, const char *pattern) { return !strncmp(string, pattern, strlen(pattern)); @@ -1023,7 +987,7 @@ static void handle_detach(GArray *params, void *user_c= tx) return; } =20 - pid =3D get_param(params, 0)->val_ul; + pid =3D gdb_get_cmd_param(params, 0)->val_ul; } =20 #ifdef CONFIG_USER_ONLY @@ -1061,13 +1025,13 @@ static void handle_thread_alive(GArray *params, voi= d *user_ctx) return; } =20 - if (get_param(params, 0)->thread_id.kind =3D=3D GDB_READ_THREAD_ERR) { + if (gdb_get_cmd_param(params, 0)->thread_id.kind =3D=3D GDB_READ_THREA= D_ERR) { gdb_put_packet("E22"); return; } =20 - cpu =3D gdb_get_cpu(get_param(params, 0)->thread_id.pid, - get_param(params, 0)->thread_id.tid); + cpu =3D gdb_get_cpu(gdb_get_cmd_param(params, 0)->thread_id.pid, + gdb_get_cmd_param(params, 0)->thread_id.tid); if (!cpu) { gdb_put_packet("E22"); return; @@ -1079,7 +1043,7 @@ static void handle_thread_alive(GArray *params, void = *user_ctx) static void handle_continue(GArray *params, void *user_ctx) { if (params->len) { - gdb_set_cpu_pc(get_param(params, 0)->val_ull); + gdb_set_cpu_pc(gdb_get_cmd_param(params, 0)->val_ull); } =20 gdbserver_state.signal =3D 0; @@ -1095,7 +1059,7 @@ static void handle_cont_with_sig(GArray *params, void= *user_ctx) * omit the addr parameter */ if (params->len) { - signal =3D get_param(params, 0)->val_ul; + signal =3D gdb_get_cmd_param(params, 0)->val_ul; } =20 gdbserver_state.signal =3D gdb_signal_to_target(signal); @@ -1115,18 +1079,18 @@ static void handle_set_thread(GArray *params, void = *user_ctx) return; } =20 - if (get_param(params, 1)->thread_id.kind =3D=3D GDB_READ_THREAD_ERR) { + if (gdb_get_cmd_param(params, 1)->thread_id.kind =3D=3D GDB_READ_THREA= D_ERR) { gdb_put_packet("E22"); return; } =20 - if (get_param(params, 1)->thread_id.kind !=3D GDB_ONE_THREAD) { + if (gdb_get_cmd_param(params, 1)->thread_id.kind !=3D GDB_ONE_THREAD) { gdb_put_packet("OK"); return; } =20 - pid =3D get_param(params, 1)->thread_id.pid; - tid =3D get_param(params, 1)->thread_id.tid; + pid =3D gdb_get_cmd_param(params, 1)->thread_id.pid; + tid =3D gdb_get_cmd_param(params, 1)->thread_id.tid; #ifdef CONFIG_USER_ONLY if (gdb_handle_set_thread_user(pid, tid)) { return; @@ -1142,7 +1106,7 @@ static void handle_set_thread(GArray *params, void *u= ser_ctx) * Note: This command is deprecated and modern gdb's will be using the * vCont command instead. */ - switch (get_param(params, 0)->opcode) { + switch (gdb_get_cmd_param(params, 0)->opcode) { case 'c': gdbserver_state.c_cpu =3D cpu; gdb_put_packet("OK"); @@ -1167,9 +1131,9 @@ static void handle_insert_bp(GArray *params, void *us= er_ctx) } =20 res =3D gdb_breakpoint_insert(gdbserver_state.c_cpu, - get_param(params, 0)->val_ul, - get_param(params, 1)->val_ull, - get_param(params, 2)->val_ull); + gdb_get_cmd_param(params, 0)->val_ul, + gdb_get_cmd_param(params, 1)->val_ull, + gdb_get_cmd_param(params, 2)->val_ull); if (res >=3D 0) { gdb_put_packet("OK"); return; @@ -1191,9 +1155,9 @@ static void handle_remove_bp(GArray *params, void *us= er_ctx) } =20 res =3D gdb_breakpoint_remove(gdbserver_state.c_cpu, - get_param(params, 0)->val_ul, - get_param(params, 1)->val_ull, - get_param(params, 2)->val_ull); + gdb_get_cmd_param(params, 0)->val_ul, + gdb_get_cmd_param(params, 1)->val_ull, + gdb_get_cmd_param(params, 2)->val_ull); if (res >=3D 0) { gdb_put_packet("OK"); return; @@ -1225,10 +1189,10 @@ static void handle_set_reg(GArray *params, void *us= er_ctx) return; } =20 - reg_size =3D strlen(get_param(params, 1)->data) / 2; - gdb_hextomem(gdbserver_state.mem_buf, get_param(params, 1)->data, reg_= size); + reg_size =3D strlen(gdb_get_cmd_param(params, 1)->data) / 2; + gdb_hextomem(gdbserver_state.mem_buf, gdb_get_cmd_param(params, 1)->da= ta, reg_size); gdb_write_register(gdbserver_state.g_cpu, gdbserver_state.mem_buf->dat= a, - get_param(params, 0)->val_ull); + gdb_get_cmd_param(params, 0)->val_ull); gdb_put_packet("OK"); } =20 @@ -1243,7 +1207,7 @@ static void handle_get_reg(GArray *params, void *user= _ctx) =20 reg_size =3D gdb_read_register(gdbserver_state.g_cpu, gdbserver_state.mem_buf, - get_param(params, 0)->val_ull); + gdb_get_cmd_param(params, 0)->val_ull); if (!reg_size) { gdb_put_packet("E14"); return; @@ -1264,16 +1228,16 @@ static void handle_write_mem(GArray *params, void *= user_ctx) } =20 /* gdb_hextomem() reads 2*len bytes */ - if (get_param(params, 1)->val_ull > - strlen(get_param(params, 2)->data) / 2) { + if (gdb_get_cmd_param(params, 1)->val_ull > + strlen(gdb_get_cmd_param(params, 2)->data) / 2) { gdb_put_packet("E22"); return; } =20 - gdb_hextomem(gdbserver_state.mem_buf, get_param(params, 2)->data, - get_param(params, 1)->val_ull); + gdb_hextomem(gdbserver_state.mem_buf, gdb_get_cmd_param(params, 2)->da= ta, + gdb_get_cmd_param(params, 1)->val_ull); if (gdb_target_memory_rw_debug(gdbserver_state.g_cpu, - get_param(params, 0)->val_ull, + gdb_get_cmd_param(params, 0)->val_ull, gdbserver_state.mem_buf->data, gdbserver_state.mem_buf->len, true)) { gdb_put_packet("E14"); @@ -1291,16 +1255,16 @@ static void handle_read_mem(GArray *params, void *u= ser_ctx) } =20 /* gdb_memtohex() doubles the required space */ - if (get_param(params, 1)->val_ull > MAX_PACKET_LENGTH / 2) { + if (gdb_get_cmd_param(params, 1)->val_ull > MAX_PACKET_LENGTH / 2) { gdb_put_packet("E22"); return; } =20 g_byte_array_set_size(gdbserver_state.mem_buf, - get_param(params, 1)->val_ull); + gdb_get_cmd_param(params, 1)->val_ull); =20 if (gdb_target_memory_rw_debug(gdbserver_state.g_cpu, - get_param(params, 0)->val_ull, + gdb_get_cmd_param(params, 0)->val_ull, gdbserver_state.mem_buf->data, gdbserver_state.mem_buf->len, false)) { gdb_put_packet("E14"); @@ -1324,8 +1288,8 @@ static void handle_write_all_regs(GArray *params, voi= d *user_ctx) } =20 cpu_synchronize_state(gdbserver_state.g_cpu); - len =3D strlen(get_param(params, 0)->data) / 2; - gdb_hextomem(gdbserver_state.mem_buf, get_param(params, 0)->data, len); + len =3D strlen(gdb_get_cmd_param(params, 0)->data) / 2; + gdb_hextomem(gdbserver_state.mem_buf, gdb_get_cmd_param(params, 0)->da= ta, len); registers =3D gdbserver_state.mem_buf->data; for (reg_id =3D 0; reg_id < gdbserver_state.g_cpu->gdb_num_g_regs && len > 0; @@ -1360,7 +1324,7 @@ static void handle_read_all_regs(GArray *params, void= *user_ctx) static void handle_step(GArray *params, void *user_ctx) { if (params->len) { - gdb_set_cpu_pc(get_param(params, 0)->val_ull); + gdb_set_cpu_pc(gdb_get_cmd_param(params, 0)->val_ull); } =20 cpu_single_step(gdbserver_state.c_cpu, gdbserver_state.sstep_flags); @@ -1373,7 +1337,7 @@ static void handle_backward(GArray *params, void *use= r_ctx) gdb_put_packet("E22"); } if (params->len =3D=3D 1) { - switch (get_param(params, 0)->opcode) { + switch (gdb_get_cmd_param(params, 0)->opcode) { case 's': if (replay_reverse_step()) { gdb_continue(); @@ -1408,7 +1372,7 @@ static void handle_v_cont(GArray *params, void *user_= ctx) return; } =20 - res =3D gdb_handle_vcont(get_param(params, 0)->data); + res =3D gdb_handle_vcont(gdb_get_cmd_param(params, 0)->data); if ((res =3D=3D -EINVAL) || (res =3D=3D -ERANGE)) { gdb_put_packet("E22"); } else if (res) { @@ -1426,7 +1390,7 @@ static void handle_v_attach(GArray *params, void *use= r_ctx) goto cleanup; } =20 - process =3D gdb_get_process(get_param(params, 0)->val_ul); + process =3D gdb_get_process(gdb_get_cmd_param(params, 0)->val_ul); if (!process) { goto cleanup; } @@ -1523,7 +1487,7 @@ static void handle_v_commands(GArray *params, void *u= ser_ctx) return; } =20 - if (!process_string_cmd(get_param(params, 0)->data, + if (!process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_v_commands_table, ARRAY_SIZE(gdb_v_commands_table))) { gdb_put_packet(""); @@ -1555,7 +1519,7 @@ static void handle_set_qemu_sstep(GArray *params, voi= d *user_ctx) return; } =20 - new_sstep_flags =3D get_param(params, 0)->val_ul; + new_sstep_flags =3D gdb_get_cmd_param(params, 0)->val_ul; =20 if (new_sstep_flags & ~gdbserver_state.supported_sstep_flags) { gdb_put_packet("E22"); @@ -1615,13 +1579,13 @@ static void handle_query_thread_extra(GArray *param= s, void *user_ctx) CPUState *cpu; =20 if (!params->len || - get_param(params, 0)->thread_id.kind =3D=3D GDB_READ_THREAD_ERR) { + gdb_get_cmd_param(params, 0)->thread_id.kind =3D=3D GDB_READ_THREA= D_ERR) { gdb_put_packet("E22"); return; } =20 - cpu =3D gdb_get_cpu(get_param(params, 0)->thread_id.pid, - get_param(params, 0)->thread_id.tid); + cpu =3D gdb_get_cpu(gdb_get_cmd_param(params, 0)->thread_id.pid, + gdb_get_cmd_param(params, 0)->thread_id.tid); if (!cpu) { return; } @@ -1673,7 +1637,7 @@ static void handle_query_supported(GArray *params, vo= id *user_ctx) #endif =20 if (params->len) { - const char *gdb_supported =3D get_param(params, 0)->data; + const char *gdb_supported =3D gdb_get_cmd_param(params, 0)->data; =20 if (strstr(gdb_supported, "multiprocess+")) { gdbserver_state.multiprocess =3D true; @@ -1707,15 +1671,15 @@ static void handle_query_xfer_features(GArray *para= ms, void *user_ctx) return; } =20 - p =3D get_param(params, 0)->data; + p =3D gdb_get_cmd_param(params, 0)->data; xml =3D get_feature_xml(p, &p, process); if (!xml) { gdb_put_packet("E00"); return; } =20 - addr =3D get_param(params, 1)->val_ul; - len =3D get_param(params, 2)->val_ul; + addr =3D gdb_get_cmd_param(params, 1)->val_ul; + len =3D gdb_get_cmd_param(params, 2)->val_ul; total_len =3D strlen(xml); if (addr > total_len) { gdb_put_packet("E00"); @@ -1889,13 +1853,13 @@ static void handle_gen_query(GArray *params, void *= user_ctx) return; } =20 - if (process_string_cmd(get_param(params, 0)->data, + if (process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_gen_query_set_common_table, ARRAY_SIZE(gdb_gen_query_set_common_table))) { return; } =20 - if (!process_string_cmd(get_param(params, 0)->data, + if (!process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_gen_query_table, ARRAY_SIZE(gdb_gen_query_table))) { gdb_put_packet(""); @@ -1908,13 +1872,13 @@ static void handle_gen_set(GArray *params, void *us= er_ctx) return; } =20 - if (process_string_cmd(get_param(params, 0)->data, + if (process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_gen_query_set_common_table, ARRAY_SIZE(gdb_gen_query_set_common_table))) { return; } =20 - if (!process_string_cmd(get_param(params, 0)->data, + if (!process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_gen_set_table, ARRAY_SIZE(gdb_gen_set_table))) { gdb_put_packet(""); diff --git a/gdbstub/syscalls.c b/gdbstub/syscalls.c index 02e3a8f74c..4e1295b782 100644 --- a/gdbstub/syscalls.c +++ b/gdbstub/syscalls.c @@ -16,6 +16,7 @@ #include "sysemu/runstate.h" #include "gdbstub/user.h" #include "gdbstub/syscalls.h" +#include "gdbstub/commands.h" #include "trace.h" #include "internals.h" =20 @@ -154,9 +155,9 @@ void gdb_handle_file_io(GArray *params, void *user_ctx) uint64_t ret; int err; =20 - ret =3D get_param(params, 0)->val_ull; + ret =3D gdb_get_cmd_param(params, 0)->val_ull; if (params->len >=3D 2) { - err =3D get_param(params, 1)->val_ull; + err =3D gdb_get_cmd_param(params, 1)->val_ull; } else { err =3D 0; } @@ -196,7 +197,7 @@ void gdb_handle_file_io(GArray *params, void *user_ctx) gdbserver_syscall_state.current_syscall_cb =3D NULL; } =20 - if (params->len >=3D 3 && get_param(params, 2)->opcode =3D=3D (uint8_t= )'C') { + if (params->len >=3D 3 && gdb_get_cmd_param(params, 2)->opcode =3D=3D = (uint8_t)'C') { gdb_put_packet("T02"); return; } diff --git a/gdbstub/system.c b/gdbstub/system.c index d235403855..1ad87fe7fd 100644 --- a/gdbstub/system.c +++ b/gdbstub/system.c @@ -16,6 +16,7 @@ #include "qemu/cutils.h" #include "exec/gdbstub.h" #include "gdbstub/syscalls.h" +#include "gdbstub/commands.h" #include "exec/hwaddr.h" #include "exec/tb-flush.h" #include "sysemu/cpus.h" @@ -501,7 +502,7 @@ void gdb_handle_set_qemu_phy_mem_mode(GArray *params, v= oid *ctx) return; } =20 - if (!get_param(params, 0)->val_ul) { + if (!gdb_get_cmd_param(params, 0)->val_ul) { phy_memory_mode =3D 0; } else { phy_memory_mode =3D 1; @@ -519,7 +520,7 @@ void gdb_handle_query_rcmd(GArray *params, void *ctx) return; } =20 - len =3D strlen(get_param(params, 0)->data); + len =3D strlen(gdb_get_cmd_param(params, 0)->data); if (len % 2) { gdb_put_packet("E01"); return; @@ -527,7 +528,7 @@ void gdb_handle_query_rcmd(GArray *params, void *ctx) =20 g_assert(gdbserver_state.mem_buf->len =3D=3D 0); len =3D len / 2; - gdb_hextomem(gdbserver_state.mem_buf, get_param(params, 0)->data, len); + gdb_hextomem(gdbserver_state.mem_buf, gdb_get_cmd_param(params, 0)->da= ta, len); g_byte_array_append(gdbserver_state.mem_buf, &zero, 1); qemu_chr_be_write(gdbserver_system_state.mon_chr, gdbserver_state.mem_buf->data, diff --git a/gdbstub/user-target.c b/gdbstub/user-target.c index a9c6c64512..b5e01fd8b0 100644 --- a/gdbstub/user-target.c +++ b/gdbstub/user-target.c @@ -9,6 +9,7 @@ =20 #include "qemu/osdep.h" #include "exec/gdbstub.h" +#include "gdbstub/commands.h" #include "qemu.h" #include "internals.h" #ifdef CONFIG_LINUX @@ -250,8 +251,8 @@ void gdb_handle_query_xfer_auxv(GArray *params, void *u= ser_ctx) return; } =20 - offset =3D get_param(params, 0)->val_ul; - len =3D get_param(params, 1)->val_ul; + offset =3D gdb_get_cmd_param(params, 0)->val_ul; + len =3D gdb_get_cmd_param(params, 1)->val_ul; ts =3D get_task_state(gdbserver_state.c_cpu); saved_auxv =3D ts->info->saved_auxv; auxv_len =3D ts->info->auxv_len; @@ -288,7 +289,7 @@ void gdb_handle_query_xfer_auxv(GArray *params, void *u= ser_ctx) =20 static const char *get_filename_param(GArray *params, int i) { - const char *hex_filename =3D get_param(params, i)->data; + const char *hex_filename =3D gdb_get_cmd_param(params, i)->data; gdb_hextomem(gdbserver_state.mem_buf, hex_filename, strlen(hex_filename) / 2); g_byte_array_append(gdbserver_state.mem_buf, (const guint8 *)"", 1); @@ -306,8 +307,8 @@ static void hostio_reply_with_data(const void *buf, siz= e_t n) void gdb_handle_v_file_open(GArray *params, void *user_ctx) { const char *filename =3D get_filename_param(params, 0); - uint64_t flags =3D get_param(params, 1)->val_ull; - uint64_t mode =3D get_param(params, 2)->val_ull; + uint64_t flags =3D gdb_get_cmd_param(params, 1)->val_ull; + uint64_t mode =3D gdb_get_cmd_param(params, 2)->val_ull; =20 #ifdef CONFIG_LINUX int fd =3D do_guest_openat(cpu_env(gdbserver_state.g_cpu), 0, filename, @@ -325,7 +326,7 @@ void gdb_handle_v_file_open(GArray *params, void *user_= ctx) =20 void gdb_handle_v_file_close(GArray *params, void *user_ctx) { - int fd =3D get_param(params, 0)->val_ul; + int fd =3D gdb_get_cmd_param(params, 0)->val_ul; =20 if (close(fd) =3D=3D -1) { g_string_printf(gdbserver_state.str_buf, "F-1,%d", errno); @@ -338,9 +339,9 @@ void gdb_handle_v_file_close(GArray *params, void *user= _ctx) =20 void gdb_handle_v_file_pread(GArray *params, void *user_ctx) { - int fd =3D get_param(params, 0)->val_ul; - size_t count =3D get_param(params, 1)->val_ull; - off_t offset =3D get_param(params, 2)->val_ull; + int fd =3D gdb_get_cmd_param(params, 0)->val_ul; + size_t count =3D gdb_get_cmd_param(params, 1)->val_ull; + off_t offset =3D gdb_get_cmd_param(params, 2)->val_ull; =20 size_t bufsiz =3D MIN(count, BUFSIZ); g_autofree char *buf =3D g_try_malloc(bufsiz); @@ -383,9 +384,9 @@ void gdb_handle_v_file_readlink(GArray *params, void *u= ser_ctx) =20 void gdb_handle_query_xfer_exec_file(GArray *params, void *user_ctx) { - uint32_t pid =3D get_param(params, 0)->val_ul; - uint32_t offset =3D get_param(params, 1)->val_ul; - uint32_t length =3D get_param(params, 2)->val_ul; + uint32_t pid =3D gdb_get_cmd_param(params, 0)->val_ul; + uint32_t offset =3D gdb_get_cmd_param(params, 1)->val_ul; + uint32_t length =3D gdb_get_cmd_param(params, 2)->val_ul; =20 GDBProcess *process =3D gdb_get_process(pid); if (!process) { diff --git a/gdbstub/user.c b/gdbstub/user.c index e34b58b407..b36033bc7a 100644 --- a/gdbstub/user.c +++ b/gdbstub/user.c @@ -16,6 +16,7 @@ #include "exec/hwaddr.h" #include "exec/tb-flush.h" #include "exec/gdbstub.h" +#include "gdbstub/commands.h" #include "gdbstub/syscalls.h" #include "gdbstub/user.h" #include "gdbstub/enums.h" @@ -793,7 +794,7 @@ void gdb_syscall_return(CPUState *cs, int num) =20 void gdb_handle_set_catch_syscalls(GArray *params, void *user_ctx) { - const char *param =3D get_param(params, 0)->data; + const char *param =3D gdb_get_cmd_param(params, 0)->data; GDBSyscallsMask catch_syscalls_mask; bool catch_all_syscalls; unsigned int num; @@ -858,8 +859,8 @@ void gdb_handle_query_xfer_siginfo(GArray *params, void= *user_ctx) unsigned long offset, len; uint8_t *siginfo_offset; =20 - offset =3D get_param(params, 0)->val_ul; - len =3D get_param(params, 1)->val_ul; + offset =3D gdb_get_cmd_param(params, 0)->val_ul; + len =3D gdb_get_cmd_param(params, 1)->val_ul; =20 if (offset + len > gdbserver_user_state.siginfo_len) { /* Invalid offset and/or requested length. */ --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193966; cv=none; d=zohomail.com; s=zohoarc; b=C5VT5S1OrAIKpYsFLR+qIpzaAELJFOjDgQZyitzGDilTG+0lukjiGgCfrJPbRkrSZlaGJsicg2uAZuYVh+fTTGqApZzYIzVcOHEK7YgSydlXTESFprCMu3mH+nIse0uv49ELeu53qj2Qm4H7ebFhHuv4AtuDROyXfsfiabfdO+w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193966; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lGm+/MmwdTtSAKsTNDRWVhRbZjOTbAPKkLzVOV/KGSY=; b=ZUriMYnbezx8q3lik/3B38/d8UWWbMFNCmfUWXoRTZQBtrlnk/PenOrOlt/H0IBEdMjaRzKGKaZRpBqIUSvE4aEONzusmvpbdWhV75YgY0ia2H5hRhCycUN29r34HpkSfAtVUHCq7GjgTtGMlHLV6ffJpgztfN9gIKaal3TLBtU= 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 1720193966358796.0544182852202; Fri, 5 Jul 2024 08:39:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPkzy-0002cR-MS; Fri, 05 Jul 2024 11:37:22 -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 1sPkzs-0002aN-S4 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzp-0001GW-Sd for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a77cb7c106dso101813466b.1 for ; Fri, 05 Jul 2024 08:37:13 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf18b15sm695108466b.19.2024.07.05.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:10 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 111EB62159; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193832; x=1720798632; 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=lGm+/MmwdTtSAKsTNDRWVhRbZjOTbAPKkLzVOV/KGSY=; b=wxiuwlqCHnlo6uuUJwH+iKHQivApWutRw8572fMHIIPR0Wyqnvo6PWltXoDUZmUy85 EKC5oERrM3SwpUjc0A+rpyYb6wml+i/+f4pMl70LAbZ98WBda6m6r3wSoLdUpU83E45B YDNTqEOy/VgbT3H05NFt+gHfCJVptfEBZZRJiOOmgoy+2U5hcY4clmVbc1K+4JLUGAuW Ez4/7XubNxikalv7yMU9PDT1BsFh1rRjDqqn63sF+TVW3LDWp9xaboFtrgeiORfDPos7 vSYP0eeGT13mQ9HS+07xn0MR6FJv9KO1t1TARPb2yfUM2N3afbtvy4nN9Q9L9/01J+j8 CTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193832; x=1720798632; 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=lGm+/MmwdTtSAKsTNDRWVhRbZjOTbAPKkLzVOV/KGSY=; b=RdYtToVVCWmgFieh3W9fs7QJShFwJjfhQeJEm5wnE4xWNks9+mPPysiH83G10q85Hv LhMCeGC9jKAEMvlRGvFW19fNOqxeROQz1668AnRUNyN1VVlqU77Al/q1znr8JleiElx0 pHAsq47xFdCd4algaAZ6F5ZCtc5yFvcqM3Pc/qIeRw/qjTANzexmjo/kD0h/UJuWHcuF j8N+7vmGjgdgZacy6T8dEsejb2Noc3rdIwt8Tg23JzNDq8d/tQoE5wyHSqP6OqoT2cLu gYLM3xcjCKIlQCwrVEMSdL9IEJN3w+BZTu6rx6dbMdw+ePowUFBEhEHzCx2+ufGY1bQw TVcQ== X-Gm-Message-State: AOJu0Yy/9cXQRYr7zJDeRh3gSsjveXCF8MhkTAgBpvlvke5dj3GlAN4y 4JXYwWCD8TlSLkT73H2eyE8G1MaFIR5AsI/Tgr+qpH6nx41iWzwReqnYuiWeVNs= X-Google-Smtp-Source: AGHT+IH6K+pQ1zE7PlWuxWNm0MtWef5JmGo/9WKQPv5JIE1A69uUXfbzr6fLC7vBMmBjP3WkL+pQEg== X-Received: by 2002:a17:906:b809:b0:a77:dbf0:d25 with SMTP id a640c23a62f3a-a77dbf00e74mr66622966b.33.1720193831981; Fri, 05 Jul 2024 08:37:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 32/40] gdbstub: Add support for target-specific stubs Date: Fri, 5 Jul 2024 16:30:44 +0100 Message-Id: <20240705153052.1219696-33-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::635; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x635.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193967639100001 From: Gustavo Romero Currently, it's not possible to have stubs specific to a given target, even though there are GDB features which are target-specific, like, for instance, memory tagging. This commit introduces gdb_extend_qsupported_features, gdb_extend_query_table, and gdb_extend_set_table functions as interfaces to extend the qSupported string, the query handler table, and the set handler table, allowing target-specific stub implementations. Signed-off-by: Gustavo Romero Reviewed-by: Alex Benn=C3=A9e Message-Id: <20240628050850.536447-4-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-33-alex.bennee@linaro.org> diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h index 639257493e..306dfdef97 100644 --- a/include/gdbstub/commands.h +++ b/include/gdbstub/commands.h @@ -69,4 +69,26 @@ typedef struct GdbCmdParseEntry { */ int gdb_put_packet(const char *buf); =20 +/** + * gdb_extend_query_table() - Extend query table. + * @table: The table with the additional query packet handlers. + * @size: The number of handlers to be added. + */ +void gdb_extend_query_table(GdbCmdParseEntry *table, int size); + +/** + * gdb_extend_set_table() - Extend set table. + * @table: The table with the additional set packet handlers. + * @size: The number of handlers to be added. + */ +void gdb_extend_set_table(GdbCmdParseEntry *table, int size); + +/** + * gdb_extend_qsupported_features() - Extend the qSupported features strin= g. + * @qsupported_features: The additional qSupported feature(s) string. The = string + * should start with a semicolon and, if there are more than one feature, = the + * features should be separate by a semiocolon. + */ +void gdb_extend_qsupported_features(char *qsupported_features); + #endif /* GDBSTUB_COMMANDS_H */ diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 9ff2f4177d..b1ca253f97 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -1609,6 +1609,20 @@ static void handle_query_thread_extra(GArray *params= , void *user_ctx) gdb_put_strbuf(); } =20 +static char *extended_qsupported_features; +void gdb_extend_qsupported_features(char *qsupported_features) +{ + /* + * We don't support different sets of CPU gdb features on different CP= Us yet + * so assert the feature strings are the same on all CPUs, or is set o= nly + * once (1 CPU). + */ + g_assert(extended_qsupported_features =3D=3D NULL || + g_strcmp0(extended_qsupported_features, qsupported_features) = =3D=3D 0); + + extended_qsupported_features =3D qsupported_features; +} + static void handle_query_supported(GArray *params, void *user_ctx) { CPUClass *cc; @@ -1648,6 +1662,11 @@ static void handle_query_supported(GArray *params, v= oid *user_ctx) } =20 g_string_append(gdbserver_state.str_buf, ";vContSupported+;multiproces= s+"); + + if (extended_qsupported_features) { + g_string_append(gdbserver_state.str_buf, extended_qsupported_featu= res); + } + gdb_put_strbuf(); } =20 @@ -1729,6 +1748,41 @@ static const GdbCmdParseEntry gdb_gen_query_set_comm= on_table[] =3D { }, }; =20 +/* Compares if a set of command parsers is equal to another set of parsers= . */ +static bool cmp_cmds(GdbCmdParseEntry *c, GdbCmdParseEntry *d, int size) +{ + for (int i =3D 0; i < size; i++) { + if (!(c[i].handler =3D=3D d[i].handler && + g_strcmp0(c[i].cmd, d[i].cmd) =3D=3D 0 && + c[i].cmd_startswith =3D=3D d[i].cmd_startswith && + g_strcmp0(c[i].schema, d[i].schema) =3D=3D 0)) { + + /* Sets are different. */ + return false; + } + } + + /* Sets are equal, i.e. contain the same command parsers. */ + return true; +} + +static GdbCmdParseEntry *extended_query_table; +static int extended_query_table_size; +void gdb_extend_query_table(GdbCmdParseEntry *table, int size) +{ + /* + * We don't support different sets of CPU gdb features on different CP= Us yet + * so assert query table is the same on all CPUs, or is set only once + * (1 CPU). + */ + g_assert(extended_query_table =3D=3D NULL || + (extended_query_table_size =3D=3D size && + cmp_cmds(extended_query_table, table, size))); + + extended_query_table =3D table; + extended_query_table_size =3D size; +} + static const GdbCmdParseEntry gdb_gen_query_table[] =3D { { .handler =3D handle_query_curr_tid, @@ -1821,6 +1875,22 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = =3D { #endif }; =20 +static GdbCmdParseEntry *extended_set_table; +static int extended_set_table_size; +void gdb_extend_set_table(GdbCmdParseEntry *table, int size) +{ + /* + * We don't support different sets of CPU gdb features on different CP= Us yet + * so assert set table is the same on all CPUs, or is set only once (1= CPU). + */ + g_assert(extended_set_table =3D=3D NULL || + (extended_set_table_size =3D=3D size && + cmp_cmds(extended_set_table, table, size))); + + extended_set_table =3D table; + extended_set_table_size =3D size; +} + static const GdbCmdParseEntry gdb_gen_set_table[] =3D { /* Order is important if has same prefix */ { @@ -1859,11 +1929,21 @@ static void handle_gen_query(GArray *params, void *= user_ctx) return; } =20 - if (!process_string_cmd(gdb_get_cmd_param(params, 0)->data, - gdb_gen_query_table, - ARRAY_SIZE(gdb_gen_query_table))) { - gdb_put_packet(""); + if (process_string_cmd(gdb_get_cmd_param(params, 0)->data, + gdb_gen_query_table, + ARRAY_SIZE(gdb_gen_query_table))) { + return; + } + + if (extended_query_table && + process_string_cmd(gdb_get_cmd_param(params, 0)->data, + extended_query_table, + extended_query_table_size)) { + return; } + + /* Can't handle query, return Empty response. */ + gdb_put_packet(""); } =20 static void handle_gen_set(GArray *params, void *user_ctx) @@ -1878,11 +1958,21 @@ static void handle_gen_set(GArray *params, void *us= er_ctx) return; } =20 - if (!process_string_cmd(gdb_get_cmd_param(params, 0)->data, + if (process_string_cmd(gdb_get_cmd_param(params, 0)->data, gdb_gen_set_table, ARRAY_SIZE(gdb_gen_set_table))) { - gdb_put_packet(""); + return; } + + if (extended_set_table && + process_string_cmd(gdb_get_cmd_param(params, 0)->data, + extended_set_table, + extended_set_table_size)) { + return; + } + + /* Can't handle set, return Empty response. */ + gdb_put_packet(""); } =20 static void handle_target_halt(GArray *params, void *user_ctx) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193988; cv=none; d=zohomail.com; s=zohoarc; b=btezUZL2YfkkZZ1vmpEI35825F0bav590DEITmHhqTSU1Mum07Zae9uBa968BRMTS+LyyxEcI0cVfxE/llPg/4ChzchvdaVo4hpr5n47f1xx9C7sLaUGwUw/er1aNpeU0FS6HxyaPci/j9MCUW1zzT6cgv/bfvUG+m9+BywSUaI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193988; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=iNTI1OxNzY3tCEGj206q5bDerGVhXw3fIYt94bTCFu0=; b=fif83cxiSuOI3OBHLWcIgd6xW2ipwpBAf+INWTpO3cpd4F9lm44a7CI/q2kgwnKK3CyU/XSw0EJfF1U8jwI5np8Kv9SEQ9fM0IqZLQ0MZpl+jsp6w1BzLy/nzinpKzHgmWcuB5GyusMUXR2EL6why6Boil6p+xMYLA/gx1wQnu0= 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 1720193988559233.1599427309569; Fri, 5 Jul 2024 08:39:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0E-0002zh-7G; Fri, 05 Jul 2024 11:37:38 -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 1sPkzs-0002Zp-EX for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzq-0001GR-6k for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:16 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a7527afa23cso215488066b.2 for ; Fri, 05 Jul 2024 08:37:13 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77d8ce6a78sm40399366b.179.2024.07.05.08.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:10 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2A58A6216F; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193832; x=1720798632; 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=iNTI1OxNzY3tCEGj206q5bDerGVhXw3fIYt94bTCFu0=; b=cKvgivHvE6Uom+pPq7kMH9IWKYZrJ3xGeg6MR06AoUJUHVhG0iXJ/X8+XakUdXVKYK /2ztW+bWulUMFwMmpnEEZ467WKQOwCtgA798yLh+QT1hlxeBnLJRCHVMBn7s1cYigt2y OcdQxW58/QOcSl9zagtQ3VVZYned0Y/JndpvspTba1jdF6znQueiX6wBmUq+lKEyvayb kB60M0ugNMvi0JfrIuPFMdyMdPv75loShLUYxUDyRzKbuONfhf1rbOiBrMjVqFOvtPhv RDHuiRnlh232LZt0J34itDOOsD6EqpGiyC+U92Ub8Lcg8V4fB8cNS4yyyISjdWP/s1DN 3WsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193832; x=1720798632; 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=iNTI1OxNzY3tCEGj206q5bDerGVhXw3fIYt94bTCFu0=; b=RmyLaYkOOS8Yx7i2rDNh4+d399VN34MHdaui5jwf/ks5Yu4C/YrOPSpUomB1zqxFqI jGDn0J7WUlIxjDSQexyNHSctqWCBU86dEwwu8jDsFIsMs1wWyh27qS2xT/nXO6kb/ie+ gL9KRxTwizSMfoRsNLmuXOtzJdl/Ib9ZMy76LMWLhbDWGL/rKFkpKCzdPyPfXhO1o6S9 EJ9NvS96JcR2pui1QRXXWqlqVPd8n0BIupUdppCVAk6ptUsydiDfCltuHPc/4QBO/mMW qNqCD72Rq/krbvHxtBZM+gqTtLX4VMLmqzJoXEar6G3N8S9wKuu8sRvyKSx1DTONYiS3 7O3Q== X-Gm-Message-State: AOJu0Yxh3HS7AHl0PxnnsNggtg8d4RjOzVgB1cNIL7ok9tvVhM69Mb4P Q7Ij/Ncd1YFlboJx9/1oVsaxkdrzAqqwpqZjj6hnr7+JgS3yS3lIA9aGYpY2H98= X-Google-Smtp-Source: AGHT+IHmqaXjaetnXVSMDU9zcUAb5yfJuBDEBm+erJ5zJZ7DaxwGQjwvKqRrFH2skkYOJfRaHhMLNQ== X-Received: by 2002:a17:906:3b8e:b0:a72:4676:4f8 with SMTP id a640c23a62f3a-a77ba70d755mr282546366b.62.1720193831692; Fri, 05 Jul 2024 08:37:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 33/40] target/arm: Fix exception case in allocation_tag_mem_probe Date: Fri, 5 Jul 2024 16:30:45 +0100 Message-Id: <20240705153052.1219696-34-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62a; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193989741100001 From: Gustavo Romero If page in 'ptr_access' is inaccessible and probe is 'true' allocation_tag_mem_probe should not throw an exception, but currently it does, so fix it. Signed-off-by: Gustavo Romero Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Message-Id: <20240628050850.536447-5-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-34-alex.bennee@linaro.org> diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 037ac6dd60..a50d576294 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -96,6 +96,9 @@ static uint8_t *allocation_tag_mem_probe(CPUARMState *env= , int ptr_mmu_idx, assert(!(probe && ra)); =20 if (!(flags & (ptr_access =3D=3D MMU_DATA_STORE ? PAGE_WRITE_ORG : PAG= E_READ))) { + if (probe) { + return NULL; + } cpu_loop_exit_sigsegv(env_cpu(env), ptr, ptr_access, !(flags & PAGE_VALID), ra); } --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193905; cv=none; d=zohomail.com; s=zohoarc; b=UXtBm0RTWFGrr52YKhUofluuCeCfXCT6sQ0WhCPCtU06IaEYBIn8XAk2qaUYm1Ps7KNEp673gGvs/8iJ02vWTtKpbLDJl5jDQ/56SHZ90LkpvhsvozFg5qPAKSvVts6yNaDuM94T6F1GJF0U4231ZHLwdEGSmRU5itzO23/d5Wk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193905; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=76ccM/rpS4+7b3Bhm1qL0Ddb7vrGKR7l9TAhXh8rp+A=; b=OXBNodB8LDsFXt/8TNgWH8D3/uAJdEo1FJ90ig5BC6ynavAi/dAU+/DmnoENPuUwmQ/TqddbN9Nbz75zTxBzpZgwmbTHQmNFdtm2Zf1PS2Xo+vhv2kVD58RO/m/ZbaiiXI620wQVrzsbdbtqnh4vPEcIHL2j+5ou29O3Fl4xSeE= 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 1720193905556109.09847272263175; Fri, 5 Jul 2024 08:38:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl04-0002dj-Fe; Fri, 05 Jul 2024 11:37:28 -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 1sPl00-0002cs-KK for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:24 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzx-0001Ii-E9 for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:24 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a77c9c5d68bso102304166b.2 for ; Fri, 05 Jul 2024 08:37:21 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08d138sm690977466b.158.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4086362170; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193840; x=1720798640; 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=76ccM/rpS4+7b3Bhm1qL0Ddb7vrGKR7l9TAhXh8rp+A=; b=kjFNQzVEI8ykmlzOEf+A0Oy/chPrmFq+JvD6+Gc+OB0f1s8S51li9eEqodfNYyNogA tFC8Dx/EksX+JpErkm7Jbt5jZ/0fp3wGWJuQjNic72tgcycl8ynqQEr6M9xgfIR4c/xJ smF0iy2zxGikR2tvPgl5PbCsRR9SPODP4Ii2idGvXzg+5JokagHxqkI7eAuikiXn//pc 0Qecbpnqq5xEA9X7Kcvr75/X1CTt56+qRcsywvCdj282mHF+i5bTpdFE3ET8uSR1nI0c omNQRCldwdFvCpQF5Qr2I4UmqAVR+lV/CIYhrkNY1H4E/9f/S8fQbMkXNjpwC+vELQ/M HKzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193840; x=1720798640; 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=76ccM/rpS4+7b3Bhm1qL0Ddb7vrGKR7l9TAhXh8rp+A=; b=lzKWrnJI3vSJFr7R6kyfTKwsRQk0teT6AhjCHz3ZlYOPGIga50YJCdvbxnDBRSd+DF tJE7Rs1+6yZ/ChBtQrIb4elNC5r62eDbV1397LZT/ezLCEiXtU1v14BDxp8b26ZJyncn hKeJ0pBW54gbQRXHfzOjE+BKuj7gT2A6Im4IPJ/djQ6zDwstP+B0mxt52XIgG+aa28Wz X6OpKuYphSMF58FuBnWVtQFg38QxH/t524C8czNCEr8ntcdcYD7bpOoQtGUXoxkb7uLJ QnPplKzI6Tjdq8DvSL4WNZpbwrrCm23Yqq94R1gY2ZRYE1jk78lz4PwSSMY4jk+Hz4uh oLqQ== X-Gm-Message-State: AOJu0YxSqNxEL+/NEpPkPEP8xe3g3JrovTMnW1ze98iAgEEpDmYHaCh/ ieCMwZ9iAFXns/ChTZNi4P35wMe02QFVBTXvTkyy2e2E+53v1w2MqFNHZuCWi1I= X-Google-Smtp-Source: AGHT+IGhxE7tInDQ8kKj6jlkWBZRsDeJKtXZ+VjXhnql4D58J6iWxmk8b5TI+qCHMbN9/W6QZN65ZQ== X-Received: by 2002:a17:906:2c1a:b0:a77:d773:54ec with SMTP id a640c23a62f3a-a77d773565fmr118370966b.8.1720193839763; Fri, 05 Jul 2024 08:37:19 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 34/40] target/arm: Make some MTE helpers widely available Date: Fri, 5 Jul 2024 16:30:46 +0100 Message-Id: <20240705153052.1219696-35-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193907350100001 From: Gustavo Romero Make the MTE helpers allocation_tag_mem_probe, load_tag1, and store_tag1 available to other subsystems. Signed-off-by: Gustavo Romero Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20240628050850.536447-6-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-35-alex.bennee@linaro.org> diff --git a/target/arm/tcg/mte_helper.h b/target/arm/tcg/mte_helper.h new file mode 100644 index 0000000000..1f471fb69b --- /dev/null +++ b/target/arm/tcg/mte_helper.h @@ -0,0 +1,66 @@ +/* + * ARM MemTag operation helpers. + * + * This code is licensed under the GNU GPL v2 or later. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#ifndef TARGET_ARM_MTE_H +#define TARGET_ARM_MTE_H + +#include "exec/mmu-access-type.h" + +/** + * allocation_tag_mem_probe: + * @env: the cpu environment + * @ptr_mmu_idx: the addressing regime to use for the virtual address + * @ptr: the virtual address for which to look up tag memory + * @ptr_access: the access to use for the virtual address + * @ptr_size: the number of bytes in the normal memory access + * @tag_access: the access to use for the tag memory + * @probe: true to merely probe, never taking an exception + * @ra: the return address for exception handling + * + * Our tag memory is formatted as a sequence of little-endian nibbles. + * That is, the byte at (addr >> (LOG2_TAG_GRANULE + 1)) contains two + * tags, with the tag at [3:0] for the lower addr and the tag at [7:4] + * for the higher addr. + * + * Here, resolve the physical address from the virtual address, and return + * a pointer to the corresponding tag byte. + * + * If there is no tag storage corresponding to @ptr, return NULL. + * + * If the page is inaccessible for @ptr_access, or has a watchpoint, there= are + * three options: + * (1) probe =3D true, ra =3D 0 : pure probe -- we return NULL if the page= is not + * accessible, and do not take watchpoint traps. The calling code must + * handle those cases in the right priority compared to MTE traps. + * (2) probe =3D false, ra =3D 0 : probe, no fault expected -- the caller = guarantees + * that the page is going to be accessible. We will take watchpoint tr= aps. + * (3) probe =3D false, ra !=3D 0 : non-probe -- we will take both memory = access + * traps and watchpoint traps. + * (probe =3D true, ra !=3D 0 is invalid and will assert.) + */ +uint8_t *allocation_tag_mem_probe(CPUARMState *env, int ptr_mmu_idx, + uint64_t ptr, MMUAccessType ptr_access, + int ptr_size, MMUAccessType tag_access, + bool probe, uintptr_t ra); + +/** + * load_tag1 - Load 1 tag (nibble) from byte + * @ptr: The tagged address + * @mem: The tag address (packed, 2 tags in byte) + */ +int load_tag1(uint64_t ptr, uint8_t *mem); + +/** + * store_tag1 - Store 1 tag (nibble) into byte + * @ptr: The tagged address + * @mem: The tag address (packed, 2 tags in byte) + * @tag: The tag to be stored in the nibble + */ +void store_tag1(uint64_t ptr, uint8_t *mem, int tag); + +#endif /* TARGET_ARM_MTE_H */ diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index a50d576294..9d2ba287ee 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -29,6 +29,7 @@ #include "hw/core/tcg-cpu-ops.h" #include "qapi/error.h" #include "qemu/guest-random.h" +#include "mte_helper.h" =20 =20 static int choose_nonexcluded_tag(int tag, int offset, uint16_t exclude) @@ -50,42 +51,10 @@ static int choose_nonexcluded_tag(int tag, int offset, = uint16_t exclude) return tag; } =20 -/** - * allocation_tag_mem_probe: - * @env: the cpu environment - * @ptr_mmu_idx: the addressing regime to use for the virtual address - * @ptr: the virtual address for which to look up tag memory - * @ptr_access: the access to use for the virtual address - * @ptr_size: the number of bytes in the normal memory access - * @tag_access: the access to use for the tag memory - * @probe: true to merely probe, never taking an exception - * @ra: the return address for exception handling - * - * Our tag memory is formatted as a sequence of little-endian nibbles. - * That is, the byte at (addr >> (LOG2_TAG_GRANULE + 1)) contains two - * tags, with the tag at [3:0] for the lower addr and the tag at [7:4] - * for the higher addr. - * - * Here, resolve the physical address from the virtual address, and return - * a pointer to the corresponding tag byte. - * - * If there is no tag storage corresponding to @ptr, return NULL. - * - * If the page is inaccessible for @ptr_access, or has a watchpoint, there= are - * three options: - * (1) probe =3D true, ra =3D 0 : pure probe -- we return NULL if the page= is not - * accessible, and do not take watchpoint traps. The calling code must - * handle those cases in the right priority compared to MTE traps. - * (2) probe =3D false, ra =3D 0 : probe, no fault expected -- the caller = guarantees - * that the page is going to be accessible. We will take watchpoint tr= aps. - * (3) probe =3D false, ra !=3D 0 : non-probe -- we will take both memory = access - * traps and watchpoint traps. - * (probe =3D true, ra !=3D 0 is invalid and will assert.) - */ -static uint8_t *allocation_tag_mem_probe(CPUARMState *env, int ptr_mmu_idx, - uint64_t ptr, MMUAccessType ptr_a= ccess, - int ptr_size, MMUAccessType tag_a= ccess, - bool probe, uintptr_t ra) +uint8_t *allocation_tag_mem_probe(CPUARMState *env, int ptr_mmu_idx, + uint64_t ptr, MMUAccessType ptr_access, + int ptr_size, MMUAccessType tag_access, + bool probe, uintptr_t ra) { #ifdef CONFIG_USER_ONLY uint64_t clean_ptr =3D useronly_clean_ptr(ptr); @@ -287,7 +256,7 @@ uint64_t HELPER(addsubg)(CPUARMState *env, uint64_t ptr, return address_with_allocation_tag(ptr + offset, rtag); } =20 -static int load_tag1(uint64_t ptr, uint8_t *mem) +int load_tag1(uint64_t ptr, uint8_t *mem) { int ofs =3D extract32(ptr, LOG2_TAG_GRANULE, 1) * 4; return extract32(*mem, ofs, 4); @@ -321,7 +290,7 @@ static void check_tag_aligned(CPUARMState *env, uint64_= t ptr, uintptr_t ra) } =20 /* For use in a non-parallel context, store to the given nibble. */ -static void store_tag1(uint64_t ptr, uint8_t *mem, int tag) +void store_tag1(uint64_t ptr, uint8_t *mem, int tag) { int ofs =3D extract32(ptr, LOG2_TAG_GRANULE, 1) * 4; *mem =3D deposit32(*mem, ofs, 4, tag); --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193624; cv=none; d=zohomail.com; s=zohoarc; b=U0iYGSelR+io+BSubuOHr7wgkbZnCKwEBmdRpcuBKhjF5xVJPvA3jTyj9npNlCZzSMnCWOMS1EKt0xxwnrC35BdzJcDSStW5HTh1Iant69ewqHXZBapo0S7Hh3RaBVNbXqtd/01IpJJ94RNEdD2AVLIfOdeW+qCUwgHSGZL51I0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193624; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6cFGUCF6aXfdVBiObpZIc6vFZvFIj8S4CeyY/mINKQs=; b=JSyLmyX5R0fp9buIPkfa0livnsK8S5CIUdG86hTwRiXuOsfbnYApxdnMJzdTNeZ6dBBYE/grtd7KadoEycIAe57lOsoQuf1cq05JYwxT1XI2OXQLEwhTZuCOZVG8XhTY46yW3lnPTORNRfLrCyT3/qSPQctvJS8de4nZ6D+hzX0= 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 1720193624317569.1684761438769; Fri, 5 Jul 2024 08:33:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku8-0005o1-7P; Fri, 05 Jul 2024 11:31:20 -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 1sPku6-0005m6-6V for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:18 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPktz-0000Sh-6e for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:17 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-58b447c513aso2092292a12.2 for ; Fri, 05 Jul 2024 08:31:10 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5907e4d79ddsm207464a12.59.2024.07.05.08.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:06 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5B65C62174; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193470; x=1720798270; 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=6cFGUCF6aXfdVBiObpZIc6vFZvFIj8S4CeyY/mINKQs=; b=O0OcE8yq6tiE1hX795UrGKjsRy3xhJgfDvoLgmCSuOjVUsXwWMIhH+yK5N/QMVZPuj 5iDO+WkCybMr01nkJMJpJn6htq3ulIpsTXmAqEXK4nkRObqOJ2+XxhSZ0BFZE1gFQEpx 75HRdHGGLWWDDhobgRPJYbteyV4H7v1dE8PTsamynhwry4InFQS6WSi9zM7c9NKweGfE fBvM2CbFSRS9ZsVa/+SQ9b50M/AYKOlcJ3YfGh/qIL0wuQr0I7FQsOBKmI7h/ZwrErs8 4iT7HWT2i44QiWyUCXqLM6Izzb5hqYzXtldLLgwxp0xTk6FMYCTAR6feBBfYNJRzbZ8/ emgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193470; x=1720798270; 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=6cFGUCF6aXfdVBiObpZIc6vFZvFIj8S4CeyY/mINKQs=; b=j2NuYsWsOG7CdpHLQDg6rv/29Msd+kKVw4g3EQh0cfFMIP3va10x8dPvPp+QG4ZNoQ sh+cnq/3CMah3KPSHodJmTqZmXAb9+V7CqH6WoFyBtOw+hGmcXsU/oURFTJMhgvyBqeq E3HegEb6xyNODJqCjwY9JM6Oe69jQHDGGivHbyR6dGxBDtxwcHkeVwl9nsqxeMwZPIGi b7MVtSI0qna9moigCvBjTL/pQUXXATEUJ3mbUx1dSH9uoA3NuCDiM3USrD3P5oJkHwNu O44EB8+3ZZ3cXUgellm/QJIy1zPfikjViMbo3g1kTw1Jcidx7U7/KMO7x8+MBi52pAjf 2dCA== X-Gm-Message-State: AOJu0Yyw6jQyIGax3uqxbH9VCXJ9IT3aqOtxY7h1TKya0luuUwG5ZBSR Qfbdj68N04vaiyN1U0TeMxYVzzx/JMZVqRXDBY/H9exooXNUyiwAiXUoTJcAS9M= X-Google-Smtp-Source: AGHT+IG2K7cA/ePZmnblXWY7PjDLAcdXRkoPuTCpt227Vdx7wfAi8XfRD8e+k7sEI4mPQ4ekceUU2A== X-Received: by 2002:a05:6402:11c8:b0:58b:565d:ac92 with SMTP id 4fb4d7f45d1cf-58e5b4a7759mr3682778a12.22.1720193468808; Fri, 05 Jul 2024 08:31:08 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Laurent Vivier Subject: [PULL 35/40] target/arm: Factor out code for setting MTE TCF0 field Date: Fri, 5 Jul 2024 16:30:47 +0100 Message-Id: <20240705153052.1219696-36-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::532; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x532.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193625838100003 From: Gustavo Romero Factor out the code used for setting the MTE TCF0 field from the prctl code into a convenient function. Other subsystems, like gdbstub, need to set this field as well, so keep it as a separate function to avoid duplication and ensure consistency in how this field is set across the board. Signed-off-by: Gustavo Romero Message-Id: <20240628050850.536447-7-gustavo.romero@linaro.org> [AJB: clean-up includes, move MTE defines] Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-36-alex.bennee@linaro.org> diff --git a/linux-user/aarch64/mte_user_helper.h b/linux-user/aarch64/mte_= user_helper.h new file mode 100644 index 0000000000..8685e5175a --- /dev/null +++ b/linux-user/aarch64/mte_user_helper.h @@ -0,0 +1,32 @@ +/* + * ARM MemTag convenience functions. + * + * This code is licensed under the GNU GPL v2 or later. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#ifndef AARCH64_MTE_USER_HELPER_H +#define AARCH64_MTE USER_HELPER_H + +#ifndef PR_MTE_TCF_SHIFT +# define PR_MTE_TCF_SHIFT 1 +# define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT) +# define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT) +# define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT) +# define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT) +# define PR_MTE_TAG_SHIFT 3 +# define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT) +#endif + +/** + * arm_set_mte_tcf0 - Set TCF0 field in SCTLR_EL1 register + * @env: The CPU environment + * @value: The value to be set for the Tag Check Fault in EL0 field. + * + * Only SYNC and ASYNC modes can be selected. If ASYMM mode is given, the = SYNC + * mode is selected instead. So, there is no way to set the ASYMM mode. + */ +void arm_set_mte_tcf0(CPUArchState *env, abi_long value); + +#endif /* AARCH64_MTE_USER_HELPER_H */ diff --git a/linux-user/aarch64/target_prctl.h b/linux-user/aarch64/target_= prctl.h index aa8e203c15..ed75b9e4b5 100644 --- a/linux-user/aarch64/target_prctl.h +++ b/linux-user/aarch64/target_prctl.h @@ -7,6 +7,7 @@ #define AARCH64_TARGET_PRCTL_H =20 #include "target/arm/cpu-features.h" +#include "mte_user_helper.h" =20 static abi_long do_prctl_sve_get_vl(CPUArchState *env) { @@ -173,26 +174,7 @@ static abi_long do_prctl_set_tagged_addr_ctrl(CPUArchS= tate *env, abi_long arg2) env->tagged_addr_enable =3D arg2 & PR_TAGGED_ADDR_ENABLE; =20 if (cpu_isar_feature(aa64_mte, cpu)) { - /* - * Write PR_MTE_TCF to SCTLR_EL1[TCF0]. - * - * The kernel has a per-cpu configuration for the sysadmin, - * /sys/devices/system/cpu/cpu/mte_tcf_preferred, - * which qemu does not implement. - * - * Because there is no performance difference between the modes, a= nd - * because SYNC is most useful for debugging MTE errors, choose SY= NC - * as the preferred mode. With this preference, and the way the A= PI - * uses only two bits, there is no way for the program to select - * ASYMM mode. - */ - unsigned tcf =3D 0; - if (arg2 & PR_MTE_TCF_SYNC) { - tcf =3D 1; - } else if (arg2 & PR_MTE_TCF_ASYNC) { - tcf =3D 2; - } - env->cp15.sctlr_el[1] =3D deposit64(env->cp15.sctlr_el[1], 38, 2, = tcf); + arm_set_mte_tcf0(env, arg2); =20 /* * Write PR_MTE_TAG to GCR_EL1[Exclude]. diff --git a/linux-user/aarch64/mte_user_helper.c b/linux-user/aarch64/mte_= user_helper.c new file mode 100644 index 0000000000..a5b1c8503b --- /dev/null +++ b/linux-user/aarch64/mte_user_helper.c @@ -0,0 +1,35 @@ +/* + * ARM MemTag convenience functions. + * + * This code is licensed under the GNU GPL v2 or later. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include "qemu/osdep.h" +#include "qemu.h" +#include "mte_user_helper.h" + +void arm_set_mte_tcf0(CPUArchState *env, abi_long value) +{ + /* + * Write PR_MTE_TCF to SCTLR_EL1[TCF0]. + * + * The kernel has a per-cpu configuration for the sysadmin, + * /sys/devices/system/cpu/cpu/mte_tcf_preferred, + * which qemu does not implement. + * + * Because there is no performance difference between the modes, and + * because SYNC is most useful for debugging MTE errors, choose SYNC + * as the preferred mode. With this preference, and the way the API + * uses only two bits, there is no way for the program to select + * ASYMM mode. + */ + unsigned tcf =3D 0; + if (value & PR_MTE_TCF_SYNC) { + tcf =3D 1; + } else if (value & PR_MTE_TCF_ASYNC) { + tcf =3D 2; + } + env->cp15.sctlr_el[1] =3D deposit64(env->cp15.sctlr_el[1], 38, 2, tcf); +} diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2804312fc..b8c278b91d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6281,15 +6281,6 @@ abi_long do_arch_prctl(CPUX86State *env, int code, a= bi_ulong addr) # define PR_GET_TAGGED_ADDR_CTRL 56 # define PR_TAGGED_ADDR_ENABLE (1UL << 0) #endif -#ifndef PR_MTE_TCF_SHIFT -# define PR_MTE_TCF_SHIFT 1 -# define PR_MTE_TCF_NONE (0UL << PR_MTE_TCF_SHIFT) -# define PR_MTE_TCF_SYNC (1UL << PR_MTE_TCF_SHIFT) -# define PR_MTE_TCF_ASYNC (2UL << PR_MTE_TCF_SHIFT) -# define PR_MTE_TCF_MASK (3UL << PR_MTE_TCF_SHIFT) -# define PR_MTE_TAG_SHIFT 3 -# define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT) -#endif #ifndef PR_SET_IO_FLUSHER # define PR_SET_IO_FLUSHER 57 # define PR_GET_IO_FLUSHER 58 diff --git a/linux-user/aarch64/meson.build b/linux-user/aarch64/meson.build index 248c578d15..f75bb3cd75 100644 --- a/linux-user/aarch64/meson.build +++ b/linux-user/aarch64/meson.build @@ -9,3 +9,5 @@ vdso_le_inc =3D gen_vdso.process('vdso-le.so', extra_args: ['-r', '__kernel_rt_sigreturn']) =20 linux_user_ss.add(when: 'TARGET_AARCH64', if_true: [vdso_be_inc, vdso_le_i= nc]) + +linux_user_ss.add(when: 'TARGET_AARCH64', if_true: [files('mte_user_helper= .c')]) --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193930; cv=none; d=zohomail.com; s=zohoarc; b=a1QyQCj45nkg/u3IgdKtTTVwO2uirRRKFxiD8D+2hWQOSHBXOjFhSlGDjF+asgHZxm/PJ5VK7f3RoT9XmldvcC2DXQaVXniqnA9x3dOydxDC5KumYveJkVV/ey/UbxEAW6avP9+r+yOM8/MndGznoFVhzvdxXdq8G5D+0zovxQQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193930; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tcblXcJm1xF5LxPcrc6RNUAzD4wW3iGRX/uV+phD6V0=; b=UPDelgsjOXu3wdi3sJLgC+PG8WJThcYCR56P0nUciK87ewuGY0MNhI/ldbISS2IZbpi3uk/3Yzmec5WaIE3ANX0ev7nnO1bPQeUk9KM/Z87eaTpALjkLmDOc5OXjkG0a09X2wNQf+5OSxejz+mf9/gY+Uhw+4hjuOvWtni0jcyI= 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 1720193930232457.8107899161075; Fri, 5 Jul 2024 08:38:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl09-0002h6-DD; Fri, 05 Jul 2024 11:37: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 1sPkzy-0002cO-Js for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:22 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzw-0001IW-Va for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:22 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a77cc73d35fso130563566b.0 for ; Fri, 05 Jul 2024 08:37:20 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77c3ef218bsm103433166b.71.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 7384B62176; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193839; x=1720798639; 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=tcblXcJm1xF5LxPcrc6RNUAzD4wW3iGRX/uV+phD6V0=; b=LYl7hFAque1r8d9B93ePkItkHP0yvn4oi7GgmfPKnr90xEfGPF0n7jrFZeAVNQU3oT OGnESmOsYBnsqRPOd7wH3xLA4JGftWt5GIewBWPlfm7zid6BXPdgnahoOCTtTsk6CJ63 VN4OV7lSKJxWcqBBOVxSSMi6Bs78V3G/fBDbbGLlm6Ilgmu0qjYv+p8Ias6SXro/uFsD e7mWP4TzXMPp4dkVAGfKTI7tWPHTAZ6nNSASyCN7ci44qrweV2pAC8cMcyhghrO+DkAx lEAKtYmWJw7WUKinT4bUE+IEQRQ0hPUP4Mu4xnw1c4V4K8tiO9Xq+kIryaBssYwvaSJa oThw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193839; x=1720798639; 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=tcblXcJm1xF5LxPcrc6RNUAzD4wW3iGRX/uV+phD6V0=; b=aFV3UtBRYNYPzbuEO+9DhMMFT5ioG26aFlewKCpfVCNJK9PwlVB9Ra7visDjeE9PmP o/HuMUK5FSCSuCl8zWg/61O3QhBOZHkBuCyqT1M7/sid93vXH09ZKuh+V0DPFWlm28Ao enqBNNUXpoqt1WJ3AuQYuZ5HHg8SAFiDKuGf2bjlZzYCR5qfAD9XBW4QxSFMt2j8117e 6xoR4nQNsAiUQW46TRP00fM55YrKMrPe9L+Hdq2dwbI3Gmp3DxYP6dswzzf/PrB4/D6u N3VfcKFH/HLK6YMVsvEAEMQRFR7gKnG/tP12qpydnnhTHcx7xK8GInSSO+Q5KyP5oH5D jiFw== X-Gm-Message-State: AOJu0YwbJy4JimxQNNBxAqJXP10UN26SPRLgfqPiyfjwM3AVEkOpWSJc lJ+Mnt0NoqoKdcy7apXx/q2DP2E7gtumwGAzZcNbTf28FDFwfkIZXJRjPQQT9SA= X-Google-Smtp-Source: AGHT+IHP5vAOBmjMJaXra2aiwjJhGqJHotB4VfhfRqcWkzIhyw0Vuk1bxsrne9XAORZTgUdlXO0zoA== X-Received: by 2002:a17:906:d1d2:b0:a77:cfe9:8ed5 with SMTP id a640c23a62f3a-a77cfe98f21mr157190366b.30.1720193839427; Fri, 05 Jul 2024 08:37:19 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 36/40] gdbstub: Make hex conversion function non-internal Date: Fri, 5 Jul 2024 16:30:48 +0100 Message-Id: <20240705153052.1219696-37-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62d; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62d.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193931507100001 From: Gustavo Romero Make gdb_hextomem non-internal so it's not confined to use only in gdbstub.c. Signed-off-by: Gustavo Romero Reviewed-by: Richard Henderson Message-Id: <20240628050850.536447-8-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-37-alex.bennee@linaro.org> diff --git a/gdbstub/internals.h b/gdbstub/internals.h index 34121dc61a..bf5a5c6302 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -107,7 +107,6 @@ static inline int tohex(int v) =20 void gdb_put_strbuf(void); int gdb_put_packet_binary(const char *buf, int len, bool dump); -void gdb_hextomem(GByteArray *mem, const char *buf, int len); void gdb_memtohex(GString *buf, const uint8_t *mem, int len); void gdb_memtox(GString *buf, const char *mem, int len); void gdb_read_byte(uint8_t ch); diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h index 306dfdef97..e51f276b40 100644 --- a/include/gdbstub/commands.h +++ b/include/gdbstub/commands.h @@ -91,4 +91,10 @@ void gdb_extend_set_table(GdbCmdParseEntry *table, int s= ize); */ void gdb_extend_qsupported_features(char *qsupported_features); =20 +/** + * Convert a hex string to bytes. Conversion is done per byte, so 2 hex di= gits + * are converted to 1 byte. Invalid hex digits are treated as 0 digits. + */ +void gdb_hextomem(GByteArray *mem, const char *buf, int len); + #endif /* GDBSTUB_COMMANDS_H */ --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193709; cv=none; d=zohomail.com; s=zohoarc; b=b4Ucfhwlc1wpjN7Up8fBxjvwkCZm1wuUbT+8b8Ogog0Kemwi3bYZmmhqr5JrvbQqlZAxoI7TdFPZjQHu7NjTn5C3tl0b3IHrnqxKN2AzPVpEd2WPuH+xP5BGxD7iGv3bftRr0m2I8TZWtoUqILjUg6hpL8tS8Q6gDMOoA0Xuo4I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193709; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QehyRM+GTwCmdsI3rONPQxQARmvRAp8NK6kIeDY+sDQ=; b=jGewrHjFuKUSTZmQZalaTScD5Xr1S9nqPVfYFYYNtfJKiqbPCxGorsl1YHyxr10AuDYTfCYWbGqH+nKscu7mVpDNNsQNmgnA0N8do6QMr4Vf8Yqy+m0pGSzYxdIu6nK1K5B6tQKX6fDkUVeqSCWWUZcUPgZVeiixqec4p9LSLio= 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 1720193709260618.3916192993034; Fri, 5 Jul 2024 08:35:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku5-0005lT-MW; Fri, 05 Jul 2024 11:31:17 -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 1sPku4-0005kK-7l for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:16 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkty-0000Rs-9X for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:15 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a77b550128dso227621066b.0 for ; Fri, 05 Jul 2024 08:31:08 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77da27c044sm33109966b.157.2024.07.05.08.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8C6CB62177; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193467; x=1720798267; 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=QehyRM+GTwCmdsI3rONPQxQARmvRAp8NK6kIeDY+sDQ=; b=Ool1+wKjSguZSqZldgEQlGRknT9iUHGJIr9DzxKRCyOvQu2YyaU9P6civf5AAgRhbO 9O3X7zMVp3/vxrAaFPr32hGOdtcoHmUBcjV9986AeEmZvLXXQH6h+suRoH+iQb8Sl4/Y vb5glPgzN1dUL5X/ZBerrEx44FLaWwLfskiescsa2i3i8m1s5Xk4ZUImTrbjhlpEZhaA nifeFyG7U0vEPX0IWxwEfTIgWPogYJSwmGXgrSxW66ADhwHdwte4nrfd5KQY+z+r53zK PXmcXX5hUOWV/xReLhCm3LYckpjvmIVMDlVgBoCApZnAQa6AR7UHmXMWU/I/FG8XDFE0 HJTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193467; x=1720798267; 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=QehyRM+GTwCmdsI3rONPQxQARmvRAp8NK6kIeDY+sDQ=; b=Xs/IC3wp9NzzlmnG+dnGe0N8dsP0vFCVIlv+9MbITDNdvG3rwZcF8unnQ5DJarYDUM Shh0jUfk31FUMRz3XRIXVnoxZ+v5Xam0hm8jo/Z6Z6Yh2a+QTI5QbXWvxLKkiSGY8V5Z zmBYIOxain8I37heGCpwcGtCimLM8Z9uXStPtbllHUmcJDaUsaZdR0STDiuTq3/Nx/EB Use4UWuwJSWkJQW65E+uv/y8fe2nNlL26vkenzgJLB57uH0Jf9FBjZbeE4f4DuROkFE/ 3MkV89vrzdP3b1G8jnzPjC7N1mqJQs66POriArWwp6S0RHXmdUBKYdKYE/UIfZPPYRsV 3ztA== X-Gm-Message-State: AOJu0YyNfD60jm3vtGCiTjA99Qma9u8XP1wAo9nunsh9DXu5dESPzsT9 B/8U8EzC/RtWsPrhXDsQWG4qmDcOcS7FAJ5sHB0B2I8yLK/huHPMO/G+0Gs+TRQ= X-Google-Smtp-Source: AGHT+IGcck61umbUMgfe961N6IIg4yjJj2DtEGXEMLtQ9OLREDmuWyEpzZEwcIQC+YSes7UQ3S+c2A== X-Received: by 2002:a17:906:4794:b0:a75:3cd2:aaab with SMTP id a640c23a62f3a-a77ba455290mr397533666b.3.1720193467111; Fri, 05 Jul 2024 08:31:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 37/40] gdbstub: Pass CPU context to command handler Date: Fri, 5 Jul 2024 16:30:49 +0100 Message-Id: <20240705153052.1219696-38-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62e; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62e.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193710136100003 From: Gustavo Romero Allow passing the current CPU context to command handlers via user_ctx when the handler requires it. Signed-off-by: Gustavo Romero Message-Id: <20240628050850.536447-9-gustavo.romero@linaro.org> Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-38-alex.bennee@linaro.org> diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h index e51f276b40..f3058f9dda 100644 --- a/include/gdbstub/commands.h +++ b/include/gdbstub/commands.h @@ -54,6 +54,8 @@ typedef union GdbCmdVariant { * "stop reply" packet. The list of commands that accept such response is * defined at the GDB Remote Serial Protocol documentation. See: * https://sourceware.org/gdb/onlinedocs/gdb/Stop-Reply-Packets.html#Stop-= Reply-Packets. + * + * @need_cpu_context: Pass current CPU context to command handler via user= _ctx. */ typedef struct GdbCmdParseEntry { GdbCmdHandler handler; @@ -61,6 +63,7 @@ typedef struct GdbCmdParseEntry { bool cmd_startswith; const char *schema; bool allow_stop_reply; + bool need_cpu_context; } GdbCmdParseEntry; =20 /** diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index b1ca253f97..5c1612ed2a 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -938,6 +938,7 @@ static bool process_string_cmd(const char *data, =20 for (i =3D 0; i < num_cmds; i++) { const GdbCmdParseEntry *cmd =3D &cmds[i]; + void *user_ctx =3D NULL; g_assert(cmd->handler && cmd->cmd); =20 if ((cmd->cmd_startswith && !startswith(data, cmd->cmd)) || @@ -952,8 +953,12 @@ static bool process_string_cmd(const char *data, } } =20 + if (cmd->need_cpu_context) { + user_ctx =3D (void *)gdbserver_state.g_cpu; + } + gdbserver_state.allow_stop_reply =3D cmd->allow_stop_reply; - cmd->handler(params, NULL); + cmd->handler(params, user_ctx); return true; } =20 --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193959; cv=none; d=zohomail.com; s=zohoarc; b=PZdKpyB59PP3JC3VVNzIJxBxiLKMuAfVVSDZUuBa2Vc1dGiSEOY6Aoc+xCUxXCyqkfWT302ds7r5U53C+htl8fdjF+aKVUsR3NDqxJ8nL/dv+xVNbHPE6C2wJRwtDLMLY0tf9UdVu4+xTdTV5LbYRE30HcqQNY6Em/lZPZdyh2M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193959; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=QQHG77QGZb+nFB3pyCvPg2LvEXkCpGmtixmKrH6By47rLHCOnYR1iy8gzQW18aw7hUNX3Grh5boFzNNmyqj7SzVqOTb3eZ/iiL3soAXZhd5egaNvNQD+vCVeTtRPW3d6tddMxyfnoNBete2pq2WjGwJ67sETzJSHXWeqUfFlzfM= 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 1720193958914256.89687116747257; Fri, 5 Jul 2024 08:39:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0D-0002wH-07; Fri, 05 Jul 2024 11:37:37 -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 1sPl04-0002fT-Lp for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPl02-0001Jp-5l for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:28 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a77c4309fc8so156207966b.3 for ; Fri, 05 Jul 2024 08:37:25 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77ccee5277sm61679766b.177.2024.07.05.08.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:21 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A283D6217D; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193844; x=1720798644; 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=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=bLITfrtlcd82T2tV+6oHzycNom1eUubqQdXCTf7NfrvtSdupDt4S2qn1R3UOkEeo4I JKot0/UshjdUv/AKVG0QmWLEn9J8Oe97YAiK5YCoVHHhiifycoBH3J/jZ+g/XrDYSlXs e1OE8iA+rayYt7PXT3BeFdcPZCntsFxxktXRz9aScC9KyU1dYJys/+AyXvkS9ZmbAV1T Jl22H0yj8K2U/KrFlIXxUTiOGHxTIawkAVnwZUfq9qjSVKFn2llNSi6Re9u8syi7JyJ0 Ahlv4HW55MsZVBkEpEEuV7O4g3I0AgpfD2u8bqJ37z5AItGABhPbu1pZ4R7ZiZdKr5pN liEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193844; x=1720798644; 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=SKiCUXhdtxK6IeX+xyMLUyY+4qp63cQ7G8m1vsLFBDw=; b=w+EWKXAlpd6C35D8e3FU9dzSlBh4akDcP8vExMrF2cZqwsAiaRhf1701EDvwyiFKOS 0P1QHgT2WFaGgySCiUsMUuN+kmuygJQQp0U1avJN7fT+DZI2d1NFY6LTr2jFlTOhWvlP 4Lki29bXDHjk/HXlKa5K557Z0VM1Rj4gyacccjh7+HlYP6yhciEX7fYMRDYlmTeqgwsR h3qbwpGAY1ItsbS28zCyrNO8P8lj0cAxPFUbStxt7rXr0hNRj4RqcOwhKG1n3t2AbDIY DfKQbSujSbgraALCsIpptPMkxiW3ifovZJ2J3cdo5Vb8hFtW+m1Z1A3lNOl6DL/W+Woz IOXQ== X-Gm-Message-State: AOJu0Yyg7/BNVvXMeqjm2LT2kjUxjXT5QNJMFvQJZS0xEZqjyyEG0uLu rggEtavIeGmKsLs7DkCcguWETWTfg0e6Wby3Qwe4bUPfqxE4o3IxcfEdDMqvcN3Dnjs9GskWDDS h X-Google-Smtp-Source: AGHT+IFK4UBXJJVnjpWSMD0bLcXKbi7ALqvMaZ9DpMuFJq6VaP+d7VLPXwUMJjwF5mYxJaws6qr8dQ== X-Received: by 2002:a17:907:6e8d:b0:a6f:4bf2:daa2 with SMTP id a640c23a62f3a-a77ba45177amr397396866b.15.1720193844015; Fri, 05 Jul 2024 08:37:24 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 38/40] gdbstub: Use true to set cmd_startswith Date: Fri, 5 Jul 2024 16:30:50 +0100 Message-Id: <20240705153052.1219696-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::635; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x635.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193959609100001 From: Gustavo Romero cmd_startswith is a boolean so use 'true' to set it instead of 1. Signed-off-by: Gustavo Romero Message-Id: <20240628050850.536447-10-gustavo.romero@linaro.org> Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-39-alex.bennee@linaro.org> diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c index 5c1612ed2a..b9ad0a063e 100644 --- a/gdbstub/gdbstub.c +++ b/gdbstub/gdbstub.c @@ -1433,26 +1433,26 @@ static const GdbCmdParseEntry gdb_v_commands_table[= ] =3D { { .handler =3D handle_v_cont_query, .cmd =3D "Cont?", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, { .handler =3D handle_v_cont, .cmd =3D "Cont", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "s0" }, { .handler =3D handle_v_attach, .cmd =3D "Attach;", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "l0" }, { .handler =3D handle_v_kill, .cmd =3D "Kill;", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, #ifdef CONFIG_USER_ONLY /* @@ -1462,25 +1462,25 @@ static const GdbCmdParseEntry gdb_v_commands_table[= ] =3D { { .handler =3D gdb_handle_v_file_open, .cmd =3D "File:open:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s,L,L0" }, { .handler =3D gdb_handle_v_file_close, .cmd =3D "File:close:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, { .handler =3D gdb_handle_v_file_pread, .cmd =3D "File:pread:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,L,L0" }, { .handler =3D gdb_handle_v_file_readlink, .cmd =3D "File:readlink:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, #endif @@ -1748,7 +1748,7 @@ static const GdbCmdParseEntry gdb_gen_query_set_commo= n_table[] =3D { { .handler =3D handle_set_qemu_sstep, .cmd =3D "qemu.sstep=3D", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, }; @@ -1804,7 +1804,7 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = =3D { { .handler =3D handle_query_thread_extra, .cmd =3D "ThreadExtraInfo,", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "t0" }, #ifdef CONFIG_USER_ONLY @@ -1816,14 +1816,14 @@ static const GdbCmdParseEntry gdb_gen_query_table[]= =3D { { .handler =3D gdb_handle_query_rcmd, .cmd =3D "Rcmd,", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, #endif { .handler =3D handle_query_supported, .cmd =3D "Supported:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }, { @@ -1834,7 +1834,7 @@ static const GdbCmdParseEntry gdb_gen_query_table[] = =3D { { .handler =3D handle_query_xfer_features, .cmd =3D "Xfer:features:read:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s:l,l0" }, #if defined(CONFIG_USER_ONLY) @@ -1842,27 +1842,27 @@ static const GdbCmdParseEntry gdb_gen_query_table[]= =3D { { .handler =3D gdb_handle_query_xfer_auxv, .cmd =3D "Xfer:auxv:read::", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,l0" }, { .handler =3D gdb_handle_query_xfer_siginfo, .cmd =3D "Xfer:siginfo:read::", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l,l0" }, #endif { .handler =3D gdb_handle_query_xfer_exec_file, .cmd =3D "Xfer:exec-file:read:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l:l,l0" }, #endif { .handler =3D gdb_handle_query_attached, .cmd =3D "Attached:", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }, { .handler =3D gdb_handle_query_attached, @@ -1901,14 +1901,14 @@ static const GdbCmdParseEntry gdb_gen_set_table[] = =3D { { .handler =3D handle_set_qemu_sstep, .cmd =3D "qemu.sstep:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, #ifndef CONFIG_USER_ONLY { .handler =3D gdb_handle_set_qemu_phy_mem_mode, .cmd =3D "qemu.PhyMemMode:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l0" }, #endif @@ -1916,7 +1916,7 @@ static const GdbCmdParseEntry gdb_gen_set_table[] =3D= { { .handler =3D gdb_handle_set_catch_syscalls, .cmd =3D "CatchSyscalls:", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0", }, #endif @@ -2012,7 +2012,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry target_halted_cmd_desc =3D { .handler =3D handle_target_halt, .cmd =3D "?", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, }; cmd_parser =3D &target_halted_cmd_desc; @@ -2023,7 +2023,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry continue_cmd_desc =3D { .handler =3D handle_continue, .cmd =3D "c", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "L0" }; @@ -2035,7 +2035,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry cont_with_sig_cmd_desc =3D { .handler =3D handle_cont_with_sig, .cmd =3D "C", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "l0" }; @@ -2047,7 +2047,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry v_cmd_desc =3D { .handler =3D handle_v_commands, .cmd =3D "v", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &v_cmd_desc; @@ -2064,7 +2064,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry detach_cmd_desc =3D { .handler =3D handle_detach, .cmd =3D "D", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "?.l0" }; cmd_parser =3D &detach_cmd_desc; @@ -2075,7 +2075,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry step_cmd_desc =3D { .handler =3D handle_step, .cmd =3D "s", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "L0" }; @@ -2087,7 +2087,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry backward_cmd_desc =3D { .handler =3D handle_backward, .cmd =3D "b", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .allow_stop_reply =3D true, .schema =3D "o0" }; @@ -2099,7 +2099,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry file_io_cmd_desc =3D { .handler =3D gdb_handle_file_io, .cmd =3D "F", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L,o0" }; cmd_parser =3D &file_io_cmd_desc; @@ -2110,7 +2110,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry read_all_regs_cmd_desc =3D { .handler =3D handle_read_all_regs, .cmd =3D "g", - .cmd_startswith =3D 1 + .cmd_startswith =3D true }; cmd_parser =3D &read_all_regs_cmd_desc; } @@ -2120,7 +2120,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry write_all_regs_cmd_desc =3D { .handler =3D handle_write_all_regs, .cmd =3D "G", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &write_all_regs_cmd_desc; @@ -2131,7 +2131,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry read_mem_cmd_desc =3D { .handler =3D handle_read_mem, .cmd =3D "m", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L0" }; cmd_parser =3D &read_mem_cmd_desc; @@ -2142,7 +2142,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry write_mem_cmd_desc =3D { .handler =3D handle_write_mem, .cmd =3D "M", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L,L:s0" }; cmd_parser =3D &write_mem_cmd_desc; @@ -2153,7 +2153,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry get_reg_cmd_desc =3D { .handler =3D handle_get_reg, .cmd =3D "p", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L0" }; cmd_parser =3D &get_reg_cmd_desc; @@ -2164,7 +2164,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry set_reg_cmd_desc =3D { .handler =3D handle_set_reg, .cmd =3D "P", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "L?s0" }; cmd_parser =3D &set_reg_cmd_desc; @@ -2175,7 +2175,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry insert_bp_cmd_desc =3D { .handler =3D handle_insert_bp, .cmd =3D "Z", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l?L?L0" }; cmd_parser =3D &insert_bp_cmd_desc; @@ -2186,7 +2186,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry remove_bp_cmd_desc =3D { .handler =3D handle_remove_bp, .cmd =3D "z", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "l?L?L0" }; cmd_parser =3D &remove_bp_cmd_desc; @@ -2197,7 +2197,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry set_thread_cmd_desc =3D { .handler =3D handle_set_thread, .cmd =3D "H", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "o.t0" }; cmd_parser =3D &set_thread_cmd_desc; @@ -2208,7 +2208,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry thread_alive_cmd_desc =3D { .handler =3D handle_thread_alive, .cmd =3D "T", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "t0" }; cmd_parser =3D &thread_alive_cmd_desc; @@ -2219,7 +2219,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry gen_query_cmd_desc =3D { .handler =3D handle_gen_query, .cmd =3D "q", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &gen_query_cmd_desc; @@ -2230,7 +2230,7 @@ static int gdb_handle_packet(const char *line_buf) static const GdbCmdParseEntry gen_set_cmd_desc =3D { .handler =3D handle_gen_set, .cmd =3D "Q", - .cmd_startswith =3D 1, + .cmd_startswith =3D true, .schema =3D "s0" }; cmd_parser =3D &gen_set_cmd_desc; --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193943; cv=none; d=zohomail.com; s=zohoarc; b=IGuj3TKLOhJOUrc8dvn0DcPxtdK2zw4EydklIDMI4WOQbg+WCOfv26sBTEgPt9IEFpaCxuaDKrhttf7+k7gzbCThZ+PU/vSYQ/Tp+rl797ZnYckj5Sf4iVzsquFn2pLp9W5ORGn9YQMnJ2DpLQv8RmdHt2hF9psrybekMsB1L2g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193943; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vYrylhe2JsQxot6hVERKE4QV3udfPLvHwktzufwCui8=; b=kZ4oJexZOev9x27aZqj42GrdasvSPqMxIlp7et9AITU0ntdAYwQxaP7rLeD+XksFdz3CwGtkad5ScrMgcmul1gqWjifAEbo5RV7rObovKaxVfNCyj9ZZM5I/1rU9nPWXBUaL1wvb+fveW+R0qpB8Xjp53xUQo5bVJIEvmE2zED0= 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 1720193943618793.2798272352538; Fri, 5 Jul 2024 08:39:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPl0A-0002kZ-19; Fri, 05 Jul 2024 11:37:34 -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 1sPl00-0002dJ-Rz for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:24 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkzy-0001In-Bm for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:37:24 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a77c0b42a8fso232957066b.1 for ; Fri, 05 Jul 2024 08:37:21 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a77cbb3ef7asm68371266b.74.2024.07.05.08.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:37:14 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BE5A0621AC; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193840; x=1720798640; 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=vYrylhe2JsQxot6hVERKE4QV3udfPLvHwktzufwCui8=; b=bnZjLGG+wV/BCFVLLqqkmn+pWcL0VXzOUXxMnRRj0lCzR5ySGb6ndbpl4XYQMdvUzD ubzC19NmJ+4jXn3w/SUfO5mQ/hzxHx6/eu6B/Naf7YyS1RkxpG14U18MTKf6lapexsIp Iiw6SOcrD062Z7fXPh0M75IEQa1eq0hBW8gDWjO4YiR1gr4QEeoazw+w61T/dWtu7fGV wlf6wSub8RxMbXrk55HK3TszaRUSsMORn67FyEWMVhVzEzDUa+4hbUyG82upjJ4sgGNO 1t4hzKEgjJB2iSMPGT6LegvjEhV7qoitKjixD09oqtij6cx1rTd7wHTJI42wfckk18Oq Qngg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193840; x=1720798640; 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=vYrylhe2JsQxot6hVERKE4QV3udfPLvHwktzufwCui8=; b=Jb18wcnrnTWfegjGAW+kOkX5oS8eZfTh7+1iIZ8nww+BqP0o3TnRY+hztsohgdGzxe uCtwsrec1kpQafrSYfh+rL13Nf/73/cyxVHHlm0B81XNFJa0MC91LFcjjtqYB4XBrvrn V38bNWl4KkIvN/T28JqtgBTCsisajwqhU9jwloXJ3D5IKV4Iz5vrk2g6gAuO+WMiTJTb i7Edq5ZFiwa20qB+mMXKs9JvC91Qqp6zJ+0AKqzpaRKwjyFAs+1XkM+ad67pTXTgwvR1 E/WDcIr+QoNKlrrKPZDqD1lwuK0MIBkbQswER6myU2JSwHGt7wQdLrAwGucesd/qvX+J VlHA== X-Gm-Message-State: AOJu0YwBptojONHKpgULmbZ7B8noh8ALdrvcwQdW+k5g/cEUNXeajWfw tWpfTtOZFR4gkNJT3vtdpzdEGNomYHiHU04TYcvGwxLoZzFDOvAKSOzi8mAWcmxAbsdI/84CQZL t X-Google-Smtp-Source: AGHT+IFJF4YbcasxXUOcAtMc9uXDJr6A5PYVS67UrLypPVnO57KvScoJkncri4Fr0WSQbx5bWbbspg== X-Received: by 2002:a17:906:f801:b0:a75:7a8:d70c with SMTP id a640c23a62f3a-a77bd99b7b2mr364133266b.4.1720193840043; Fri, 05 Jul 2024 08:37:20 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 39/40] gdbstub: Add support for MTE in user mode Date: Fri, 5 Jul 2024 16:30:51 +0100 Message-Id: <20240705153052.1219696-40-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::635; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x635.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193945595100005 From: Gustavo Romero This commit implements the stubs to handle the qIsAddressTagged, qMemTag, and QMemTag GDB packets, allowing all GDB 'memory-tag' subcommands to work with QEMU gdbstub on aarch64 user mode. It also implements the get/set functions for the special GDB MTE register 'tag_ctl', used to control the MTE fault type at runtime. Signed-off-by: Gustavo Romero Message-Id: <20240628050850.536447-11-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-40-alex.bennee@linaro.org> diff --git a/configs/targets/aarch64-linux-user.mak b/configs/targets/aarch= 64-linux-user.mak index ba8bc5fe3f..8f0ed21d76 100644 --- a/configs/targets/aarch64-linux-user.mak +++ b/configs/targets/aarch64-linux-user.mak @@ -1,6 +1,6 @@ TARGET_ARCH=3Daarch64 TARGET_BASE_ARCH=3Darm -TARGET_XML_FILES=3D gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-x= ml/aarch64-pauth.xml +TARGET_XML_FILES=3D gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-x= ml/aarch64-pauth.xml gdb-xml/aarch64-mte.xml TARGET_HAS_BFLT=3Dy CONFIG_SEMIHOSTING=3Dy CONFIG_ARM_COMPATIBLE_SEMIHOSTING=3Dy diff --git a/target/arm/internals.h b/target/arm/internals.h index 11b5da2562..e1aa1a63b9 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -358,6 +358,10 @@ void init_cpreg_list(ARMCPU *cpu); void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu); void arm_translate_init(void); =20 +void arm_cpu_register_gdb_commands(ARMCPU *cpu); +void aarch64_cpu_register_gdb_commands(ARMCPU *cpu, GString *, GArray *, + GArray *); + void arm_restore_state_to_opc(CPUState *cs, const TranslationBlock *tb, const uint64_t *data); @@ -1640,6 +1644,8 @@ int aarch64_gdb_get_fpu_reg(CPUState *cs, GByteArray = *buf, int reg); int aarch64_gdb_set_fpu_reg(CPUState *cs, uint8_t *buf, int reg); int aarch64_gdb_get_pauth_reg(CPUState *cs, GByteArray *buf, int reg); int aarch64_gdb_set_pauth_reg(CPUState *cs, uint8_t *buf, int reg); +int aarch64_gdb_get_tag_ctl_reg(CPUState *cs, GByteArray *buf, int reg); +int aarch64_gdb_set_tag_ctl_reg(CPUState *cs, uint8_t *buf, int reg); void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp); void arm_cpu_sme_finalize(ARMCPU *cpu, Error **errp); void arm_cpu_pauth_finalize(ARMCPU *cpu, Error **errp); diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 35fa281f1b..14d4eca127 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2518,6 +2518,7 @@ static void arm_cpu_realizefn(DeviceState *dev, Error= **errp) =20 register_cp_regs_for_features(cpu); arm_cpu_register_gdb_regs_for_features(cpu); + arm_cpu_register_gdb_commands(cpu); =20 init_cpreg_list(cpu); =20 diff --git a/target/arm/gdbstub.c b/target/arm/gdbstub.c index a3bb73cfa7..c3a9b5eb1e 100644 --- a/target/arm/gdbstub.c +++ b/target/arm/gdbstub.c @@ -21,6 +21,7 @@ #include "cpu.h" #include "exec/gdbstub.h" #include "gdbstub/helpers.h" +#include "gdbstub/commands.h" #include "sysemu/tcg.h" #include "internals.h" #include "cpu-features.h" @@ -474,6 +475,41 @@ static GDBFeature *arm_gen_dynamic_m_secextreg_feature= (CPUState *cs, #endif #endif /* CONFIG_TCG */ =20 +void arm_cpu_register_gdb_commands(ARMCPU *cpu) +{ + GArray *query_table =3D + g_array_new(FALSE, FALSE, sizeof(GdbCmdParseEntry)); + GArray *set_table =3D + g_array_new(FALSE, FALSE, sizeof(GdbCmdParseEntry)); + GString *qsupported_features =3D g_string_new(NULL); + + if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) { + #ifdef TARGET_AARCH64 + aarch64_cpu_register_gdb_commands(cpu, qsupported_features, query_= table, + set_table); + #endif + } + + /* Set arch-specific handlers for 'q' commands. */ + if (query_table->len) { + gdb_extend_query_table(&g_array_index(query_table, + GdbCmdParseEntry, 0), + query_table->len); + } + + /* Set arch-specific handlers for 'Q' commands. */ + if (set_table->len) { + gdb_extend_set_table(&g_array_index(set_table, + GdbCmdParseEntry, 0), + set_table->len); + } + + /* Set arch-specific qSupported feature. */ + if (qsupported_features->len) { + gdb_extend_qsupported_features(qsupported_features->str); + } +} + void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu) { CPUState *cs =3D CPU(cpu); @@ -507,6 +543,16 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cp= u) gdb_find_static_feature("aarch64-paut= h.xml"), 0); } + +#ifdef CONFIG_USER_ONLY + /* Memory Tagging Extension (MTE) 'tag_ctl' pseudo-register. */ + if (cpu_isar_feature(aa64_mte, cpu)) { + gdb_register_coprocessor(cs, aarch64_gdb_get_tag_ctl_reg, + aarch64_gdb_set_tag_ctl_reg, + gdb_find_static_feature("aarch64-mte.= xml"), + 0); + } +#endif #endif } else { if (arm_feature(env, ARM_FEATURE_NEON)) { diff --git a/target/arm/gdbstub64.c b/target/arm/gdbstub64.c index caa31ff3fa..2e2bc2700b 100644 --- a/target/arm/gdbstub64.c +++ b/target/arm/gdbstub64.c @@ -21,6 +21,12 @@ #include "cpu.h" #include "internals.h" #include "gdbstub/helpers.h" +#include "gdbstub/commands.h" +#include "tcg/mte_helper.h" +#if defined(CONFIG_USER_ONLY) && defined(CONFIG_LINUX) +#include +#include "mte_user_helper.h" +#endif =20 int aarch64_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) { @@ -381,3 +387,220 @@ GDBFeature *arm_gen_dynamic_svereg_feature(CPUState *= cs, int base_reg) =20 return &cpu->dyn_svereg_feature.desc; } + +#ifdef CONFIG_USER_ONLY +int aarch64_gdb_get_tag_ctl_reg(CPUState *cs, GByteArray *buf, int reg) +{ + ARMCPU *cpu =3D ARM_CPU(cs); + CPUARMState *env =3D &cpu->env; + uint64_t tcf0; + + assert(reg =3D=3D 0); + + tcf0 =3D extract64(env->cp15.sctlr_el[1], 38, 2); + + return gdb_get_reg64(buf, tcf0); +} + +int aarch64_gdb_set_tag_ctl_reg(CPUState *cs, uint8_t *buf, int reg) +{ + ARMCPU *cpu =3D ARM_CPU(cs); + CPUARMState *env =3D &cpu->env; + + uint8_t tcf; + + assert(reg =3D=3D 0); + + tcf =3D *buf << PR_MTE_TCF_SHIFT; + + if (!tcf) { + return 0; + } + + /* + * 'tag_ctl' register is actually a "pseudo-register" provided by GDB = to + * expose options regarding the type of MTE fault that can be controll= ed at + * runtime. + */ + arm_set_mte_tcf0(env, tcf); + + return 1; +} + +static void handle_q_memtag(GArray *params, void *user_ctx) +{ + ARMCPU *cpu =3D ARM_CPU(user_ctx); + CPUARMState *env =3D &cpu->env; + + uint64_t addr =3D gdb_get_cmd_param(params, 0)->val_ull; + uint64_t len =3D gdb_get_cmd_param(params, 1)->val_ul; + int type =3D gdb_get_cmd_param(params, 2)->val_ul; + + uint8_t *tags; + uint8_t addr_tag; + + g_autoptr(GString) str_buf =3D g_string_new(NULL); + + /* + * GDB does not query multiple tags for a memory range on remote targe= ts, so + * that's not supported either by gdbstub. + */ + if (len !=3D 1) { + gdb_put_packet("E02"); + } + + /* GDB never queries a tag different from an allocation tag (type 1). = */ + if (type !=3D 1) { + gdb_put_packet("E03"); + } + + /* Note that tags are packed here (2 tags packed in one byte). */ + tags =3D allocation_tag_mem_probe(env, 0, addr, MMU_DATA_LOAD, 8 /* 64= -bit */, + MMU_DATA_LOAD, true, 0); + if (!tags) { + /* Address is not in a tagged region. */ + gdb_put_packet("E04"); + return; + } + + /* Unpack tag from byte. */ + addr_tag =3D load_tag1(addr, tags); + g_string_printf(str_buf, "m%.2x", addr_tag); + + gdb_put_packet(str_buf->str); +} + +static void handle_q_isaddresstagged(GArray *params, void *user_ctx) +{ + ARMCPU *cpu =3D ARM_CPU(user_ctx); + CPUARMState *env =3D &cpu->env; + + uint64_t addr =3D gdb_get_cmd_param(params, 0)->val_ull; + + uint8_t *tags; + const char *reply; + + tags =3D allocation_tag_mem_probe(env, 0, addr, MMU_DATA_LOAD, 8 /* 64= -bit */, + MMU_DATA_LOAD, true, 0); + reply =3D tags ? "01" : "00"; + + gdb_put_packet(reply); +} + +static void handle_Q_memtag(GArray *params, void *user_ctx) +{ + ARMCPU *cpu =3D ARM_CPU(user_ctx); + CPUARMState *env =3D &cpu->env; + + uint64_t start_addr =3D gdb_get_cmd_param(params, 0)->val_ull; + uint64_t len =3D gdb_get_cmd_param(params, 1)->val_ul; + int type =3D gdb_get_cmd_param(params, 2)->val_ul; + char const *new_tags_str =3D gdb_get_cmd_param(params, 3)->data; + + uint64_t end_addr; + + int num_new_tags; + uint8_t *tags; + + g_autoptr(GByteArray) new_tags =3D g_byte_array_new(); + + /* + * Only the allocation tag (i.e. type 1) can be set at the stub side. + */ + if (type !=3D 1) { + gdb_put_packet("E02"); + return; + } + + end_addr =3D start_addr + (len - 1); /* 'len' is always >=3D 1 */ + /* Check if request's memory range does not cross page boundaries. */ + if ((start_addr ^ end_addr) & TARGET_PAGE_MASK) { + gdb_put_packet("E03"); + return; + } + + /* + * Get all tags in the page starting from the tag of the start address. + * Note that there are two tags packed into a single byte here. + */ + tags =3D allocation_tag_mem_probe(env, 0, start_addr, MMU_DATA_STORE, + 8 /* 64-bit */, MMU_DATA_STORE, true, = 0); + if (!tags) { + /* Address is not in a tagged region. */ + gdb_put_packet("E04"); + return; + } + + /* Convert tags provided by GDB, 2 hex digits per tag. */ + num_new_tags =3D strlen(new_tags_str) / 2; + gdb_hextomem(new_tags, new_tags_str, num_new_tags); + + uint64_t address =3D start_addr; + int new_tag_index =3D 0; + while (address <=3D end_addr) { + uint8_t new_tag; + int packed_index; + + /* + * Find packed tag index from unpacked tag index. There are two ta= gs + * in one packed index (one tag per nibble). + */ + packed_index =3D new_tag_index / 2; + + new_tag =3D new_tags->data[new_tag_index % num_new_tags]; + store_tag1(address, tags + packed_index, new_tag); + + address +=3D TAG_GRANULE; + new_tag_index++; + } + + gdb_put_packet("OK"); +} + +enum Command { + qMemTags, + qIsAddressTagged, + QMemTags, + NUM_CMDS +}; + +static GdbCmdParseEntry cmd_handler_table[NUM_CMDS] =3D { + [qMemTags] =3D { + .handler =3D handle_q_memtag, + .cmd_startswith =3D true, + .cmd =3D "MemTags:", + .schema =3D "L,l:l0", + .need_cpu_context =3D true + }, + [qIsAddressTagged] =3D { + .handler =3D handle_q_isaddresstagged, + .cmd_startswith =3D true, + .cmd =3D "IsAddressTagged:", + .schema =3D "L0", + .need_cpu_context =3D true + }, + [QMemTags] =3D { + .handler =3D handle_Q_memtag, + .cmd_startswith =3D true, + .cmd =3D "MemTags:", + .schema =3D "L,l:l:s0", + .need_cpu_context =3D true + }, +}; +#endif /* CONFIG_USER_ONLY */ + +void aarch64_cpu_register_gdb_commands(ARMCPU *cpu, GString *qsupported, + GArray *qtable, GArray *stable) +{ +#ifdef CONFIG_USER_ONLY + /* MTE */ + if (cpu_isar_feature(aa64_mte, cpu)) { + g_string_append(qsupported, ";memory-tagging+"); + + g_array_append_val(qtable, cmd_handler_table[qMemTags]); + g_array_append_val(qtable, cmd_handler_table[qIsAddressTagged]); + + g_array_append_val(stable, cmd_handler_table[QMemTags]); + } +#endif +} diff --git a/gdb-xml/aarch64-mte.xml b/gdb-xml/aarch64-mte.xml new file mode 100644 index 0000000000..4b70b4f17a --- /dev/null +++ b/gdb-xml/aarch64-mte.xml @@ -0,0 +1,11 @@ + + + + + + + --=20 2.39.2 From nobody Sun Nov 24 20:44:11 2024 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=1720193708; cv=none; d=zohomail.com; s=zohoarc; b=R9VNwDHjDACDX7F/7eOpC/+Uo8KNOmEokZgZ1Fjtp52w5xtrF9biNHnsZxO+gpD46heOT2WZZar/nr6t1CxlfgHGJTrFrQdL1Xtu1sqVNO/NgVXOSya0MZISv0H1ql7UKIQ1/GnLJkB3MCaGutZTzeFNyQr+K8ri4hJw5s8/1NI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720193708; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Sv3Yug9NCQNk3EkRMmpkOBVsrQGJofWxvPFSJFd8Ubw=; b=fcOuz/iT2CC+1uY9NO/SADny6Rx6LwVGSxF0+TyPf1NiTqiLSm2fHhSik1CTezqdczaNrrRhCtKzKIthCA8EWCe7E4evYbSXjgi1w41fPGbj7QSS3KRaq/isBfyv1OySiPRZYrzUY48J4Ft/47nMAqxcLEP2zu02H8X5BSs199g= 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 1720193708302493.0592549185152; Fri, 5 Jul 2024 08:35:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPku6-0005md-It; Fri, 05 Jul 2024 11:31:18 -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 1sPku4-0005kx-MW for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:16 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPkty-0000SX-Ap for qemu-devel@nongnu.org; Fri, 05 Jul 2024 11:31:16 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a7523f0870cso210570566b.3 for ; Fri, 05 Jul 2024 08:31:09 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ae5ac5b8sm683287966b.14.2024.07.05.08.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 08:31:06 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id DAE6C621B4; Fri, 5 Jul 2024 16:30:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720193469; x=1720798269; 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=Sv3Yug9NCQNk3EkRMmpkOBVsrQGJofWxvPFSJFd8Ubw=; b=GpVHWtY/10JPTQqo9fc5W80L2MzD5OWZGs/FeGydDNco5tw07T7Jq1OABijjp313g9 G645+jOJSpqNt5g7Oqx++mr40XEV7fuA8lFZohH0cmecqAP56iixmkzFfIL81zpJRo2R cyt75vKuqwJiPwepZQb+Cf8sra9S6TqQabTQytkyWKCxhM0KBwcLnmsmWbY5oSeE47Bm UEjHMAGomZbMi94iK8Ya2yOGo/in03yUeLON8vhZopefHDc74KYh7cmcqRNt5VFjXiig LAmJ240fdAnPbfMBA9dV7LpfV6lppUZw2GJGxFu/OTIFdXLTtiVun8pSL9qFEnIKlc0i 72JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720193469; x=1720798269; 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=Sv3Yug9NCQNk3EkRMmpkOBVsrQGJofWxvPFSJFd8Ubw=; b=bHjmz/AWym2T1F0vV/EyC1y2ubBq3p/eX3pKNn7MF5JYAPDvjkpecxUTiKLX+zYGMQ p2FSwIePVzT4E+8QyHhy61YDcyE0otbn2s9VYs1ySwqidHyBJLEwbK6CbpZQ6pgqezxH tFpJEsHAPMYq1Ae/1DlSNOWU3EUjur1JfNsYJJ/3+NMGm9slx+2zcZBel4Ntz3Ml+IMO 0eXGQu/YKPO5XfNNnnvhZboEpCFqg70GRGbEhok0qkWDdPiDNRwQTxc7669b6HmzU1Dl wfDcmih1MUZ1Yc6iQfhpWnxi8Ym3q/fg/2Fp3Xrw66TOOCl8K5mikwGWa3gS3nxIB7mf lOeQ== X-Gm-Message-State: AOJu0Yxkx/F+z8/P6b1I6GZKQXp8yU9JZ/W0aeYRsdg6Nnl5uxYvryMn fr8TtsTjf3KYoj3HUqtZ2wd021pRzMN/JCcG91f1xbUgngWn/zasYFiTe9hlRGA= X-Google-Smtp-Source: AGHT+IGWQMsNzfTxClIy+++3UoanyOigW3PGC7ccQ61Z5LGsIiGIT6XfLR2aQO46I7aFOAXnYMWfhQ== X-Received: by 2002:a17:906:19c4:b0:a6f:33d6:2d45 with SMTP id a640c23a62f3a-a77ba708411mr273219266b.60.1720193468515; Fri, 05 Jul 2024 08:31:08 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Gustavo Romero , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Thomas Huth , Peter Maydell , qemu-arm@nongnu.org (open list:ARM TCG CPUs) Subject: [PULL 40/40] tests/tcg/aarch64: Add MTE gdbstub tests Date: Fri, 5 Jul 2024 16:30:52 +0100 Message-Id: <20240705153052.1219696-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705153052.1219696-1-alex.bennee@linaro.org> References: <20240705153052.1219696-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1720193710179100005 From: Gustavo Romero Add tests to exercise the MTE stubs. The tests will only run if a version of GDB that supports MTE is available in the test environment. Signed-off-by: Gustavo Romero [AJB: re-base and checkpatch fixes] Message-Id: <20240628050850.536447-12-gustavo.romero@linaro.org> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20240705084047.857176-41-alex.bennee@linaro.org> diff --git a/configure b/configure index 8b6a2f16ce..019fcbd0ef 100755 --- a/configure +++ b/configure @@ -1673,6 +1673,10 @@ for target in $target_list; do echo "GDB=3D$gdb_bin" >> $config_target_mak fi =20 + if test "${arch}" =3D "aarch64" && version_ge ${gdb_version##* } 15.= 0; then + echo "GDB_HAS_MTE=3Dy" >> $config_target_mak + fi + echo "run-tcg-tests-$target: $qemu\$(EXESUF)" >> Makefile.prereqs tcg_tests_targets=3D"$tcg_tests_targets $target" fi diff --git a/tests/tcg/aarch64/mte-8.c b/tests/tcg/aarch64/mte-8.c new file mode 100644 index 0000000000..808135ba43 --- /dev/null +++ b/tests/tcg/aarch64/mte-8.c @@ -0,0 +1,99 @@ +/* + * To be compiled with -march=3Darmv8.5-a+memtag + * + * This test is adapted from a Linux test. Please see: + * + * https://www.kernel.org/doc/html/next/arch/arm64/memory-tagging-extensio= n.html#example-of-correct-usage + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* + * From arch/arm64/include/uapi/asm/hwcap.h + */ +#define HWCAP2_MTE (1 << 18) + +/* + * From arch/arm64/include/uapi/asm/mman.h + */ +#define PROT_MTE 0x20 + +/* + * Insert a random logical tag into the given pointer. + */ +#define insert_random_tag(ptr) ({ \ + uint64_t __val; \ + asm("irg %0, %1" : "=3Dr" (__val) : "r" (ptr)); \ + __val; \ +}) + +/* + * Set the allocation tag on the destination address. + */ +#define set_tag(tagged_addr) do { \ + asm volatile("stg %0, [%0]" : : "r" (tagged_addr) : "memory"); \ +} while (0) + + +int main(int argc, char *argv[]) +{ + unsigned char *a; + unsigned long page_sz =3D sysconf(_SC_PAGESIZE); + unsigned long hwcap2 =3D getauxval(AT_HWCAP2); + + /* check if MTE is present */ + if (!(hwcap2 & HWCAP2_MTE)) { + return EXIT_FAILURE; + } + + /* + * Enable the tagged address ABI, synchronous or asynchronous MTE + * tag check faults (based on per-CPU preference) and allow all + * non-zero tags in the randomly generated set. + */ + if (prctl(PR_SET_TAGGED_ADDR_CTRL, + PR_TAGGED_ADDR_ENABLE | PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC | + (0xfffe << PR_MTE_TAG_SHIFT), + 0, 0, 0)) { + perror("prctl() failed"); + return EXIT_FAILURE; + } + + a =3D mmap(0, page_sz, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); + if (a =3D=3D MAP_FAILED) { + perror("mmap() failed"); + return EXIT_FAILURE; + } + + printf("a[] address is %p\n", a); + + /* + * Enable MTE on the above anonymous mmap. The flag could be passed + * directly to mmap() and skip this step. + */ + if (mprotect(a, page_sz, PROT_READ | PROT_WRITE | PROT_MTE)) { + perror("mprotect() failed"); + return EXIT_FAILURE; + } + + /* access with the default tag (0) */ + a[0] =3D 1; + a[1] =3D 2; + + printf("a[0] =3D %hhu a[1] =3D %hhu\n", a[0], a[1]); + + /* set the logical and allocation tags */ + a =3D (unsigned char *)insert_random_tag(a); + set_tag(a); + + printf("%p\n", a); + + return 0; +} diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile= .target index ad1774c2ce..b53218e115 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -64,7 +64,7 @@ AARCH64_TESTS +=3D bti-2 =20 # MTE Tests ifneq ($(CROSS_CC_HAS_ARMV8_MTE),) -AARCH64_TESTS +=3D mte-1 mte-2 mte-3 mte-4 mte-5 mte-6 mte-7 +AARCH64_TESTS +=3D mte-1 mte-2 mte-3 mte-4 mte-5 mte-6 mte-7 mte-8 mte-%: CFLAGS +=3D $(CROSS_CC_HAS_ARMV8_MTE) endif =20 @@ -131,6 +131,18 @@ run-gdbstub-sve-ioctls: sve-ioctls basic gdbstub SVE ZLEN support) =20 EXTRA_RUNS +=3D run-gdbstub-sysregs run-gdbstub-sve-ioctls + +ifeq ($(GDB_HAS_MTE),y) +run-gdbstub-mte: mte-8 + $(call run-test, $@, $(GDB_SCRIPT) \ + --gdb $(GDB) \ + --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ + --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py, \ + gdbstub MTE support) + +EXTRA_RUNS +=3D run-gdbstub-mte +endif + endif endif =20 diff --git a/tests/tcg/aarch64/gdbstub/test-mte.py b/tests/tcg/aarch64/gdbs= tub/test-mte.py new file mode 100644 index 0000000000..2db0663c1a --- /dev/null +++ b/tests/tcg/aarch64/gdbstub/test-mte.py @@ -0,0 +1,86 @@ +from __future__ import print_function +# +# Test GDB memory-tag commands that exercise the stubs for the qIsAddressT= agged, +# qMemTag, and QMemTag packets. Logical tag-only commands rely on local +# operations, hence don't exercise any stub. +# +# The test consists in breaking just after a atag() call (which sets the +# allocation tag -- see mte-8.c for details) and setting/getting tags in +# different memory locations and ranges starting at the address of the arr= ay +# 'a'. +# +# This is launched via tests/guest-debug/run-test.py +# + + +import gdb +import re +from test_gdbstub import main, report + + +PATTERN_0 =3D "Memory tags for address 0x[0-9a-f]+ match \(0x[0-9a-f]+\)." +PATTERN_1 =3D ".*(0x[0-9a-f]+)" + + +def run_test(): + gdb.execute("break 95", False, True) + gdb.execute("continue", False, True) + try: + # Test if we can check correctly that the allocation tag for + # array 'a' matches the logical tag after atag() is called. + co =3D gdb.execute("memory-tag check a", False, True) + tags_match =3D re.findall(PATTERN_0, co, re.MULTILINE) + if tags_match: + report(True, f"{tags_match[0]}") + else: + report(False, "Logical and allocation tags don't match!") + + # Test allocation tag 'set and print' commands. Commands on logical + # tags rely on local operation and so don't exercise any stub. + + # Set the allocation tag for the first granule (16 bytes) of + # address starting at 'a' address to a known value, i.e. 0x04. + gdb.execute("memory-tag set-allocation-tag a 1 04", False, True) + + # Then set the allocation tag for the second granule to a known + # value, i.e. 0x06. This tests that contiguous tag granules are + # set correct and don't run over each other. + gdb.execute("memory-tag set-allocation-tag a+16 1 06", False, True) + + # Read the known values back and check if they remain the same. + + co =3D gdb.execute("memory-tag print-allocation-tag a", False, Tru= e) + first_tag =3D re.match(PATTERN_1, co)[1] + + co =3D gdb.execute("memory-tag print-allocation-tag a+16", False, = True) + second_tag =3D re.match(PATTERN_1, co)[1] + + if first_tag =3D=3D "0x4" and second_tag =3D=3D "0x6": + report(True, "Allocation tags are correctly set/printed.") + else: + report(False, "Can't set/print allocation tags!") + + # Now test fill pattern by setting a whole page with a pattern. + gdb.execute("memory-tag set-allocation-tag a 4096 0a0b", False, Tr= ue) + + # And read back the tags of the last two granules in page so + # we also test if the pattern is set correctly up to the end of + # the page. + co =3D gdb.execute("memory-tag print-allocation-tag a+4096-32", Fa= lse, True) + tag =3D re.match(PATTERN_1, co)[1] + + co =3D gdb.execute("memory-tag print-allocation-tag a+4096-16", Fa= lse, True) + last_tag =3D re.match(PATTERN_1, co)[1] + + if tag =3D=3D "0xa" and last_tag =3D=3D "0xb": + report(True, "Fill pattern is ok.") + else: + report(False, "Fill pattern failed!") + + except gdb.error: + # This usually happens because a GDB version that does not + # support memory tagging was used to run the test. + report(False, "'memory-tag' command failed!") + + +main(run_test, expected_arch=3D"aarch64") --=20 2.39.2