From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815229; cv=none; d=zohomail.com; s=zohoarc; b=A34Tf8Rq70Lm1N9Q2NYJJ4vuBhPFZvoKLS2DB5y/Hdy48XkUghfFxg9H4B/XiL1MOwdfDH/FIFgHog4FDylPow54WoDd16WxV2sgtAGYlMqJTGDTltKl3TGnb5sU1rre+8IMX+mMr07CqXoDfxcNtzNq7UiAH6bUMt78AqIimkY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815229; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IkHtkDFEKBaCfxsckkEHPNxsTtMBckHgpjARuueXkuQ=; b=P7WvfHvOmOOb+gEjYa3xQI/QHloTURLXItTLbWsBGHFGzjHaT+Fo6wo6199lcNyIz8DlwC9UwbbWJEMX/CkfX8viLGBuFDwylIjZr9zWzUUs8RHzgx9yT3kgaP9UDkKyIzdhAMKgqFIOc0NeDgCJYV6bL+eZiHaTJKKvvR1yh1M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815229250920.2078648151326; Wed, 12 May 2021 03:27:09 -0700 (PDT) Received: from localhost ([::1]:50208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm54-00033a-Dh for importer@patchew.org; Wed, 12 May 2021 06:27:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglz7-00038q-UZ for qemu-devel@nongnu.org; Wed, 12 May 2021 06:20:57 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:51845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglz6-0003T5-8E for qemu-devel@nongnu.org; Wed, 12 May 2021 06:20:57 -0400 Received: by mail-wm1-x336.google.com with SMTP id u133so1223062wmg.1 for ; Wed, 12 May 2021 03:20:55 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m13sm30700035wrw.86.2021.05.12.03.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3955D1FF87; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IkHtkDFEKBaCfxsckkEHPNxsTtMBckHgpjARuueXkuQ=; b=MMFB7rBELciHip+7gOHzZLoHK93UOVNjiSBGLX5b/F4p4LohIqhPCpTqZoIF0alCXv y7WMbqwLzeavhg7IZzHS9Xk42G97nxAuSlLsWn3l4N7TqKLP8Pw5jeHESmrqZjFO6BVU aik7rDNg+VEZkanFtzc66XABoBhuCFNdAiyGNwvJlIYuy3vaugncdGOUUPI4JiUgi1lD 6r2Gxwjj1Tk0Mj69anLtruLDsAf31Dg6fg94UmSUGTSO0xz5bt8oxxEsChtojeft5Ock WZnoNQOO4EX3jgMgpKXg2JLI/0Nf5iFpk1FXzRHUqFGkwLuXcuEkS/U1NiEzvvYPn7fF QD6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IkHtkDFEKBaCfxsckkEHPNxsTtMBckHgpjARuueXkuQ=; b=RZQOBZz2Nok46p7PjULjIW8IdKBW+J2nrBjNPerZvwvqEET+5xuj1U5P0iMVXHvKAy cwUplAbWom1ViMmEV8CvTlg5Ns+xlByC838VX8MGCsCkl3w20m/5Iwpvzj1mOMmZk0AQ m6MFvFgYypkZTaGLnm3chpN2L1dIvG1NfJHNwZV+B2rNYs5oSDTQ3v+NeJItsy3xkBE7 mHQzSdlFimIWvD/Kp9SzZCb5WPe7g9b5nqiEVYvHiBLOk3RkBUSGZpDbh9eD26LHHAgZ HYc945ddVJzlBHN7pab4iUUiMkZCPzz0nAfEeGpeKlNpZYjroGTor90OpddZaBf99YHi YIAA== X-Gm-Message-State: AOAM53009DSmAaNW++n16LpzKaQlswQamgK+Cbx8Z/PSiqVTtTTdtZaK AEDJO08tgpPhqE4bAp/xVzVCUA== X-Google-Smtp-Source: ABdhPJxT0pVOezRNNMMTyP7ERmojknm8bZtTOIt0ol5TT1p4TQdZfb9tnaX1ZshO0WUYGGM8cxPs5A== X-Received: by 2002:a05:600c:293:: with SMTP id 19mr38178261wmk.144.1620814854399; Wed, 12 May 2021 03:20:54 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 01/31] checkpatch: Fix use of uninitialized value Date: Wed, 12 May 2021 11:20:21 +0100 Message-Id: <20210512102051.12134-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Isaku Yamahata , berrange@redhat.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , f4bug@amsat.org, Greg Kurz , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Greg Kurz checkfilename() doesn't always set $acpi_testexpected. Fix the following warning: Use of uninitialized value $acpi_testexpected in string eq at ./scripts/checkpatch.pl line 1529. Fixes: d2f1af0e4120 ("checkpatch: don't emit warning on newly created acpi = data files") Signed-off-by: Greg Kurz Reviewed-by: Isaku Yamahata Reviewed-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210408164610.14229-1-alex.bennee@linaro.org> Message-Id: <161786467973.295167.5612704777283969903.stgit@bahia.lan> Signed-off-by: Alex Benn=C3=A9e --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 8f7053ec9b..3d185cceac 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1532,6 +1532,7 @@ sub process { ($line =3D~ /\{\s*([\w\/\.\-]*)\s*\=3D\>\s*([\w\/\.\-]*)\s*\}/ && (defined($1) || defined($2)))) && !(($realfile ne '') && + defined($acpi_testexpected) && ($realfile eq $acpi_testexpected))) { $reported_maintainer_file =3D 1; WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\= n" . $herecurr); --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620814973; cv=none; d=zohomail.com; s=zohoarc; b=H7uuq4YKTKk6flZFTyONmcEj88khDHyFQcDEGRwqXJIVuzdXQxsEzfcXGp6q0tXox1CoVyBd4L402h3NjoZt9v5KaOwkujoFjLYeSv2Jwt/rG+Mn6M4kTJ5uwnpnKUHsmkB5KdGcZ/mI2ACK00DkcEK3JYjsSidnlUwF/5XXOd8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620814973; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TuKozATKQ3Td5Fp2Tf/kZG/QQ+gsJcItcXeBYs6um/I=; b=DGs3dQNt8ZVLNHIC/KC7Uz6CJEgU1c4Pb/KN5EtvS3TQukTZ0kOnENYQyePs2W4A4+dmNZY7xEpdN55+k5/3SSiucxoJYtEhw5mP+vSdHJCEYPJysCH3B5cF0H2hfpc+H8bnGjio6hnId5Bt1c3R1KF4DCzd+/uuXp57nFZZheE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162081497392181.51010436867261; Wed, 12 May 2021 03:22:53 -0700 (PDT) Received: from localhost ([::1]:41750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm0y-0005ei-O4 for importer@patchew.org; Wed, 12 May 2021 06:22:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglz9-0003AH-BN for qemu-devel@nongnu.org; Wed, 12 May 2021 06:20:59 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:50730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglz7-0003UX-Od for qemu-devel@nongnu.org; Wed, 12 May 2021 06:20:59 -0400 Received: by mail-wm1-x331.google.com with SMTP id n84so12680387wma.0 for ; Wed, 12 May 2021 03:20:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f1sm3350739wrr.63.2021.05.12.03.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4FB4A1FF8C; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TuKozATKQ3Td5Fp2Tf/kZG/QQ+gsJcItcXeBYs6um/I=; b=P8NWa9iW7iSICPcPLN8NbQKUvf/P6CJjrr8J9hvWxkWGzwmjPl9/shVssgGC7GUn5B PoByOPkDfEIIpZaItBcVHiKJMYSAdInP0vLZcQrzv9coRbsgAEbSwYxFN0/GES+YL1dS Dy28KoVu87eSsKX6NYikD5F0k7J01SC7PnLFuIX4FblrhcAFrLBGKOEZtPMAl3x7PdbH I0K7f/XneYl28jHtKXDGa1IZoTAPrqfD2MZWFLTNwHUq4RBGdl8swtF5knIb0/HK014c lGVPk1E2YhakSTy6+c9C3qj4nf/PFmTG0g1bYZ+t7dB5QME6NGotuV/7oxvd1OrQiE1M J/HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TuKozATKQ3Td5Fp2Tf/kZG/QQ+gsJcItcXeBYs6um/I=; b=Z0SO+BUIZQEOtW/26Eo7kLKOVCWDfoVMMdbkBNwuObSRLBb6eekqSWmEiBxen/CdPt 6+Ua3lOWXV/FzsaxLaju4Cq5dTwoQXBmM5zDvGqgEvvXly1GSVIyItDb5VNIRfmnsaTy KfFgIXRoUbINkjCJhvKAL6wsupfpogIK5RCCIFMRd2Z8ZO0Btm7qAJbi48MCgJlpNobM ib21B8LQwtlhgo7R8lI/gt2eSjASkEHO6p6+u3DwzM0hM4c56WKRT1C6KMmA9CeoW2dj jbF/UJ0rz3mbCl3gNJ0eccnJe9YHxtMrMJ6uCO4Vj0KfhbRJR+hIbZCo1FE2ZGode5i3 oxfg== X-Gm-Message-State: AOAM532urphXZ+fI8zvefP2ozaugZm+cLxKnoJFrAXuOIR5IqpVV30JN 7yoD8sRsbcg60bpW6mVR5TTDaA== X-Google-Smtp-Source: ABdhPJz+esCxnMqU69uZXMhN6UveMJOh2FGK9YR6+aYmJ2nCSFQKDfTRiMFN+9uopY5c839tVPtDlw== X-Received: by 2002:a1c:750b:: with SMTP id o11mr10791629wmc.188.1620814856275; Wed, 12 May 2021 03:20:56 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/31] tests/docker: fix copying of executable in "update" Date: Wed, 12 May 2021 11:20:22 +0100 Message-Id: <20210512102051.12134-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We have the same symlink chasing problem when doing an "update" operation. Fix that. Based-on: 5e33f7fead ("tests/docker: better handle symlinked libs") Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Willian Rampazzo --- tests/docker/docker.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index d28df4c140..0435a55d10 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -548,7 +548,14 @@ def run(self, args, argv): libs =3D _get_so_libs(args.executable) if libs: for l in libs: - tmp_tar.add(os.path.realpath(l), arcname=3Dl) + so_path =3D os.path.dirname(l) + name =3D os.path.basename(l) + real_l =3D os.path.realpath(l) + try: + tmp_tar.add(real_l, arcname=3D"%s/%s" % (so_path, name= )) + except FileNotFoundError: + print("Couldn't add %s/%s to archive" % (so_path, name= )) + pass =20 # Create a Docker buildfile df =3D StringIO() --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815232; cv=none; d=zohomail.com; s=zohoarc; b=Qf57qe0c49LnOIcWlL7oFSI/K4/4LyjfrKqe8hDgxPZWtzE7w1PEAQ5C6Cpwh+bCu+5V5iBm7BX8/lIpBNLyFzTW5EYjJ/NC8VpQ7i1cZ2Fg/OkKMoAaD0tk8wdl+Fs3mYHcmti8Npdq2+agi4gvN5BYFqgshvjFu3nEI9WvKjw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815232; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+W6vzYOHSyrjetzgB57V0E/SW7N0nADhYjK0hwWdl18=; b=N0M7rIVAaebMA9XfDRGVnNQ8OY5pLcAzRgsqhEyupFA1RVQqOhXVNEUl42NLDXFHpApXv4o+r5as9ym7DwtUeABNKGqEj6OZVrYbJl5VGBFG13iZUHllBABq/AIOFJ/lXfhwdBeNcDL2YXDDwaqI7gp9PltpP7XMSmanA+8qx8o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815232398375.86769650663314; Wed, 12 May 2021 03:27:12 -0700 (PDT) Received: from localhost ([::1]:50322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm59-00038m-Bo for importer@patchew.org; Wed, 12 May 2021 06:27:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzB-0003DT-6l for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:01 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:40888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglz8-0003VM-77 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:00 -0400 Received: by mail-wm1-x333.google.com with SMTP id y124-20020a1c32820000b029010c93864955so1111891wmy.5 for ; Wed, 12 May 2021 03:20:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z5sm953072wrn.69.2021.05.12.03.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:53 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6849C1FF8F; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+W6vzYOHSyrjetzgB57V0E/SW7N0nADhYjK0hwWdl18=; b=aQ+5Uk+RP9Lsj/h5jiNwXSsaLhsnSJuM0jsevcqTAmRf0VC6t2O95R7pvR8fchp45P p9flr9ZMDgQjp4v+3w8BnJLcaUopapdPq4/gUwR44eOG7ptmPWIctinj9ntTIHTKtik1 l0LgC2cUOraYEedxpy9bk29K4J72KleWm4RLW+fBkddJC6eyEkxAgxdxd5gRJSBzG2EK yLN9aPdYauPoEIfkT21aTdUJGmx0eBScNRXNcz8Ko3EtnFRX45pVOHsal4xABm5n3cx2 UvVe4o8Wtfop6hwXc6l8YuX7d6S5At5ddiZZd2UQOFJvggZW9w+G4R8cIWiv2DHePrBD 9tgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+W6vzYOHSyrjetzgB57V0E/SW7N0nADhYjK0hwWdl18=; b=sylhHKZ/i/qGNapf+a4henhJCudDdasuHzysV4A1rlycRqFHOOdvwbggtfYkcmC7IW bKAE+awNzDxm7W3YGZfEiSWR5Ljpe7OqVmy7DGKwA2I9z/6K7DqTlMdZgUFY2kYcQT39 4qL3XFzwS4JhMnOTuDYFsA2LikWvCUq0sx/svpMzX5JWGaFeo8uGMDVEKGLMnrL0BtZX EtLC2+a/KmnVdjGoNCTH+I3zC7Dx45TgWNWFbONsr7O8ZBAUKC0vrh7MDnv9rCG93LI1 capj1Zk9Z2kvnF4o1vJQbjiI1utQVmbYIdKRtjOHogsCo5Fj6M1d9lNxoz9SIFf4kcIa MYWg== X-Gm-Message-State: AOAM532ECrLeaF2+2XO0bYTlA08NuvJu9aLmutUf4QwW6+QHxT+vG40X 75IHHmJR9fRfpAAzmdQXCpfvEfRSKcHdtw== X-Google-Smtp-Source: ABdhPJz8+ZgbFhrQ5Q3oRwkWBZc9rWVrJ0ycaCgx42PWdcZv5J5xY3KaZZhrbQ6cGvXBuJ2IxtT5GA== X-Received: by 2002:a7b:c217:: with SMTP id x23mr10552406wmi.26.1620814856821; Wed, 12 May 2021 03:20:56 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 03/31] tests/docker: make executable an optional argument to "update" Date: Wed, 12 May 2021 11:20:23 +0100 Message-Id: <20210512102051.12134-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We're going to extend the abilities of the command shortly. Reviewed-by: Willian Rampazzo Signed-off-by: Alex Benn=C3=A9e --- v2 - fix indention issue --- tests/docker/Makefile.include | 2 +- tests/docker/docker.py | 56 ++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 28 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 9f464cb92c..820423d718 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -248,7 +248,7 @@ docker-run: docker-qemu-src $(if $(EXECUTABLE), \ $(call quiet-command, \ $(DOCKER_SCRIPT) update \ - $(IMAGE) $(EXECUTABLE), \ + $(IMAGE) --executable $(EXECUTABLE), \ " COPYING $(EXECUTABLE) to $(IMAGE)")) $(call quiet-command, \ $(DOCKER_SCRIPT) run \ diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 0435a55d10..9b3425fec2 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -523,7 +523,7 @@ class UpdateCommand(SubCommand): def args(self, parser): parser.add_argument("tag", help=3D"Image Tag") - parser.add_argument("executable", + parser.add_argument("--executable", help=3D"Executable to copy") =20 def run(self, args, argv): @@ -532,35 +532,37 @@ def run(self, args, argv): tmp =3D tempfile.NamedTemporaryFile(suffix=3D"dckr.tar.gz") tmp_tar =3D TarFile(fileobj=3Dtmp, mode=3D'w') =20 - # Add the executable to the tarball, using the current - # configured binfmt_misc path. If we don't get a path then we - # only need the support libraries copied - ff, enabled =3D _check_binfmt_misc(args.executable) - - if not enabled: - print("binfmt_misc not enabled, update disabled") - return 1 - - if ff: - tmp_tar.add(args.executable, arcname=3Dff) - - # Add any associated libraries - libs =3D _get_so_libs(args.executable) - if libs: - for l in libs: - so_path =3D os.path.dirname(l) - name =3D os.path.basename(l) - real_l =3D os.path.realpath(l) - try: - tmp_tar.add(real_l, arcname=3D"%s/%s" % (so_path, name= )) - except FileNotFoundError: - print("Couldn't add %s/%s to archive" % (so_path, name= )) - pass - # Create a Docker buildfile df =3D StringIO() df.write(u"FROM %s\n" % args.tag) - df.write(u"ADD . /\n") + + if args.executable: + # Add the executable to the tarball, using the current + # configured binfmt_misc path. If we don't get a path then we + # only need the support libraries copied + ff, enabled =3D _check_binfmt_misc(args.executable) + + if not enabled: + print("binfmt_misc not enabled, update disabled") + return 1 + + if ff: + tmp_tar.add(args.executable, arcname=3Dff) + + # Add any associated libraries + libs =3D _get_so_libs(args.executable) + if libs: + for l in libs: + so_path =3D os.path.dirname(l) + name =3D os.path.basename(l) + real_l =3D os.path.realpath(l) + try: + tmp_tar.add(real_l, arcname=3D"%s/%s" % (so_path, = name)) + except FileNotFoundError: + print("Couldn't add %s/%s to archive" % (so_path, = name)) + pass + + df.write(u"ADD . /\n") =20 df_bytes =3D BytesIO(bytes(df.getvalue(), "UTF-8")) =20 --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620814979; cv=none; d=zohomail.com; s=zohoarc; b=PtiYSiHFyJMq6WVkUnV80FRKN2r0WhKbyZ8NQsqEK3DYD6YrxG3BRDRSZ8qGZKC+ptHjGknkJVLGpyGIocvDLYvnW8N3g0RtMmhMejSUJp164YCiWkq5ewQBEGGTaaxR8LAKdbi6GLLPHMhhUn7jw6sa7k4oRoatPDLvjJx7Wkw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620814979; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=itDJZjFFgEhRSTkYYv8ljT67JkqTdrMRXTGjjJSCeDY=; b=kvEBCerWY7wmCHv65FsoOp9RgyrdXIvkt3b9i79lOFElxtejJqXN84RVK3Y9CYwAIm4M7R7TkyaYEJ0wqXLMShMOeuOIDQt8gPGPXdcFQHoNgSnK/s7OBhBGZMzYjzAvyY3fsgCgJELI9L3MsrZxrukBf/V6ffecBQmU1v62M70= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620814979423558.7773783003865; Wed, 12 May 2021 03:22:59 -0700 (PDT) Received: from localhost ([::1]:42346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm14-00063n-8m for importer@patchew.org; Wed, 12 May 2021 06:22:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzC-0003HH-O7 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:02 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:42752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzA-0003Yg-K8 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:02 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 4-20020a05600c26c4b0290146e1feccd8so2757058wmv.1 for ; Wed, 12 May 2021 03:21:00 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s7sm5659562wmh.35.2021.05.12.03.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7D98A1FF90; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=itDJZjFFgEhRSTkYYv8ljT67JkqTdrMRXTGjjJSCeDY=; b=FvRdj5OiLxfzxL5ZlmpkLUyY3w7NNegSF+WNrcflIt0m0cz2BKNfWQIYMFuGQGP1po CnICvdpnFpuRQwnGA1Po5iqSBCVEOVfPBGuZyG/82CnIC3Qf30+vccrJ5doutHH8meYJ rMIgYksvXJN1GTMCXW0zgdMwGnx3hyQ+Cwe7J/m1QRzN9qgCSMBAwFRBOMDPdtAqAYtS Sxk2Q4sxO7OrAhUd23suSetfrAfA7FJfeT9sCV33RhjB6n5K+3ELzHciyyhd+VZWHFt4 SIqj9PcTPlCFyeOL0vaW4sOGvyz7NGsTKu6y45IqUj8IvzTGx8tJ1zbFmWxM2LIAjKBp SWYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=itDJZjFFgEhRSTkYYv8ljT67JkqTdrMRXTGjjJSCeDY=; b=BlIF91gCIBjb36SVuAHCUVxZLhMNZkuuLftelatIbX62MEqoOwBdYD36G+1K4QVn62 AlHrHx7nZfFEzN7fCtUaH0RNrWl+gUr7/QS48+MN82WJzSFxEluYKXsvos6iutWZ6q4T 3Ez8zKTDdl0Km5MXl6OLDl3vEqi9ZtC9nY2+3vwUSlKVGSiFn6k50FwmYfnYbNsozHsL pzThZArEJeuZvyJZcVshOfKP3fXw3ZqgP152jMVI7VvVkZgIdNZOwHh5x+CZIJgPcRyT SP9+u6sDB7A6IS7NkRuYJ0V02qzeo+X8dtIl0zfEWELTzod7fOEXGv0zEGw9EtWjDyXc 54ew== X-Gm-Message-State: AOAM5305pG7YoML631kuzwE6pH4aLTRz9q9hk+9QcvAXLyco/FkUb2ua 2LfmVA8ngh3QzceR6mRK5C9kCQ== X-Google-Smtp-Source: ABdhPJy1U5wIcdtGyh9Z8bvUudQnJb9T5q0OEFc32uRj0AhYFrvDjwJG3GMhS/2T2fyHnESJeJXmog== X-Received: by 2002:a7b:cd98:: with SMTP id y24mr11014321wmj.4.1620814859211; Wed, 12 May 2021 03:20:59 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 04/31] tests/docker: allow "update" to add the current user Date: Wed, 12 May 2021 11:20:24 +0100 Message-Id: <20210512102051.12134-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The current user functionality is used for cross compiling to avoid complications with permissions when building test programs. However for images that come from the registry we still need the ability to add the user after the fact. Reviewed-by: Willian Rampazzo Signed-off-by: Alex Benn=C3=A9e --- tests/docker/docker.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 9b3425fec2..7a14058801 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -517,7 +517,7 @@ def run(self, args, argv): =20 =20 class UpdateCommand(SubCommand): - """ Update a docker image with new executables. Args: """ + """ Update a docker image. Args: """ name =3D "update" =20 def args(self, parser): @@ -525,6 +525,9 @@ def args(self, parser): help=3D"Image Tag") parser.add_argument("--executable", help=3D"Executable to copy") + parser.add_argument("--add-current-user", "-u", dest=3D"user", + action=3D"store_true", + help=3D"Add the current user to image's passwd= ") =20 def run(self, args, argv): # Create a temporary tarball with our whole build context and @@ -564,6 +567,13 @@ def run(self, args, argv): =20 df.write(u"ADD . /\n") =20 + if args.user: + uid =3D os.getuid() + uname =3D getpwuid(uid).pw_name + df.write("\n") + df.write("RUN id %s 2>/dev/null || useradd -u %d -U %s" % + (uname, uid, uname)) + df_bytes =3D BytesIO(bytes(df.getvalue(), "UTF-8")) =20 df_tar =3D TarInfo(name=3D"Dockerfile") --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815237; cv=none; d=zohomail.com; s=zohoarc; b=VFvqXJc7dGkoy4rxOgO+WH05TWnIigl1Lhp7SIJB9Xi/ArG6DL4K1OylAKXCIZ2umuraYSKSYTkv/vy+KbClGT+uPzO5+mYcv3kgQa9jA+oJQ1rsoNkEk5ob58Fm+KgIzYYel4LPZiTg83CuSooZtVPfHOB+SRmp3gPEfPuAbJE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815237; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=89FGk/7QSTLsW61jmi4iC132gql+p7Aet7f7N9abrBY=; b=JCgRe2GqCczEl/xyJX52yhhicpCP7RAeeRK9xqW5QGiM5VykkmCM3rpXCqQhDaHbddojKFGnpcVWqmpXXjkCJEiZ35HdiBo/QRzGp4ZPM5EMNK44cuZRQXl8bqUxAC14AiLSgrJPhdZKNg1s/iUdBVXpNn8oc4k4RqddbK9N8LY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815237651137.3695500124104; Wed, 12 May 2021 03:27:17 -0700 (PDT) Received: from localhost ([::1]:50892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm5E-0003VY-FX for importer@patchew.org; Wed, 12 May 2021 06:27:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzD-0003IU-7j for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:03 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:38668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzB-0003ZX-EQ for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:02 -0400 Received: by mail-wr1-x432.google.com with SMTP id l14so23047789wrx.5 for ; Wed, 12 May 2021 03:21:00 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id h14sm34573244wrq.45.2021.05.12.03.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 95E4C1FF91; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=89FGk/7QSTLsW61jmi4iC132gql+p7Aet7f7N9abrBY=; b=SLxx1raCEuxOAhZ10P6ubKoM1pDlkluS3zc04Ord3kKEnR+Xpg0lU+lHZMDp2RBCUt xNuAK1AZoOerSv8lYbxAwflKfv78CxCqo/jVFFR40WMINDmxW9hUEAuqEaur1eF/9rvA mhfzYcGQv9jvgzz6A9/k/dPUPSRU2gYvMN57B3h0rrjSFRsfDzaDNf0Vnni2UMuf2G5c /+TgVtdVj2wSOIE/AjHPUNk0V9Z8YmcVVOsMda2AXksWb7ONCMsU5yMvhfmn+h7Bfqur rshwGu5GncD7gdGaxT8gEJxNswMvAGYcTKJk6hX5oXKTO98THNvUxQi0cy+rbKpKvId0 FXlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=89FGk/7QSTLsW61jmi4iC132gql+p7Aet7f7N9abrBY=; b=Nyc3oZe3GidjYzoR9qCkciCdxC41mUw72L3h1/cyKn9xRxv/l3+vDa1zZHm+8UIig6 D8vsek8jCEahts2RbhGFMfj0uRCsl2TQTOGpk+nGLWjpLVbzkqrkf7SHJfeut0H78VUv NBUHo6OG9HO06ArN5oais4C4i0xwErndMNb/lIZtJHkhM77ZLmxAAlmvSdsifz2hMspc SV1SE7gzzNHt7aScxRTZHXgno2UJ4J1nCwC6msrIjDL8rXErSPI/Vjj45QIl9Mh4O8lu HklC9eJlGahUwzA0xkT8yrG2DbeL3xF8/iTN+Yy2neTPhrVfsej1jIHKmL+dNAnxAO4X k+/w== X-Gm-Message-State: AOAM532t3Nf3RFf5YsO9F364YL6EFF/knLYllZKvVSuG6JYlCW4xuLW2 hiLG5NyyAwf7lyJj67l1GaC4AA== X-Google-Smtp-Source: ABdhPJzfmJbLU4lj/DtffJE3CFGaN+Qragd5PxYeLHdYkpB5cqEL1aymaf01RVEkFA2wYSdq/kB3Qg== X-Received: by 2002:adf:f508:: with SMTP id q8mr44711320wro.109.1620814860117; Wed, 12 May 2021 03:21:00 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 05/31] tests/docker: add "fetch" sub-command Date: Wed, 12 May 2021 11:20:25 +0100 Message-Id: <20210512102051.12134-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This simply wraps up fetching a build from the registry and tagging it as the local build. Reviewed-by: Willian Rampazzo Signed-off-by: Alex Benn=C3=A9e --- tests/docker/docker.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 7a14058801..4d9bb7c7ed 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -515,6 +515,23 @@ def run(self, args, argv): =20 return 0 =20 +class FetchCommand(SubCommand): + """ Fetch a docker image from the registry. Args: """ + name =3D "fetch" + + def args(self, parser): + parser.add_argument("tag", + help=3D"Local tag for image") + parser.add_argument("registry", + help=3D"Docker registry") + + def run(self, args, argv): + dkr =3D Docker() + dkr.command(cmd=3D"pull", quiet=3Dargs.quiet, + argv=3D["%s/%s" % (args.registry, args.tag)]) + dkr.command(cmd=3D"tag", quiet=3Dargs.quiet, + argv=3D["%s/%s" % (args.registry, args.tag), args.tag]) + =20 class UpdateCommand(SubCommand): """ Update a docker image. Args: """ --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815687; cv=none; d=zohomail.com; s=zohoarc; b=C/IChGcQJbiO4rbfru7P2NnvhUJma91seMdcqDyxb1+cEkJAxSgDINX0uzj01B6wEWPo7coTC23PgP8O4ms0GoAni0aFIxWrgFmOG2UpGchDcY0VG6mX81cVqYM4AECPuPX4GxfNznT+NyVuMCepukJiZsWdlkGFltVEoBBQ818= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815687; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/MZdCQtxOS4WMjTXBL9ALIJU8/OPORnd/uYgF4h3xGc=; b=IOS/bqQMxKs+E7sbCv/GLkAhvHsXn0irsThdU5JUT/LAmn5UbwfFJVlUPK2vdtHBTkTIIe/3ZimmCO5pZrCGKOQJz/lOVXyL9y+J4ng9uncT7jof7pGmSvMnL2zvaCfTSH3Vw43Bi3YDWQbG3aTzbdDBh8JXLLCvVyXk3OZjaAk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815687179448.78625573757233; Wed, 12 May 2021 03:34:47 -0700 (PDT) Received: from localhost ([::1]:39026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmCT-0006Zd-UX for importer@patchew.org; Wed, 12 May 2021 06:34:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzI-0003Z1-Ge for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:08 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:41926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzF-0003f8-Tg for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:08 -0400 Received: by mail-wr1-x42f.google.com with SMTP id d11so23035970wrw.8 for ; Wed, 12 May 2021 03:21:05 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c15sm14931122wrd.49.2021.05.12.03.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B23B71FF92; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/MZdCQtxOS4WMjTXBL9ALIJU8/OPORnd/uYgF4h3xGc=; b=X/6Sk1SvaMtkjQRD9QBWRy5AdbxYD/Ksjq1qLZOSJ/MAaKFf4jiuUWv4xiRdOFi6oJ 1i33aoNgTurr4lePD5oIN1oZjhfryKIWfhPLqDCJSymHcT9z0Yctu1tL0G0l+SSeDkhF N74iq3QFkOS/vD0d90TNO6hbuf7APt0MZkZPf6WjwI3aBJSHWh8o5SIuFLMTluVGdYrz NKFSGlJoMT+Ms6DIWIT6R3w868RFr7W9adfkYXeddgY3SMD8PMMG0RhomjP/IQvz1q91 8Ov/jn6kA/kkDjTVK5r27AFM3oR3XakWAlj9J5LX+TH/TReKWN3GI/PlamqWCJd3r60D okYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/MZdCQtxOS4WMjTXBL9ALIJU8/OPORnd/uYgF4h3xGc=; b=g9edZgJaCU9aGFZNRToTg6SSO20YG0lawEd5NQp2BKKWY38FYj22AFafBSFZ1aC6pD 8jIrUMDP8qR+dhLM+MBguHqvRdbdJRVu/8qAzdOCz0I/YFiDiqcxW9iwcRgmo6gDCcC1 I2vKMSwYt1cmuOBpvyN4X/5i71yjmrwoz5TuLKjQfpbU6oNYEPB/4mWfgRFWWOuRe1GX nKkcweUgeEoDNYUIWM9QMPCXhsCiqnztvJOp5LgwxgGU+5oDrzgJ1fM899kymk9QLN8c BD9l1J3y5ywaBlPogONK8QOvSedPpmGbs0HSJwwuvMdxwLk/JuvkA+pAsyLFGVAtuv4Q nONQ== X-Gm-Message-State: AOAM531J2w6C9/qIH+ZIbr3DLLRWRnFy5CxfvhbKMQV11vmRSh66xodc r9LXrvxgxOIIbh6+wHemVOO3Fg== X-Google-Smtp-Source: ABdhPJxryeZgquNRuHTqPJWviFdRYQWTCNsIqrO0q+D8fI4dUOkaK7HNYqV2nv93VNRoh6BSTMYF/A== X-Received: by 2002:a5d:4304:: with SMTP id h4mr44658971wrq.210.1620814864487; Wed, 12 May 2021 03:21:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 06/31] docker: Add Hexagon image Date: Wed, 12 May 2021 11:20:26 +0100 Message-Id: <20210512102051.12134-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Alessandro Di Federico , Thomas Huth , berrange@redhat.com, Brian Cain , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Alessandro Di Federico This image is a little special because it takes a long time to build. As such most users don't want to be doing that and just pull random binaries from the ether as intended by the container gods. This involves someone with credentials and a beefy machine running: make docker-image-debian-hexagon-cross V=3D1 NOCACHE=3D1 J=3D30 docker tag qemu/debian-hexagon-cross registry.gitlab.com/qemu-project/qem= u/qemu/debian-hexagon-cross docker push registry.gitlab.com/qemu-project/qemu/qemu/debian-hexagon-cro= ss With a suitable binary in the "cloud" a normal user will run: make docker-image-debian-hexagon-cross or have it run for them through the dependency mechanism of our over-engineered makefiles and get the binary they wanted. There are a few wrinkles of course including needing to tweak the final image to have the credentials of the user so we can actually do our cross compiles. Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Willian Rampazzo Signed-off-by: Alex Benn=C3=A9e Cc: Alessandro Di Federico Cc: Philippe Mathieu-Daud=C3=A9 Cc: Brian Cain --- vAJB: - dropped all r-b/sob due to rewrite - split into a multi-stage dockerfile - make dockerfile standalone - play fugly make games v2 - update LLVM version per BN7PR02MB4194DF5752EF3BADE858018DB8799@BN7PR02M= B4194.namprd02.prod.outlook.com v3 - add ninja to the spec (in stage 2) --- MAINTAINERS | 2 + tests/docker/Makefile.include | 22 +++ .../dockerfiles/debian-hexagon-cross.docker | 45 ++++++ .../build-toolchain.sh | 141 ++++++++++++++++++ 4 files changed, 210 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-hexagon-cross.docker create mode 100755 tests/docker/dockerfiles/debian-hexagon-cross.docker.d/= build-toolchain.sh diff --git a/MAINTAINERS b/MAINTAINERS index 06642d9799..30f1e7d4e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -197,6 +197,8 @@ F: linux-user/hexagon/ F: tests/tcg/hexagon/ F: disas/hexagon.c F: default-configs/targets/hexagon-linux-user.mak +F: docker/dockerfiles/debian-hexagon-cross.docker +F: docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh =20 HPPA (PA-RISC) TCG CPUs M: Richard Henderson diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 820423d718..8967ecf118 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -148,6 +148,28 @@ docker-image-debian-s390x-cross: docker-image-debian10 docker-image-debian-sh4-cross: docker-image-debian10 docker-image-debian-sparc64-cross: docker-image-debian10 =20 +# +# The build rule for hexagon-cross is special in so far for most of +# the time we don't want to build it. While dockers caching does avoid +# this most of the time sometimes we want to force the issue. +# +docker-image-debian-hexagon-cross: $(DOCKER_FILES_DIR)/debian-hexagon-cros= s.docker + $(if $(NOCACHE), \ + $(call quiet-command, \ + $(DOCKER_SCRIPT) build -t qemu/debian-hexagon-cross -f $< \ + $(if $V,,--quiet) --no-cache \ + --registry $(DOCKER_REGISTRY) --extra-files \ + $(DOCKER_FILES_DIR)/debian-hexagon-cross.docker.d/build-toolchain.sh, \ + "BUILD", "debian-hexagon-cross"), \ + $(call quiet-command, \ + $(DOCKER_SCRIPT) fetch $(if $V,,--quiet) \ + qemu/debian-hexagon-cross $(DOCKER_REGISTRY), \ + "FETCH", "debian-hexagon-cross") \ + $(call quiet-command, \ + $(DOCKER_SCRIPT) update $(if $V,,--quiet) \ + qemu/debian-hexagon-cross --add-current-user, \ + "PREPARE", "debian-hexagon-cross")) + # Specialist build images, sometimes very limited tools docker-image-debian-tricore-cross: docker-image-debian10 docker-image-debian-all-test-cross: docker-image-debian10 diff --git a/tests/docker/dockerfiles/debian-hexagon-cross.docker b/tests/d= ocker/dockerfiles/debian-hexagon-cross.docker new file mode 100644 index 0000000000..d5dc299dc1 --- /dev/null +++ b/tests/docker/dockerfiles/debian-hexagon-cross.docker @@ -0,0 +1,45 @@ +# +# Docker Hexagon cross-compiler target +# +# This docker target is used for building hexagon tests. As it also +# needs to be able to build QEMU itself in CI we include it's +# build-deps. It is also a "stand-alone" image so as not to be +# triggered by re-builds on other base images given it takes a long +# time to build. +# +FROM qemu/debian10 + +# Install common build utilities +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + bison \ + cmake \ + flex \ + lld \ + rsync \ + wget + +ENV TOOLCHAIN_INSTALL /usr/local +ENV ROOTFS /usr/local + +ENV LLVM_URL https://github.com/llvm/llvm-project/archive/bfcd21876adc3498= 065e4da92799f613e730d475.tar.gz +ENV MUSL_URL https://github.com/quic/musl/archive/aff74b395fbf59cd7e93b369= 1905aa1af6c0778c.tar.gz +ENV LINUX_URL https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.18.ta= r.xz + +ADD build-toolchain.sh /root/hexagon-toolchain/build-toolchain.sh + +RUN cd /root/hexagon-toolchain && ./build-toolchain.sh + +FROM debian:buster-slim +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sourc= es.list +# Install QEMU build deps for use in CI +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata apt install -yy git ninja-b= uild && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt build-dep -yy --arch-only qemu +COPY --from=3D0 /usr/local /usr/local +ENV PATH $PATH:/usr/local/bin/ diff --git a/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-t= oolchain.sh b/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-= toolchain.sh new file mode 100755 index 0000000000..19b1c9f83e --- /dev/null +++ b/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchai= n.sh @@ -0,0 +1,141 @@ +#!/bin/bash + +set -e + +BASE=3D$(readlink -f ${PWD}) + +TOOLCHAIN_INSTALL=3D$(readlink -f "$TOOLCHAIN_INSTALL") +ROOTFS=3D$(readlink -f "$ROOTFS") + +TOOLCHAIN_BIN=3D${TOOLCHAIN_INSTALL}/bin +HEX_SYSROOT=3D${TOOLCHAIN_INSTALL}/hexagon-unknown-linux-musl +HEX_TOOLS_TARGET_BASE=3D${HEX_SYSROOT}/usr + +function cdp() { + DIR=3D"$1" + mkdir -p "$DIR" + cd "$DIR" +} + +function fetch() { + DIR=3D"$1" + URL=3D"$2" + TEMP=3D"$(readlink -f "$PWD/tmp.tar.gz")" + wget --quiet "$URL" -O "$TEMP" + cdp "$DIR" + tar xaf "$TEMP" --strip-components=3D1 + rm "$TEMP" + cd - +} + +build_llvm_clang() { + fetch "$BASE/llvm-project" "$LLVM_URL" + cdp "$BASE/build-llvm" + + cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=3DRelease \ + -DCMAKE_INSTALL_PREFIX=3D${TOOLCHAIN_INSTALL} \ + -DLLVM_ENABLE_LLD=3DON \ + -DLLVM_TARGETS_TO_BUILD=3D"Hexagon" \ + -DLLVM_ENABLE_PROJECTS=3D"clang;lld" \ + "$BASE/llvm-project/llvm" + ninja all install + cd ${TOOLCHAIN_BIN} + ln -sf clang hexagon-unknown-linux-musl-clang + ln -sf clang++ hexagon-unknown-linux-musl-clang++ + ln -sf llvm-ar hexagon-unknown-linux-musl-ar + ln -sf llvm-objdump hexagon-unknown-linux-musl-objdump + ln -sf llvm-objcopy hexagon-unknown-linux-musl-objcopy + ln -sf llvm-readelf hexagon-unknown-linux-musl-readelf + ln -sf llvm-ranlib hexagon-unknown-linux-musl-ranlib + + # workaround for now: + cat < hexagon-unknown-linux-musl.cfg +-G0 --sysroot=3D${HEX_SYSROOT} +EOF +} + +build_clang_rt() { + cdp "$BASE/build-clang_rt" + cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=3DRelease \ + -DLLVM_CONFIG_PATH=3D"$BASE/build-llvm/bin/llvm-config" \ + -DCMAKE_ASM_FLAGS=3D"-G0 -mlong-calls -fno-pic --target=3Dhexagon-unkn= own-linux-musl " \ + -DCMAKE_SYSTEM_NAME=3DLinux \ + -DCMAKE_C_COMPILER=3D"${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clan= g" \ + -DCMAKE_ASM_COMPILER=3D"${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-cl= ang" \ + -DCMAKE_INSTALL_PREFIX=3D${HEX_TOOLS_TARGET_BASE} \ + -DCMAKE_CROSSCOMPILING=3DON \ + -DCMAKE_C_COMPILER_FORCED=3DON \ + -DCMAKE_CXX_COMPILER_FORCED=3DON \ + -DCOMPILER_RT_BUILD_BUILTINS=3DON \ + -DCOMPILER_RT_BUILTINS_ENABLE_PIC=3DOFF \ + -DCMAKE_SIZEOF_VOID_P=3D4 \ + -DCOMPILER_RT_OS_DIR=3D \ + -DCAN_TARGET_hexagon=3D1 \ + -DCAN_TARGET_x86_64=3D0 \ + -DCOMPILER_RT_SUPPORTED_ARCH=3Dhexagon \ + -DLLVM_ENABLE_PROJECTS=3D"compiler-rt" \ + "$BASE/llvm-project/compiler-rt" + ninja install-compiler-rt +} + +build_musl_headers() { + fetch "$BASE/musl" "$MUSL_URL" + cd "$BASE/musl" + make clean + CC=3D${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang \ + CROSS_COMPILE=3Dhexagon-unknown-linux-musl \ + LIBCC=3D${HEX_TOOLS_TARGET_BASE}/lib/libclang_rt.builtins-hexagon.a \ + CROSS_CFLAGS=3D"-G0 -O0 -mv65 -fno-builtin -fno-rounding-math --target= =3Dhexagon-unknown-linux-musl" \ + ./configure --target=3Dhexagon --prefix=3D${HEX_TOOLS_TARGET_BASE} + PATH=3D${TOOLCHAIN_BIN}:$PATH make CROSS_COMPILE=3D install-headers + + cd ${HEX_SYSROOT}/.. + ln -sf hexagon-unknown-linux-musl hexagon +} + +build_kernel_headers() { + fetch "$BASE/linux" "$LINUX_URL" + mkdir -p "$BASE/build-linux" + cd "$BASE/linux" + make O=3D../build-linux ARCH=3Dhexagon \ + KBUILD_CFLAGS_KERNEL=3D"-mlong-calls" \ + CC=3D${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang \ + LD=3D${TOOLCHAIN_BIN}/ld.lld \ + KBUILD_VERBOSE=3D1 comet_defconfig + make mrproper + + cd "$BASE/build-linux" + make \ + ARCH=3Dhexagon \ + CC=3D${TOOLCHAIN_BIN}/clang \ + INSTALL_HDR_PATH=3D${HEX_TOOLS_TARGET_BASE} \ + V=3D1 \ + headers_install +} + +build_musl() { + cd "$BASE/musl" + make clean + CROSS_COMPILE=3Dhexagon-unknown-linux-musl- \ + AR=3Dllvm-ar \ + RANLIB=3Dllvm-ranlib \ + STRIP=3Dllvm-strip \ + CC=3Dclang \ + LIBCC=3D${HEX_TOOLS_TARGET_BASE}/lib/libclang_rt.builtins-hexagon.a \ + CFLAGS=3D"-G0 -O0 -mv65 -fno-builtin -fno-rounding-math --target=3Dhex= agon-unknown-linux-musl" \ + ./configure --target=3Dhexagon --prefix=3D${HEX_TOOLS_TARGET_BASE} + PATH=3D${TOOLCHAIN_BIN}/:$PATH make CROSS_COMPILE=3D install + cd ${HEX_TOOLS_TARGET_BASE}/lib + ln -sf libc.so ld-musl-hexagon.so + ln -sf ld-musl-hexagon.so ld-musl-hexagon.so.1 + cdp ${HEX_TOOLS_TARGET_BASE}/../lib + ln -sf ../usr/lib/ld-musl-hexagon.so.1 +} + +build_llvm_clang +build_kernel_headers +build_musl_headers +build_clang_rt +build_musl --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815598; cv=none; d=zohomail.com; s=zohoarc; b=f0g43cUS88ZzU5yqK5PVO5dZmrp/SvBd8n9zCoxk+ZI08cdrDx6Q95yTtcQIWPUgcuT06kQpv+oepiy+wKATlPbNy/IcnIUHfgJnAYfm2xcZrt41683cTd6FqDtfrvcEZ4B4gkd7fgD3u1HZjbkbnVXO1cPSrR0fxkCfWjaSRa0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815598; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OWsxh1O/PCMLIPJdNYGt0wcTu1m8kvjY7RzHMHd8hQY=; b=kOZm6bHmMhcjmmfNalNMmNPisW44Onh5BOV7ynbHsutpCnRymbpGwX1yepyFGGCWAU4P5x75W8A7aNjiYH3JHdK+WshgnhdgC8iDZe/4xTINdMF25WSs1Kk84ZIyYXgLQBf7CkXwWwdVu5iLYk5AfhwV5456J6BXf3Hm3spvQAY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815598042604.4196039201088; Wed, 12 May 2021 03:33:18 -0700 (PDT) Received: from localhost ([::1]:34152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmB2-0003Ad-Cn for importer@patchew.org; Wed, 12 May 2021 06:33:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzF-0003Pc-N5 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:05 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:33715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzE-0003dR-0n for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:05 -0400 Received: by mail-wm1-x331.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso1025569wmh.0 for ; Wed, 12 May 2021 03:21:03 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id h13sm27104671wml.26.2021.05.12.03.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C863D1FF93; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OWsxh1O/PCMLIPJdNYGt0wcTu1m8kvjY7RzHMHd8hQY=; b=ze9RBQMOY69S4ZuGC5QfUk0RhKt/4D/dIfRpvhHqEwuLICDu+KJa4n3jnXbNGwBhxU uBYpoB1O0y1yQe4xh/1kgK56loO2XFEGMe3VUzEqcailKwwzINcQ7v49hCh+SuFhxSpt MSbcNyqeGuCMwcj6yhfAJbiQgvcHUFXu1Yy/gU0hB7TadMIdvwEpGN++r/8pFVf4HrD2 6qbCjqGI5+jcgWfYlGNFunMTJoM4riGpohqCGBVQoPaEYDYQYZREuLGgT4v2qloSArpZ H6z/Mv7CuyA5vYoAIRmijsFZa3OZUymCs9qhuDC8fsDIknMrI4tH04DtzlhT2xASjhIh MUcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OWsxh1O/PCMLIPJdNYGt0wcTu1m8kvjY7RzHMHd8hQY=; b=j2CQwuQ2n1kIRz6LTSkdwyXdp9oDjphdfvqeEOdxidehnIRTgf0YBbJVliqAFjgK22 Dd/kauZMMxL8h6oYYrnPruxC+oNqCaQFwOhVpp+JZd50vNtdFEshahJxME0cpfT0eddC 8ejHYnJ/rqoumwtbOijdRHvdfGNqhE9KOAjeU8o+eMEiEnqigr20LnvnRcXaa53F9hTL JIdrqwnex+brQzCTmHJEJ7Zyrs803ofl1FLuHoEXVGq4dd4dvSVzPmSF121FrmX1T1Xn jxeopf3yCnNbzS5xP7OAvdMxz4nl9RiTOYcsm4oxZ29FmSvC6wBEubpnFVSl3qbu6OaJ DUhQ== X-Gm-Message-State: AOAM5313VrqqQQl61q7JiPw8SSx/Lulpq3sjgVV+pSDh7HTyX+TdiaBz tH0BucJvUly/SNR6WmY0o+9sFA== X-Google-Smtp-Source: ABdhPJxXAEiSvQ6+mxo6h3U38jXAN419BmL/rjVnVRHQZSyFHhq5heeMjm/YbPXYfyXHLusWMxHEaA== X-Received: by 2002:a1c:4e06:: with SMTP id g6mr37666582wmh.30.1620814862632; Wed, 12 May 2021 03:21:02 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 07/31] tests/tcg: Use Hexagon Docker image Date: Wed, 12 May 2021 11:20:27 +0100 Message-Id: <20210512102051.12134-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Alessandro Di Federico , berrange@redhat.com, f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Alessandro Di Federico [PMD: Split from 'Add Hexagon Docker image' patch] Signed-off-by: Alessandro Di Federico Signed-off-by: Philippe Mathieu-Daud=C3=A9 [AJB: add container_hosts] Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210228222314.304787-5-f4bug@amsat.org> Message-Id: <20210305092328.31792-6-alex.bennee@linaro.org> --- tests/tcg/configure.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index fa1a4261a4..24cc847688 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -128,6 +128,11 @@ for target in $target_list; do container_image=3Dfedora-cris-cross container_cross_cc=3Dcris-linux-gnu-gcc ;; + hexagon-*) + container_hosts=3Dx86_64 + container_image=3Ddebian-hexagon-cross + container_cross_cc=3Dhexagon-unknown-linux-musl-clang + ;; hppa-*) container_hosts=3Dx86_64 container_image=3Ddebian-hppa-cross --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815522; cv=none; d=zohomail.com; s=zohoarc; b=nvULBlZC0dAEem3AYythNs/eJNK85qJZwsV0xXL6K1RGdBGtN9ocCAmfqWJFvsDryNaAaNMud42mslHZnEe3NBHFZBiqZhooG09mryHOcaRRDoJ2RV7LUTrn4EdRJgsyS4ma7r267WbP51N6g+tD4V1+epR916xjRERGHbBpueY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815522; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7CQ/6kaWzCVdnPOK3LKkrtiffwfVdv2ArDXooaU7BUU=; b=Ffzf9wRFAcbVafXRr4omvHIEbwWt+5RUnX7D8YoO1JISTOSQvImuaW5TlCNm9fFX1eCbQWGWFHY2zuNb7KS/ivZnCGKFOpI0TI4BcSr3iAhT/vVSO4wD4Q7r3p2cozyhwEDzAkM9C+WMMAxHbolVFT3Me34ECE2oVgTA5jfcjhA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16208155222481019.6083044011624; Wed, 12 May 2021 03:32:02 -0700 (PDT) Received: from localhost ([::1]:58882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm9p-0000b1-6G for importer@patchew.org; Wed, 12 May 2021 06:32:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzE-0003N5-Sv for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:04 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:36533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzD-0003co-7r for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:04 -0400 Received: by mail-wr1-x433.google.com with SMTP id m9so23058990wrx.3 for ; Wed, 12 May 2021 03:21:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w22sm5394957wmc.13.2021.05.12.03.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E11841FF96; Wed, 12 May 2021 11:20:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7CQ/6kaWzCVdnPOK3LKkrtiffwfVdv2ArDXooaU7BUU=; b=QrJw/wShCkY0h46YkkVeNQ5HovIuaVxZwYmBjr0fmL3jUH3Za6rnw8c5kLOD1pfYCq HHcZ1almp2cygzHWTxVa65ftVedFNLQe3uxd7EtUY0Pn1S0bDD0yMc9d173eJpTSmVUq wA2kgQFUUNr3xno6Pxw3GlWIwnZjoB5ZC4YjvJkhBU0hQD3+B+JnenYDbuLCsponR8zc uK4Kdy/TBGQUzHyV9p87/i5YP1y4BkHRMp5riyjKI3tM1QP3o8mgLRZMouF6be3a48BL ZoHNKmIA/lPy8Yg9UfnZDWAA88u7J16uVPTbWskFhhTL9+YzyAoCcAyyRb+8vruIcwvo PAZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7CQ/6kaWzCVdnPOK3LKkrtiffwfVdv2ArDXooaU7BUU=; b=PABPY+zzbUE66b6ad14Esg+fvokTPZefN7uSS36J5ncAz4cqa0nNnLV32GXF7IspTo N4bDYQcgIqgjxuqNq7Wq4DHLXP/kE3Pb/LsHpQbTXK+vru+7gWt/qliDOEsbG4o5oX3b yzKcm6aqgzraVQcFyWkkLCj7p5EupyDWQmfyMNB6QgdFjWGB0Sjll19djcSrHJGSLyUg 68obcmSoPVPJgbG2xaClWBNoHcAedxjED4wVShhYSEtNE2FJAZ/QfCQDmKL0UOqTNLbd jI1Gf1AVyaG/SoIsCHNauXtJWkuI8TxNVGdMY1pVf65vSCXebzSTkmOqARwiiqO7UmEZ 27ow== X-Gm-Message-State: AOAM533HsviTJQT4o8tPA94cH+gAZFJ2XO35bRVARwfeb2+iJNzE4/Uk BdRtRhj1MpnmF1khr+1WGgvbaA== X-Google-Smtp-Source: ABdhPJwoHg3P9QRnxRHvZvtfqnwFLQ1LPKY/LyZTJwmsxPeczbVidEWBeE1lNwVQKUGnA36Cd9ZAqQ== X-Received: by 2002:adf:e8c3:: with SMTP id k3mr2804018wrn.255.1620814861920; Wed, 12 May 2021 03:21:01 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 08/31] gitlab: add build-user-hexagon test Date: Wed, 12 May 2021 11:20:28 +0100 Message-Id: <20210512102051.12134-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) We special case this as the container with the cross compiler for the tests takes so long to build it is manually uploaded into the registry. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Willian Rampazzo Tested-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210305092328.31792-7-alex.bennee@linaro.org> --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dcb6317aac..aa3f1dbdef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -417,6 +417,17 @@ build-user-static: CONFIGURE_ARGS: --disable-tools --disable-system --static MAKE_CHECK_ARGS: check-tcg =20 +# Because the hexagon cross-compiler takes so long to build we don't rely +# on the CI system to build it and hence this job has no dependency +# declared. The image is manually uploaded. +build-user-hexagon: + <<: *native_build_job_definition + variables: + IMAGE: debian-hexagon-cross + TARGETS: hexagon-linux-user + CONFIGURE_ARGS: --disable-tools --disable-docs --enable-debug-tcg + MAKE_CHECK_ARGS: check-tcg + # Only build the softmmu targets we have check-tcg tests for build-some-softmmu: <<: *native_build_job_definition --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620814985; cv=none; d=zohomail.com; s=zohoarc; b=FWyZff2uRzwMl7/Y4WE++lsh0nnq2fu5gOR0q9ojp7HHjiaucc+aoZM9obLjhLAA7IXHkUoM4TEcAkxtStOg/c/lSC00zp1z4EzjNWBC9PIg+uFLdBcDCRGjv82lvI9tOfyxXb+mebzT3rwUyxy4o+fHpebAP67zbvVvK/hUh7o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620814985; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sPzJesUomMFY9absGAV+e0gSasa1u8Mhgwq7e7l5rQ4=; b=cJ/NZB8HQjIwMU0Zl1RyXXZr70SBUeYD50OJoB7t2ZMTUovimI+33YW1Puoxu82tMgRoiTC5Wy7WtSloI1bV6yfL0Yfl65dhbB+KkQAw091CK6ZUIBa592S2T7BK+Jfg0Uc3lMDKAjlLLEyS6GQ1yQfSBsQTFgun4brvq50gb94= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620814985087327.0944862457162; Wed, 12 May 2021 03:23:05 -0700 (PDT) Received: from localhost ([::1]:42880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm19-0006Or-ST for importer@patchew.org; Wed, 12 May 2021 06:23:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzJ-0003cn-LU for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:09 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:34335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzG-0003fa-UR for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:09 -0400 Received: by mail-wr1-x435.google.com with SMTP id t18so23060683wry.1 for ; Wed, 12 May 2021 03:21:06 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c8sm5645592wmr.48.2021.05.12.03.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:59 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 040A71FF98; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sPzJesUomMFY9absGAV+e0gSasa1u8Mhgwq7e7l5rQ4=; b=ZsLvS6GA9VNr4FhF9xXNcNLQgbhsb0np6w7cD7L1bMiTZC7mip7HqDTlxuKod3tha3 FkhCg5MdsDeYd3YG39coNMIF0dDp5XC9yQaqBd0bQY97Q8RFRFQMybeQfXbt9SVAlHos uiu4YFiI6EheGo0+cHLLMiI3YNtnrwhx7/Y4IedODOV+qCIOSLRhdgzLqsCp/soNCfa5 Cop4bKDnBEGYHqZM9GtZ6ei1qaNBFf1hjzkDjRWV7Mp+e4qWuyQgW3vcrwmMQ+oCP61P EZ9k3rQV4QkVGFjmfwshYFRZsUc85P+vE74ryeeNueGehJy5Sz9lyeEeHmXbXFhq1ihk MTIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sPzJesUomMFY9absGAV+e0gSasa1u8Mhgwq7e7l5rQ4=; b=TL0ho+7RK+mdiOGIwpny61UdhZjiHhf0vALWA25KPw4X1rotPBxjEJtPuIZcUXKgoN qkNziQuKZwhkQmsEWkMRev5YL/6wp7pVGRodGfdm2ULrMLR+AapPNRQ9gc75DoYx9He3 AzGGdN8zSoYCbbNJ8oSNAN9+9ft/glFUghZSAHVWj3wZUp2XYSxpwp3Jh+Z3Rv8c9nt3 K/bfNrZEU/KbFm1Vf7ByF847TzeG1H6EPuloYpVM+KPJ1UyCHhRteWKbly/0sHVD1pcV d+MZfZKWQYLlF1FCZTGwrB2uA0izQGnrsxcAT1deFMlb1AgisS6FiQPrEBAGoghVIDL/ /G9A== X-Gm-Message-State: AOAM5337xLMxBN/Zt+D32ZsslFwmu2noBNZdzz38hdwaOeqKls2BNVlW shu9Xn+JcHYfJpPsTafwHs3IKg== X-Google-Smtp-Source: ABdhPJy0AoljF82+5kGK2piDyr6mxU4YfEvTv3RGtJ+0UpmHZhALODu/CQltu7bwDhLRb4EK7cWpUw== X-Received: by 2002:a5d:4a48:: with SMTP id v8mr45028899wrs.204.1620814865538; Wed, 12 May 2021 03:21:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 09/31] tests/tcg: don't iterate through other arch compilers Date: Wed, 12 May 2021 11:20:29 +0100 Message-Id: <20210512102051.12134-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) There should only be one compiler per architecture. Those cases where the same compiler can deal with a different architecture should be explicitly set for both cross_cc and docker configurations. Otherwise you get strangeness like: --cross-cc-aarch64=3D/bin/false causing the logic to attempt to use a locally available arm-linux-gnueabihf-gcc rather than forcing the use of the docker image which is what is implied by the command line option. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/configure.sh | 148 ++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 89 deletions(-) diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 24cc847688..e6c1be5450 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -74,35 +74,6 @@ fi =20 for target in $target_list; do arch=3D${target%%-*} - case $arch in - arm|armeb) - arches=3Darm - ;; - aarch64|aarch64_be) - arches=3D"aarch64 arm" - ;; - mips*) - arches=3Dmips - ;; - ppc*) - arches=3Dppc - ;; - sh4|sh4eb) - arches=3Dsh4 - ;; - x86_64) - arches=3D"x86_64 i386" - ;; - xtensa|xtensaeb) - arches=3Dxtensa - ;; - alpha|cris|hexagon|hppa|i386|lm32|microblaze|microblazeel|m68k|openris= c|riscv64|s390x|sh4|sparc64) - arches=3D$target - ;; - *) - continue - ;; - esac =20 container_image=3D case $target in @@ -236,70 +207,69 @@ for target in $target_list; do echo "CROSS_CC_GUEST_CFLAGS=3D$target_compiler_cflags" >> $config_target= _mak =20 got_cross_cc=3Dno - for i in $arch $arches; do - if eval test "x\${cross_cc_$i+yes}" !=3D xyes; then - continue - fi =20 - eval "target_compiler=3D\${cross_cc_$i}" - if ! has $target_compiler; then - continue - fi - write_c_skeleton - if ! do_compiler "$target_compiler" $target_compiler_cflags -o $TMPE $= TMPC -static ; then - # For host systems we might get away with building without -static - if ! do_compiler "$target_compiler" $target_compiler_cflags -o $TMPE= $TMPC ; then - continue - fi - echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak - else - echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak - fi - echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_target_mak + if eval test "x\${cross_cc_$arch}" !=3D xyes; then + eval "target_compiler=3D\${cross_cc_$arch}" =20 - # Test for compiler features for optional tests. We only do this - # for cross compilers because ensuring the docker containers based - # compilers is a requirememt for adding a new test that needs a - # compiler feature. - case $target in - aarch64-*) - if do_compiler "$target_compiler" $target_compiler_cflags \ - -march=3Darmv8.1-a+sve -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_SVE=3Dy" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -march=3Darmv8.3-a -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_3=3Dy" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -mbranch-protection=3Dstandard -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_BTI=3Dy" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -march=3Darmv8.5-a+memtag -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_MTE=3Dy" >> $config_target_mak - fi - ;; - ppc*) - if do_compiler "$target_compiler" $target_compiler_cflags \ - -mpower8-vector -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_POWER8_VECTOR=3Dy" >> $config_target_mak - fi - ;; - i386-linux-user) - if do_compiler "$target_compiler" $target_compiler_cflags \ - -Werror -fno-pie -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_I386_NOPIE=3Dy" >> $config_target_mak - fi - ;; - esac + if has $target_compiler; then + write_c_skeleton + if ! do_compiler "$target_compiler" $target_compiler_cflags \ + -o $TMPE $TMPC -static ; then + # For host systems we might get away with building without -= static + if do_compiler "$target_compiler" $target_compiler_cflags \ + -o $TMPE $TMPC ; then + got_cross_cc=3Dyes + echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak + echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_targ= et_mak + fi + else + got_cross_cc=3Dyes + echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak + echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_target_m= ak + fi + fi + fi =20 - enabled_cross_compilers=3D"$enabled_cross_compilers $target_compiler" - got_cross_cc=3Dyes - break - done + if test $got_cross_cc =3D yes; then + # Test for compiler features for optional tests. We only do this + # for cross compilers because ensuring the docker containers based + # compilers is a requirememt for adding a new test that needs a + # compiler feature. =20 - if test $got_cross_cc =3D no && test "$container" !=3D no && test -n "$c= ontainer_image"; then + case $target in + aarch64-*) + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=3Darmv8.1-a+sve -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_SVE=3Dy" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=3Darmv8.3-a -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_3=3Dy" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mbranch-protection=3Dstandard -o $TMPE $TMPC= ; then + echo "CROSS_CC_HAS_ARMV8_BTI=3Dy" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=3Darmv8.5-a+memtag -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_MTE=3Dy" >> $config_target_mak + fi + ;; + ppc*) + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mpower8-vector -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_POWER8_VECTOR=3Dy" >> $config_target_= mak + fi + ;; + i386-linux-user) + if do_compiler "$target_compiler" $target_compiler_cflags \ + -Werror -fno-pie -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_I386_NOPIE=3Dy" >> $config_target_mak + fi + ;; + esac + elif test $got_cross_cc =3D no && test "$container" !=3D no && \ + test -n "$container_image"; then for host in $container_hosts; do if test "$host" =3D "$ARCH"; then echo "DOCKER_IMAGE=3D$container_image" >> $config_target_mak --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815522; cv=none; d=zohomail.com; s=zohoarc; b=SMT+1SWxjGMsKkCf+CkYfsUxfTrefU6aObKc5tGFdAC26lYEJ9Yn4W0Zwu26piTgrhp2h863f9VV6guhcL01ykBRELFr+cb6QW2/2h8XzlAoSXVVzt3u/9AXC5UBf8Nvl1ZVVOh7C+8NZHTlL2kAOWXgdtmmBYyzNjRBJrap6N4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815522; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+bRC0Et+Ybmra+FhUpwC3CZYHeRVawT5fsMVpUvmvv0=; b=i3EI1QdIaUUPeVrwHtpolDZnKTIA9NICD+GM7PtG5beOfOmWDjQkuzBjW28JH6mlD1N1OBSSt6EaToN4f01e8VR5YRHzYr93x9spAAlYI4+V806sAkep+i2TfLSXMvG5iumEW5/hFxZjpdPROJMHtvvifO9jvhynC4AWpKzUg0U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815522899530.8577751554906; Wed, 12 May 2021 03:32:02 -0700 (PDT) Received: from localhost ([::1]:58880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm9p-0000b0-OW for importer@patchew.org; Wed, 12 May 2021 06:32:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzK-0003gT-TV for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:10 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:35623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzI-0003gP-DV for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:10 -0400 Received: by mail-wm1-x336.google.com with SMTP id j3-20020a05600c4843b02901484662c4ebso2746265wmo.0 for ; Wed, 12 May 2021 03:21:07 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id n2sm30873730wmb.32.2021.05.12.03.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:59 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1FEA91FF99; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+bRC0Et+Ybmra+FhUpwC3CZYHeRVawT5fsMVpUvmvv0=; b=y+1LzMuX+RZzVGT2x91CAnDV8Tb3U3VO8ZiWSRHEmniAr5STTWw9uqYZgOQ8Q6hvSK aDcGtxDT2qJCISu+me5gkpWy88HWJXamruT/DPHh24JPe+QWTZonhu4ZetGpdOtNZ/d1 7caZIWlvgT/VVjdi2+K698QSJ86Wqzb4jC0fl6Yvgc4bxKe0w55pe2GY0Pn2pJKjK0z8 ebunSLaxRFhPE+/xn8EFNtpPfwxrKACwBo6Xai+veKncbKVTxzpLhbiNZaAMqLmlFs7A b0RzqrmImE9vvnScNQwQc7ZZ5WV3PZ63d45qEUJyvVtAOzgi6DznUlAxFzIGFhDscUGs 6/+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+bRC0Et+Ybmra+FhUpwC3CZYHeRVawT5fsMVpUvmvv0=; b=BVEqEHwW6ezJ6uhr7ofpjzLctb2pBHfIANZCFziBViXXGjWxlklvXMr0eW+sr/87A9 dTEM9dv0517sJzEAUnLFEsJLQsFk+jeSZEpbBHGNWiSSzE7CMVbGbqXEftCFEPB8m1PO jUEKhjJwdB9oiMlygy+e9Tz+2iAY4DdQT3R0UeOB1D+kDF67gsnxTLERNLy6orHFANRA XaztGS0x6YocO0z1O7sJZkvEmEkX4pzZwsmE1Jz15c/uTqS7n++tP370EzOSwBXA1BGV oMLqoUAOy/EDCnpdzTOIP2CNDpLnet/hTuY8akv3p8Vfm7YehH+fppF2zXl0MbzTdPwO 3VeA== X-Gm-Message-State: AOAM531mC34joZfIdqtMG5j+LbfM8yQDs0oLehVbuj/3/VHshIBWL0bh ByFOP1aL8LJ9aSjco7O3alRiHg== X-Google-Smtp-Source: ABdhPJyAcx7RgZOL1pgrhRVp/IhYAQLMlOypGJPA7Mq+bIC/4oyVayZ4De2WSmq4fRAJ5T+Px6UD+w== X-Received: by 2002:a1c:7ec2:: with SMTP id z185mr8126981wmc.138.1620814867061; Wed, 12 May 2021 03:21:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 10/31] tests/docker: Added libbpf library to the docker files. Date: Wed, 12 May 2021 11:20:30 +0100 Message-Id: <20210512102051.12134-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Andrew Melnychenko , berrange@redhat.com, f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, Thomas Huth , pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Andrew Melnychenko The series of patches for eBPF RSS adds libbpf dependency for qemu. https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg08887.html With this patch, libbpf added: Alpine - added libbpf-dev Centos 8 - added libbpf-devel Fedora - added libbpf-devel Signed-off-by: Andrew Melnychenko Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Willian Rampazzo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210406082947.672708-2-andrew@daynix.com> --- tests/docker/dockerfiles/alpine.docker | 1 + tests/docker/dockerfiles/centos8.docker | 1 + tests/docker/dockerfiles/fedora.docker | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfi= les/alpine.docker index d63a269aef..998a7584ed 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -19,6 +19,7 @@ ENV PACKAGES \ gnutls-dev \ gtk+3.0-dev \ libaio-dev \ + libbpf-dev \ libcap-ng-dev \ libjpeg-turbo-dev \ libnfs-dev \ diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerf= iles/centos8.docker index a8c6c528b0..efc1349cc8 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -14,6 +14,7 @@ ENV PACKAGES \ git \ glib2-devel \ libaio-devel \ + libbpf-devel \ libepoxy-devel \ libfdt-devel \ libgcrypt-devel \ diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfi= les/fedora.docker index 915fdc1845..483f2d9f83 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -32,6 +32,7 @@ ENV PACKAGES \ libcurl-devel \ libepoxy-devel \ libfdt-devel \ + libbpf-devel \ libiscsi-devel \ libjpeg-devel \ libpmem-devel \ --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816119; cv=none; d=zohomail.com; s=zohoarc; b=YoyHIzAu3at3YUWzCjVAIAFtJycXsKcg4x4LZvB+SnDPbbHSuekFcji3oPu3fJQgh0In/j+DXmr16w+6SCQVyAPCy+Wm6wFKceQtf5+DXC5jmvvTC2L8jb3zxL68FvDD6tNeACjYguMUiiShsZiKmJddK1s8N6B641lslgfLzm8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816119; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iPq9uGOdfE2STV15D/gtYtThg7p+C48gB81bHaUpG4E=; b=DOgTEaCvK2AquESZxxwmTvsuEGgRgLVluU3uMuMefw4TKyH7kmqwwWRJik9jQhKtoIjO7cWcm24244wc+IfLLTQWQfahrwIstelhlq4qL6gna7JcQmDhDxzHnry7KyZI9JO72ob8Cna6WZm2h4q1V01os7a3sTZXsmDgVmn7lBE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162081611902759.4968343221808; Wed, 12 May 2021 03:41:59 -0700 (PDT) Received: from localhost ([::1]:36230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJR-00078o-IC for importer@patchew.org; Wed, 12 May 2021 06:41:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8X-0000aM-94 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:41 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:40522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8M-0000ZQ-QH for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:41 -0400 Received: by mail-wr1-x436.google.com with SMTP id z17so4002648wrq.7 for ; Wed, 12 May 2021 03:30:28 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y17sm33738807wrw.90.2021.05.12.03.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 385111FF9A; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iPq9uGOdfE2STV15D/gtYtThg7p+C48gB81bHaUpG4E=; b=P+NzgoOlr6njhzjVrNlIZ8tvcdsTsy/ik5QjmRKTJZ8T7DBl8d/dKYdEQBiCOdpuEy j3jXH0dI3v0+pLdEElffZlQ1TkRZOF6cdDNnle+eYaLcbYvWt7SlVGCkRhbSsetV5Tas 8BkTiJuc8e02LD9/EJcjHAKgGLSuB32z3KSjmiGtbgJeilAktMVhB2PQUZH1sFy1ZYWE lIUiYvRtlkstraW10HRYxk2CV1TOtkvrdQv1FUrSmcmhyxrpJUYixV0kJta8NTl4lTGD hFFPxUMi66S75ipuB3op5iiGELcJ/Hkd1sKEz6QAnAcvi/X9ttcLLpqkn6PtKDDfoIhR UGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iPq9uGOdfE2STV15D/gtYtThg7p+C48gB81bHaUpG4E=; b=CdpqM3Qw/oHs9dMtaVjEJww43XmAL21ISpxNl0KHPg2rRyZQdhZVxVQ2c6dwWuxsZI ItMTG5wDp4UPuEMLlDSYprulJB2p1LbOUt3Zb9mIcZH25vK0jdiSSyicrhdbg5d7+UAy 11cHEj6DtaRdrs7HcLdZdtl00614vHZsw8+wWu1JnSOI+re+HKSO/IEe3L1dL5RNsLpG wEZ/tioUPBpfxLSkiKSxhzSRaHd/Q/o3DkwMm411+bq5F2EovYeP/wq+UVIsNSmMPds7 qyuvbk8GlfbTy6iz0PDb64X5RaI5kGigQ3sqT4QH0AmV3J09BdB8ZJXiv4EMlNCXbZm7 a/AA== X-Gm-Message-State: AOAM5329JOTOvgyzMqbeM0OqwowkQDu2sy+bAbOg2zzJmrTXgVrxvama ZXjwj2HXNFK/NhiQKGJrU8rELw== X-Google-Smtp-Source: ABdhPJxVf7c/zCJKKTjhV7f2jT3WaEdI+GnvXErjCHGqzNv8hq3+0ShCqzRHbObQ0NeWwMFaGcOfDA== X-Received: by 2002:adf:e0c6:: with SMTP id m6mr45984304wri.66.1620815427667; Wed, 12 May 2021 03:30:27 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 11/31] tests/tcg: Add docker_as and docker_ld cmds Date: Wed, 12 May 2021 11:20:31 +0100 Message-Id: <20210512102051.12134-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann At least for the TriCore target no easily available c compiler exists. Thus we need to rely on "as" and "ld". This allows us to run them through the docker image. We don't test the generation capabilities of docker images as they are assumed to work. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Bastian Koppelmann [AJB: fix quoting, only handle docker & clear, test -n, tweak commit msg] Signed-off-by: Alex Benn=C3=A9e --- v2 - only pass down AS/LD if defined --- tests/tcg/Makefile.qemu | 17 +++++++++++++++++ tests/tcg/configure.sh | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/tests/tcg/Makefile.qemu b/tests/tcg/Makefile.qemu index a56564660c..84c8543878 100644 --- a/tests/tcg/Makefile.qemu +++ b/tests/tcg/Makefile.qemu @@ -22,6 +22,8 @@ quiet-@ =3D $(if $(V),,@) quiet-command =3D $(quiet-@)$(call quiet-command-run,$1,$2,$3) =20 CROSS_CC_GUEST:=3D +CROSS_AS_GUEST:=3D +CROSS_LD_GUEST:=3D DOCKER_IMAGE:=3D =20 -include tests/tcg/config-$(TARGET).mak @@ -42,6 +44,8 @@ cross-build-guest-tests: $(call quiet-command, \ (mkdir -p tests/tcg/$(TARGET) && cd tests/tcg/$(TARGET) && \ $(MAKE) -f $(TCG_MAKE) TARGET=3D"$(TARGET)" CC=3D"$(CROSS_CC_GUEST)" \ + $(if $(CROSS_AS_GUEST),AS=3D"$(CROSS_AS_GUEST)") \ + $(if $(CROSS_LD_GUEST),LD=3D"$(CROSS_LD_GUEST)") \ SRC_PATH=3D"$(SRC_PATH)" BUILD_STATIC=3D$(CROSS_CC_GUEST_STATIC) \ EXTRA_CFLAGS=3D"$(CROSS_CC_GUEST_CFLAGS)"), \ "BUILD","$(TARGET) guest-tests with $(CROSS_CC_GUEST)") @@ -59,11 +63,24 @@ DOCKER_COMPILE_CMD=3D"$(DOCKER_SCRIPT) cc \ -i qemu/$(DOCKER_IMAGE) \ -s $(SRC_PATH) -- " =20 +DOCKER_AS_CMD=3D$(if $(DOCKER_CROSS_AS_GUEST),"$(DOCKER_SCRIPT) cc \ + --cc $(DOCKER_CROSS_AS_GUEST) \ + -i qemu/$(DOCKER_IMAGE) \ + -s $(SRC_PATH) -- ") + +DOCKER_LD_CMD=3D$(if $(DOCKER_CROSS_LD_GUEST),"$(DOCKER_SCRIPT) cc \ + --cc $(DOCKER_CROSS_LD_GUEST) \ + -i qemu/$(DOCKER_IMAGE) \ + -s $(SRC_PATH) -- ") + + .PHONY: docker-build-guest-tests docker-build-guest-tests: docker-image-$(DOCKER_IMAGE) $(call quiet-command, \ (mkdir -p tests/tcg/$(TARGET) && cd tests/tcg/$(TARGET) && \ $(MAKE) -f $(TCG_MAKE) TARGET=3D"$(TARGET)" CC=3D$(DOCKER_COMPILE_CMD)= \ + $(if $(DOCKER_AS_CMD),AS=3D$(DOCKER_AS_CMD)) \ + $(if $(DOCKER_LD_CMD),LD=3D$(DOCKER_LD_CMD)) \ SRC_PATH=3D"$(SRC_PATH)" BUILD_STATIC=3Dy \ EXTRA_CFLAGS=3D"$(CROSS_CC_GUEST_CFLAGS)"), \ "BUILD","$(TARGET) guest-tests with docker qemu/$(DOCKER_IMAGE)") diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index e6c1be5450..ed378e7840 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -75,7 +75,13 @@ fi for target in $target_list; do arch=3D${target%%-*} =20 + # reset all container fields container_image=3D + container_hosts=3D + container_cross_cc=3D + container_cross_as=3D + container_cross_ld=3D + case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AA= rch64 @@ -273,7 +279,16 @@ for target in $target_list; do for host in $container_hosts; do if test "$host" =3D "$ARCH"; then echo "DOCKER_IMAGE=3D$container_image" >> $config_target_mak - echo "DOCKER_CROSS_CC_GUEST=3D$container_cross_cc" >> $confi= g_target_mak + echo "DOCKER_CROSS_CC_GUEST=3D$container_cross_cc" >> \ + $config_target_mak + if test -n "$container_cross_as"; then + echo "DOCKER_CROSS_AS_GUEST=3D$container_cross_as" >> \ + $config_target_mak + fi + if test -n "$container_cross_ld"; then + echo "DOCKER_CROSS_LD_GUEST=3D$container_cross_ld" >> \ + $config_target_mak + fi fi done fi --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815752; cv=none; d=zohomail.com; s=zohoarc; b=RF7Up7moeAHLBvcp8C5WfFTV8N+KI2P1rq582e359AQk1Y2um4/UTVX1dhKBHZ9BlTMLXqugLYl00T2+gJZFttaV0BSPMUxLCyU/5fS5S7LxotMkbE3I4rqN0u6um2bIpcRtjj3FhVNMXNpIwwRnviHOCyGaTIbct2n9O5N0YJk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815752; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=E14xx3a9YznN0OdrDaB2sf2OHARk0Yfy+F+oiro6yeeGBdIBpQCC7XxmG+ZIn9Yk0nALM9xem+ptk1xcRO7nsehIv21qtbDUn303gleBA9TPoeAt3rXlwYFQikeJxY7+SrJAtyvHoNl+/5cNlviWu+l/vR7tuoDiauH2C7Tqcng= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815752825656.5403424177042; Wed, 12 May 2021 03:35:52 -0700 (PDT) Received: from localhost ([::1]:42462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmDX-0000UN-PY for importer@patchew.org; Wed, 12 May 2021 06:35:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzL-0003hk-74 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:11 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:36770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzJ-0003hP-Dq for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:10 -0400 Received: by mail-wm1-x330.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so2217447wmk.1 for ; Wed, 12 May 2021 03:21:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b15sm347305wru.64.2021.05.12.03.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:20:59 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4E9CC1FF9B; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=l163YBaw2zHHqHhyWpGcjptjVgib4g68qAoUMqipmmypqYOh98n9ScNdpOrygSKgNm ZvQi53IQf/B8goSY1z+XacWIFd9Cx6wm5OzOCDLj1eM71PbWtGJ3lrFIrLiA3pylwoGS MjNx4P2QSzcNZS19KmmrLhViBhrZ2EwoI7UWnH08PCIC+a9TnG1BP3IRAq6mdRi7cggr d94MQSge0nW6YGQrNflJq/inx0qseAIIa3hgRqndot8waLmmhPBcstY94cWGeH0sI/SM t0YUB8CAhjztMheieoPdfPX5WptaAiYkBKpFTVlbbkbIDEWGeSbhAlXxecT+sYV1bv0k 2Ujw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=Oc/4B4LbTxcGyo6hw+aAYGxKaozxHvQWoZe6yuZ8GOKa4an+dFOo2FwksP3v12ihfX vl5AfV2v1tq3mSX0BvMP/+RmI6/nWBi7ZGdO5/9U7peJM6204yFwU2VjziQYggdxRAod KC2DMlFAAbWuIChYLrg4zSi6lYUZJJktRE9RzUyAh9IvBZQ7lQsE+I/ZjMbXO6tRdMd1 h0IDZ2+alOmv6b43fl/+0/7JIZcbJ87F7rdiWoo2dI0GpIkIFuO06yK2FB4flipixY2a SJyeut5a13XDS0gcIlrQkVCV+C3sSshai3iQA/+0bn+PtT4EPOmQxVpZnRQfMpVhPuMr APFA== X-Gm-Message-State: AOAM5321k7dunY6kFwkZcD7DhxBBUV1UMyV50G7nIDZKHc/5y4TVTOLr 2UBO1ltilxF48gOd/aflx9NYhA== X-Google-Smtp-Source: ABdhPJwmLMCdFHGCOY+Z1AiuH8FAClfWWma1Gm3aS4GZuVUKJXW2LETQ1/tRH3mmNaR4yE8yaoH/fA== X-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr10651729wmq.137.1620814867999; Wed, 12 May 2021 03:21:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 12/31] tests/tcg: Run timeout cmds using --foreground Date: Wed, 12 May 2021 11:20:32 +0100 Message-Id: <20210512102051.12134-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann when trying to run successful short tests from the Makefile timeout would n= ot terminate. Rather it would wait until the time runs out. Excerpt from the manpage: --foreground when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals; in this mode, c= hil=E2=80=90 dren of COMMAND will not be timed out Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-3-kbastian@mail.uni-paderborn.de> --- tests/tcg/Makefile.target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index cab8c6b3a2..b29fae4630 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -43,9 +43,10 @@ quiet-command =3D $(if $(V),$1,$(if $(2),@printf " %-7s= %s\n" $2 $3 && $1, @$1)) =20 # $1 =3D test name, $2 =3D cmd, $3 =3D desc ifdef CONFIG_USER_ONLY -run-test =3D $(call quiet-command, timeout $(TIMEOUT) $2 > $1.out,"TEST",$= 3) +run-test =3D $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1= .out, \ + "TEST",$3) else -run-test =3D $(call quiet-command, timeout $(TIMEOUT) $2,"TEST",$3) +run-test =3D $(call quiet-command, timeout --foreground $(TIMEOUT) $2,"TES= T",$3) endif =20 # $1 =3D test name, $2 =3D reference --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815245; cv=none; d=zohomail.com; s=zohoarc; b=jFJK221r7wweLGUgNEEgJwFUn3MahXYDdjjgkHPrSSqu9fX6lR6VBisaPkHEj4Ey44XHeXARdFdeEcp0N05tWyjZkvUGptXV7GOy7n9dnuizNkKQ/FV+4xpmXngVXll9uYk4lP0HKRheHyoSEl3e7XraM9RUO1wu/NquSAsAEeE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815245; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Ci7dPAMJyayfYNj3hZaWT3hefWzNQwgkwFzrMvlg9Tw=; b=muWjSh+j/IpM0kYLubYB3RibcMRn4DMWQXIBSdLY/FXoJ1UXlKhA3arqwpOI+MjpWbrVUUZMfOSpM/RMBBhz4TnI+fo3gLoed6nMIAKswRCjV0mCVcNbEukxqRb0yxyw+a7Op+ozLHo9ZxPlmR6L9Q/yA2B4DL6AAXCB9gudxnc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815245603536.3190625799443; Wed, 12 May 2021 03:27:25 -0700 (PDT) Received: from localhost ([::1]:51558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm5M-0003x7-Hn for importer@patchew.org; Wed, 12 May 2021 06:27:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzP-0003wh-K8 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:15 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:38663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzM-0003j0-B0 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:15 -0400 Received: by mail-wr1-x42a.google.com with SMTP id l14so23048415wrx.5 for ; Wed, 12 May 2021 03:21:11 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z19sm5675472wmf.47.2021.05.12.03.20.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:21:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6C4BB1FF9C; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ci7dPAMJyayfYNj3hZaWT3hefWzNQwgkwFzrMvlg9Tw=; b=wjGXFKQiONlWrNse72AnFaY8Xj3EW/pUeX/sE+GqlbN0/DrOnbjV1ZLSOTnnEA00j0 jRStMNr3MOKWR/itQBE4g13hmlPp9O2gHFxNPvPNNBZHNdK8PaW6yYxO/+1IXRKF9zlw TbK/57UsiqffEck13efWt7Q8ZqxR4G9D2++YL0AYElT9wI0NKNyeo4CHXvT7COIcjgsZ lhIqMxd7oThCq3Qi7YJDFXsa4GLHYrMTH4q9necZy3k22kHpHAY8+9FgS5IgaUKqaHBI /jezt8MDpnUZPbQZUDTJvyJ9YcigDgVmD7PNusAH8aMHKDjDt9LEoxvrzTGnEC8WT2hl WbLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ci7dPAMJyayfYNj3hZaWT3hefWzNQwgkwFzrMvlg9Tw=; b=i2LNr0QWtpCkwP/JyyDV0p2+wOJhjaZjXbrr1YPBUkMnvUWomUMkPoo3Pto+VGHXMn BHXEdsnZgbzBmUdT37vMJbAzz1OYY2KwcHcfSzdPjySa3XJeCf4xiehK3Oli8s3GHy+T 7hOtX2AmnApzwoObpAcoN+3ijps938TGOjyU+PytFR+AMlVERZp0F/h9cTdvEkup23es we/FpxlgEv0tCdXgsjpBJZiOIHRSW6D4AeBcb1eEhw7p7Lv4sF49uq91kcVxPAE1CEN8 jYYt3Az7TFmKxUcu3yzOMAh/PwiTzJfSSCkKNEukYzSvQloSuTj++Ybjw7+3nWFBK3qV K7QQ== X-Gm-Message-State: AOAM531WtdDpTW4EbCQ3jmcUIxB2OUvI4Q/v/s8vBOSYaHptsZ4B/Mlt c8gcvku3GV5QS8JZacb8DWmghw== X-Google-Smtp-Source: ABdhPJyWOs7NLS7cjcfjaPbcs5jlbBZqOzW3hegM1Rp9mFTzV+Ex606xuONxmaHWis6pMquColwOCw== X-Received: by 2002:adf:e707:: with SMTP id c7mr2271441wrm.137.1620814870985; Wed, 12 May 2021 03:21:10 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 13/31] hw/tricore: Add testdevice for tests in tests/tcg/ Date: Wed, 12 May 2021 11:20:33 +0100 Message-Id: <20210512102051.12134-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann this device is used to verify the correctness of regression tests by allowing guests to write their exit status to this device. This is then used by qemu to exit using the written status. Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-4-kbastian@mail.uni-paderborn.de> --- include/hw/tricore/tricore_testdevice.h | 38 ++++++++++++ hw/tricore/tricore_testboard.c | 8 +++ hw/tricore/tricore_testdevice.c | 82 +++++++++++++++++++++++++ hw/tricore/meson.build | 1 + 4 files changed, 129 insertions(+) create mode 100644 include/hw/tricore/tricore_testdevice.h create mode 100644 hw/tricore/tricore_testdevice.c diff --git a/include/hw/tricore/tricore_testdevice.h b/include/hw/tricore/t= ricore_testdevice.h new file mode 100644 index 0000000000..2c56c51bcb --- /dev/null +++ b/include/hw/tricore/tricore_testdevice.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2018-2021 Bastian Koppelmann Paderborn University + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + + +#ifndef HW_TRICORE_TESTDEV_H +#define HW_TRICORE_TESTDEV_H + +#include "hw/sysbus.h" +#include "hw/hw.h" + +#define TYPE_TRICORE_TESTDEVICE "tricore_testdevice" +#define TRICORE_TESTDEVICE(obj) \ + OBJECT_CHECK(TriCoreTestDeviceState, (obj), TYPE_TRICORE_TESTDEVICE) + +typedef struct { + /* */ + SysBusDevice parent_obj; + + /* */ + MemoryRegion iomem; + +} TriCoreTestDeviceState; + +#endif diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboard.c index 51658d9e37..b6810e3be0 100644 --- a/hw/tricore/tricore_testboard.c +++ b/hw/tricore/tricore_testboard.c @@ -27,6 +27,7 @@ #include "hw/loader.h" #include "elf.h" #include "hw/tricore/tricore.h" +#include "hw/tricore/tricore_testdevice.h" #include "qemu/error-report.h" =20 =20 @@ -56,6 +57,7 @@ static void tricore_testboard_init(MachineState *machine,= int board_id) { TriCoreCPU *cpu; CPUTriCoreState *env; + TriCoreTestDeviceState *test_dev; =20 MemoryRegion *sysmem =3D get_system_memory(); MemoryRegion *ext_cram =3D g_new(MemoryRegion, 1); @@ -87,6 +89,12 @@ static void tricore_testboard_init(MachineState *machine= , int board_id) memory_region_add_subregion(sysmem, 0xf0050000, pcp_data); memory_region_add_subregion(sysmem, 0xf0060000, pcp_text); =20 + test_dev =3D g_new(TriCoreTestDeviceState, 1); + object_initialize(test_dev, sizeof(TriCoreTestDeviceState), + TYPE_TRICORE_TESTDEVICE); + memory_region_add_subregion(sysmem, 0xf0000000, &test_dev->iomem); + + tricoretb_binfo.ram_size =3D machine->ram_size; tricoretb_binfo.kernel_filename =3D machine->kernel_filename; =20 diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevic= e.c new file mode 100644 index 0000000000..a1563aa568 --- /dev/null +++ b/hw/tricore/tricore_testdevice.c @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018-2021 Bastian Koppelmann Paderborn University + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "qemu/osdep.h" +#include "hw/sysbus.h" +#include "hw/qdev-properties.h" +#include "hw/tricore/tricore_testdevice.h" + +static void tricore_testdevice_write(void *opaque, hwaddr offset, + uint64_t value, unsigned size) +{ + exit(value); +} + +static uint64_t tricore_testdevice_read(void *opaque, hwaddr offset, + unsigned size) +{ + return 0xdeadbeef; +} + +static void tricore_testdevice_reset(DeviceState *dev) +{ +} + +static const MemoryRegionOps tricore_testdevice_ops =3D { + .read =3D tricore_testdevice_read, + .write =3D tricore_testdevice_write, + .valid =3D { + .min_access_size =3D 4, + .max_access_size =3D 4, + }, + .endianness =3D DEVICE_NATIVE_ENDIAN, +}; + +static void tricore_testdevice_init(Object *obj) +{ + TriCoreTestDeviceState *s =3D TRICORE_TESTDEVICE(obj); + /* map memory */ + memory_region_init_io(&s->iomem, OBJECT(s), &tricore_testdevice_ops, s, + "tricore_testdevice", 0x4); +} + +static Property tricore_testdevice_properties[] =3D { + DEFINE_PROP_END_OF_LIST() +}; + +static void tricore_testdevice_class_init(ObjectClass *klass, void *data) +{ + DeviceClass *dc =3D DEVICE_CLASS(klass); + + device_class_set_props(dc, tricore_testdevice_properties); + dc->reset =3D tricore_testdevice_reset; +} + +static const TypeInfo tricore_testdevice_info =3D { + .name =3D TYPE_TRICORE_TESTDEVICE, + .parent =3D TYPE_SYS_BUS_DEVICE, + .instance_size =3D sizeof(TriCoreTestDeviceState), + .instance_init =3D tricore_testdevice_init, + .class_init =3D tricore_testdevice_class_init, +}; + +static void tricore_testdevice_register_types(void) +{ + type_register_static(&tricore_testdevice_info); +} + +type_init(tricore_testdevice_register_types) diff --git a/hw/tricore/meson.build b/hw/tricore/meson.build index 77ff6fd137..47e36bb077 100644 --- a/hw/tricore/meson.build +++ b/hw/tricore/meson.build @@ -1,5 +1,6 @@ tricore_ss =3D ss.source_set() tricore_ss.add(when: 'CONFIG_TRICORE', if_true: files('tricore_testboard.c= ')) +tricore_ss.add(when: 'CONFIG_TRICORE', if_true: files('tricore_testdevice.= c')) tricore_ss.add(when: 'CONFIG_TRIBOARD', if_true: files('triboard.c')) tricore_ss.add(when: 'CONFIG_TC27X_SOC', if_true: files('tc27x_soc.c')) =20 --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816043; cv=none; d=zohomail.com; s=zohoarc; b=S0wswjohcMwCiIJjjodFDaXv2jz4/uJ5QL3QduOid7TE6JUm2WYLIaMqn8qm0bQrHifBXWR0ZHSG4MnGaAqoG/Z7OE6flD74r1x0QqsmX9bFP10aor4BjQ4U8FkJUXS657u7KntLKhBlCJlZYY59FVfokv6iAHylCwaSUXYYKK0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816043; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=l97rhLDxO0XNq5HQNG4JIIr2ozVY5tElcdl90wPdeI0=; b=LQc+BkvBep1oNL++6ay7byFWNEXWbabuoEotqNt8n3gNaTtkT8w+YQOYtJKlTpt6wP/gZ6cUJ0prBPQE75oY6hWS3k+HA/7tTheHvLiM54k41elytxvL2SEz7nfpYJvvznuNG1caIubbM/0VhKUgFZ1ghg+pxNOPB48f6hD4k2Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16208160433420.7934165028854068; Wed, 12 May 2021 03:40:43 -0700 (PDT) Received: from localhost ([::1]:59362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmIE-0003fd-7I for importer@patchew.org; Wed, 12 May 2021 06:40:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8b-0000nN-Eb for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:45 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:42801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8X-0000ch-QS for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:45 -0400 Received: by mail-wr1-x42e.google.com with SMTP id x8so785377wrq.9 for ; Wed, 12 May 2021 03:30:41 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w22sm5415169wmc.13.2021.05.12.03.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 870601FF9D; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l97rhLDxO0XNq5HQNG4JIIr2ozVY5tElcdl90wPdeI0=; b=s0+5H6cPoS6XRe3FxBqZqEc0tMsB9Yw2D63FY8kNmf8shpVwszLz3x1ZvUpXlvLi+t HlxujfHwbUNnBXRcdpqRH45vQ4lrMbPOS0N2LeQaI/q8+ZOHi0CfP7dytxLFJJTybC9y 75dNr9gc5G3PglSC2kEz318irdroAOsQ9zj8IizxwZN5yhWRJodtWil4ZjX0w2OjAbRv CUNZ4Pk7K8X3lKAMeY17bqFrI0yUfYntIVTQw3GLMeidWH1HC6qXFiyu4zeGPTe9fifD 2IoISIbVP/U9MYYfQtkMy10pjnI/9LwnDmMPPCXSdLAuUjWYM01ZPflPBKOSMV6slFNS M/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=l97rhLDxO0XNq5HQNG4JIIr2ozVY5tElcdl90wPdeI0=; b=MSdDwKsbSM8SdMkqnNROZqudDOFZTNIbyNhzZz57fU34VYs6fyLvf3vYMx+NRs8VcK PZdqJjz01x69mGE7MO1JGeilSkz/tgD+dPoFme3gK/AGLMmqfFJp5dxy0x6EB+ARV5/K 0GBjS+IonarWRXt5VtSKdMwWVIPihFAO5uyC4y1ZGA4veZ7pY2MAiSaemWW7/oGfwsWS bqp/UhcSJ0ipG0x0pNCyNqbW9+FwiPNEFh+cCbLiJBCr/K1wXi8pyURa01ZFqaFnXz6M WHZ3meW2q/CyOkhVEplU7dnq+6DARfyvrfG3H6xJvWCHGcoK8xTLnIbQI2/4MLizCyBl W5dw== X-Gm-Message-State: AOAM5337w9GUVeyw8EjdEWuEnKD1NVRZUYdsooQiu4lwvhc+V7tR3c1r abIaTHc5vMwD6lBirzSB2c5TYcl7SH810g== X-Google-Smtp-Source: ABdhPJxm9Vqt1s+UTMLpM0sckW4UbUP4sY58qjwUB48sq8jYOkklk9d9Op8iBOcjboE4fMOE84wAMw== X-Received: by 2002:a05:6000:12cc:: with SMTP id l12mr6301489wrx.91.1620815440446; Wed, 12 May 2021 03:30:40 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 14/31] tests/tcg/tricore: Add build infrastructure Date: Wed, 12 May 2021 11:20:34 +0100 Message-Id: <20210512102051.12134-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann this includes the Makefile and linker script to build all the tests. Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-5-kbastian@mail.uni-paderborn.de> --- MAINTAINERS | 1 + tests/tcg/tricore/Makefile.softmmu-target | 15 ++++++ tests/tcg/tricore/link.ld | 60 +++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 tests/tcg/tricore/Makefile.softmmu-target create mode 100644 tests/tcg/tricore/link.ld diff --git a/MAINTAINERS b/MAINTAINERS index 30f1e7d4e4..a3da27843b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -378,6 +378,7 @@ S: Maintained F: target/tricore/ F: hw/tricore/ F: include/hw/tricore/ +F: tests/tcg/tricore/ =20 Multiarch Linux User Tests M: Alex Benn=C3=A9e diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target new file mode 100644 index 0000000000..d64a99b95f --- /dev/null +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -0,0 +1,15 @@ +TESTS_PATH =3D $(SRC_PATH)/tests/tcg/tricore + +LDFLAGS =3D -T$(TESTS_PATH)/link.ld +ASFLAGS =3D + +QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel + +%.pS: $(TESTS_PATH)/%.S + $(HOST_CC) -E -o $@ $< + +%.o: %.pS + $(AS) $(ASFLAGS) -o $@ $< + +%.tst: %.o + $(LD) $(LDFLAGS) $< -o $@ diff --git a/tests/tcg/tricore/link.ld b/tests/tcg/tricore/link.ld new file mode 100644 index 0000000000..364bcdc00a --- /dev/null +++ b/tests/tcg/tricore/link.ld @@ -0,0 +1,60 @@ +/* Default linker script, for normal executables */ +OUTPUT_FORMAT("elf32-tricore") +OUTPUT_ARCH(tricore) +ENTRY(_start) + +/* the internal ram description */ +MEMORY +{ + text_ram (rx!p): org =3D 0x80000000, len =3D 15K + data_ram (w!xp): org =3D 0xd0000000, len =3D 130K +} +/* + * Define the sizes of the user and system stacks. + */ +__USTACK_SIZE =3D DEFINED (__USTACK_SIZE) ? __USTACK_SIZE : 1K ; +/* + * Define the start address and the size of the context save area. + */ +__CSA_BEGIN =3D 0xd0000000 ; +__CSA_SIZE =3D 8k ; +__CSA_END =3D __CSA_BEGIN + __CSA_SIZE ; + +SECTIONS +{ + .text : + { + *(.text) + . =3D ALIGN(8); + } > text_ram + + .rodata : + { + *(.rodata) + *(.rodata1) + } > data_ram + + .data : + { + . =3D ALIGN(8) ; + *(.data) + *(.data.*) + . =3D ALIGN(8) ; + __USTACK =3D . + __USTACK_SIZE -768; + + } > data_ram + /* + * Allocate space for BSS sections. + */ + .bss : + { + BSS_BASE =3D . ; + *(.bss) + *(COMMON) + . =3D ALIGN(8) ; + } > data_ram + /* Make sure CSA, stack and heap addresses are properly aligned. */ + _. =3D ASSERT ((__CSA_BEGIN & 0x3f) =3D=3D 0 , "illegal CSA start addres= s") ; + _. =3D ASSERT ((__CSA_SIZE & 0x3f) =3D=3D 0 , "illegal CSA size") ; + +} --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815894; cv=none; d=zohomail.com; s=zohoarc; b=G5Ysc3qeEQoHuUmBjqumskje6MudeNZVVQjibQzRSnucweS1fSqIJYTn0dFy9y8zXcPWepJE5nxtAdWkG/8jV6pKr6JT2iCKOziHv91N26OWtBC56vd84AlPZWRCFM8tMlAwxetVkIMil8jxK2JjuTmV71vjhND0puEVEajcnag= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815894; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yICXcB9Xc8sS5oqCx+QbGc9GZYDuZZrT+QLlCYTqMtM=; b=OhlQkudN+b49Pm6dXhZhW/gAOY/Sqe9NloPjoscoAh/V0F1OND3WmBlF1yYT+i8bKe7uqqkaJLBE5HE1VRMe3a29u03Xsp2RbI6qZmfKZ9pd9QBR6qnMzH+8YtQY756sB7B9DcdMWNfdvNFbZUG0aQvGTMdGtcGfAschO4D9x+I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815894185362.24084011701405; Wed, 12 May 2021 03:38:14 -0700 (PDT) Received: from localhost ([::1]:50808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmFp-0006Fh-4Q for importer@patchew.org; Wed, 12 May 2021 06:38:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzO-0003tt-Qn for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:14 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:37644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzN-0003jf-0d for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:14 -0400 Received: by mail-wr1-x433.google.com with SMTP id q5so3583874wrs.4 for ; Wed, 12 May 2021 03:21:12 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m6sm31453243wrp.29.2021.05.12.03.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:21:09 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9BB5A1FF9E; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yICXcB9Xc8sS5oqCx+QbGc9GZYDuZZrT+QLlCYTqMtM=; b=K0aoahjRUf9DsO9fZsnpyVNzl9+Ffrf5nDnWTeJuxaqQf/lvp8V0GRgm65+dEu1B3V AfmhkPkFohQ4W8ZnuTxCbjtw+B4acx1b7NGBHFJRQPVZAxHuzGPRXOlzNUU3RRymyDkD 96LclPUffB/owSk5M3xE5CmDlLMho+/4rIpwGKH9WjjL4CwvzCofNPcdGUmMtWG56Q3e IArz3n+5du0uu2Dn2RM1nS1kfklf1DL3qoadn8RU9aAWLxqmrAr+lE2hCsPLoP1e6fOs /VqUn+3K0Dh51qpch7VNeFBi3Y5O51S9qQrvjscDOLX/ufKENumVpwVrrH3DyAa+IGav viTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yICXcB9Xc8sS5oqCx+QbGc9GZYDuZZrT+QLlCYTqMtM=; b=OK/m+W9tHB0zVmecSZkKLeQDOqAaDFLnrswuN1kX6t/y8WLfw08uNKrMfO74GLSHBu gOwvJF79WRVyZH5lhFsOjc9dcAmRcycmMgDI3y4n/a0e26/3o512Msw4Y1voStGlIpX8 wtZi/mgDCL5o/FK33Vk+UdonrSXtY1IaRPVfnrNY4zDXqUKfuqjeu6EknTor2BC7NLoJ tgmPr/BpdUYGKJwBDpbep38eWfCM7he5vBy5aX+EViNm+Ss70NU/p89P4ioC9dwbzLMF ELMuYjwuPhbwi9U6rUQJ2Pul2fD8IItr3o8pccFDWHNtdDQ6QA9mIL0/m1bg0EF1pPoy Lvxg== X-Gm-Message-State: AOAM532kbuXl3lB89KOypewvni9v9fbnHkYFcNLXSqhkOIfjdymiTrbT YUoiInX6qKeONyDqn1IIyIDrng== X-Google-Smtp-Source: ABdhPJyTEKI820XD910/iVuyl7m+e9bD/HvMxvILiXxfrKdN7Oq3faDbAECg39VB1UJ0twzdAVfPZg== X-Received: by 2002:adf:f78d:: with SMTP id q13mr9401803wrp.405.1620814871603; Wed, 12 May 2021 03:21:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 15/31] configure: Emit HOST_CC to config-host.mak Date: Wed, 12 May 2021 11:20:35 +0100 Message-Id: <20210512102051.12134-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann this is needed by the tricore-tcg-tests as tricore-gcc is not easily available. Thus we rely on the HOST_CC to do the preprocessing of the tricore assembly files. Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-6-kbastian@mail.uni-paderborn.de> --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index f3fe75db9d..1bf53961c2 100755 --- a/configure +++ b/configure @@ -6172,6 +6172,7 @@ echo "GENISOIMAGE=3D$genisoimage" >> $config_host_mak echo "MESON=3D$meson" >> $config_host_mak echo "NINJA=3D$ninja" >> $config_host_mak echo "CC=3D$cc" >> $config_host_mak +echo "HOST_CC=3D$host_cc" >> $config_host_mak if $iasl -h > /dev/null 2>&1; then echo "CONFIG_IASL=3D$iasl" >> $config_host_mak fi --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816468; cv=none; d=zohomail.com; s=zohoarc; b=lutnCZ09OqD9ugQCD1+ZQO8CjWaW2NxBmIou5+lAHWaQT1zfKoH0xT480Co6dKBP/OMb8Uir/wl7oy1nZSsGSKdUO0xB1yFxOzWJc2IaTGzv9y8BL0M/Xu+7Rq4PN4GbBBHz90qrzQ6uP+PMva/kFp0ldvkSLei/yCIU0ZlCxUw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816468; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=UDzjlNZz/GlC70CH5HhSB4c445lM3jEK8WC7UgJUryw=; b=KN9yH1n87nF5Q1nWjLVaqTQ9or7eggIyFJb7pj9r3Mo6nC+XlaFw3Cw5CD8deX739BT8FHsTUjorLC64N3/M9ACDw4wPAvF1i8+Xsjj+wTAA+lz+1gufCVej2RApeLFdXCPi6uu5w7w5Inqs22KW8vSuKuUjiUrxyM8AT2g2FHc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816467972491.37431538005274; Wed, 12 May 2021 03:47:47 -0700 (PDT) Received: from localhost ([::1]:51740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmP4-0000lt-NO for importer@patchew.org; Wed, 12 May 2021 06:47:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgmI0-0004Ej-HC for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:28 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:40472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgmHy-0006Li-Cj for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:28 -0400 Received: by mail-wm1-x334.google.com with SMTP id y124-20020a1c32820000b029010c93864955so1140536wmy.5 for ; Wed, 12 May 2021 03:40:25 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r5sm29327858wmh.23.2021.05.12.03.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:40:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B6D881FF9F; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UDzjlNZz/GlC70CH5HhSB4c445lM3jEK8WC7UgJUryw=; b=JSixV4Y4WaGbP32TuFvsgFwmfv68YGA9cxuVVro4uq9CpxZ/OvSpXfxkMzfqZ5VcTm SowhKzFl9pWhWY9F1+r0Z3dlhaEEU+HKK4+PAwyX546vrJlgFGTNlNjdN6l5a/G3Nzqa QftKcx+ONNAQM9uwjwuDTpZImyWVh0KRalTIlc8HDHnq/eFC4mnMcEhO0k1eH/BoanZI lBP2KorGlDYYuU4vp/k9Ki1t7p3Wv83TZlbL4nJ8syyHHqjeo9PP1f1d8orVgQwzWITr qbDUICm7asLQPLN4DsX7yV3HOimg2aiMo9sba9r82zd3kHT4zEfGNBC888vOH1OOtAdy JAlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UDzjlNZz/GlC70CH5HhSB4c445lM3jEK8WC7UgJUryw=; b=fDtT2J28eTSbWVxkEmsGL51Mv3lCF3BQEfK8xiYPqrpyHIy9xaZeFZND2U/hZ/XQ9E kY+byzySwOhu43Jc2uyuqlcW/G0KZWCVcadaiTlMlwtG0F4vsOp2+pZXcveIoYQhJWvp s3/6EZx7yNS1IV879ILQMqxsrRcQjRXaot0C4+iw13fv1q+6fLRJ7OtoI6J37/m9sx/k 24a2I7o+xyFxVRlApg+uedpxrQbssysBxbU2yeJ9uhN2WIb3uWErBf/uLQaPYPk+noEe utfqSKNrtkY0bZlxZBSynuqHKfA/ObvnXp/bZuvyaUJH9w8gMl0WnQHSyS0oV6FedL4s kGpg== X-Gm-Message-State: AOAM531vdcsluVPjy7sGK1OE0Yep+XOBEBU36lzQ8uhrnqQ8uiJBNHao 5E76HkbCJ81mmPOzNuP2KDnzBQ== X-Google-Smtp-Source: ABdhPJwc1nXrosksLrw9sFdmWlnUsxCX7Eq1b+Puvoo3tPq+uEe5sOHVcWZmx4xO33lZURzAmpijMg== X-Received: by 2002:a05:600c:350a:: with SMTP id h10mr38982798wmq.119.1620816024399; Wed, 12 May 2021 03:40:24 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 16/31] tests/tcg/tricore: Add macros to create tests and first test 'abs' Date: Wed, 12 May 2021 11:20:36 +0100 Message-Id: <20210512102051.12134-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann This kind of tests is inspired by the riscv-tests repository. This adds macros that makes it easy to create single instruction self containing tests. It is achieved by macros that create a test sequence for an instruction and check for a supplied correct value. If the value is correct= the next instruction is tested. Otherwise we jump to fail handler that writes is test number as a status code back to qemu that then exits on that status co= de. If all tests pass we write back 0 as a status code and exit. Reviewed-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Message-Id: <20210305170045.869437-7-kbastian@mail.uni-paderborn.de> [AJB: add container_hosts] Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/tricore/macros.h | 53 +++++++++++++++++++++++ tests/tcg/configure.sh | 6 +++ tests/tcg/tricore/Makefile.softmmu-target | 2 + tests/tcg/tricore/test_abs.S | 7 +++ 4 files changed, 68 insertions(+) create mode 100644 tests/tcg/tricore/macros.h create mode 100644 tests/tcg/tricore/test_abs.S diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h new file mode 100644 index 0000000000..76c133132a --- /dev/null +++ b/tests/tcg/tricore/macros.h @@ -0,0 +1,53 @@ +/* Helpers */ +#define LI(reg, val) \ + mov.u reg, lo:val; \ + movh DREG_TEMP_LI, up:val; \ + or reg, reg, DREG_TEMP_LI; \ + +/* Address definitions */ +#define TESTDEV_ADDR 0xf0000000 +/* Register definitions */ +#define DREG_RS1 %d0 +#define DREG_CALC_RESULT %d1 +#define DREG_TEMP_LI %d10 +#define DREG_TEMP %d11 +#define DREG_TEST_NUM %d14 +#define DREG_CORRECT_RESULT %d15 + +#define DREG_DEV_ADDR %a15 + +/* Test case wrappers */ +#define TEST_CASE(num, testreg, correct, code...) \ +test_ ## num: \ + code; \ + LI(DREG_CORRECT_RESULT, correct) \ + mov DREG_TEST_NUM, num; \ + jne testreg, DREG_CORRECT_RESULT, fail \ + +/* Actual test case type + * e.g inst %dX, %dY -> TEST_D_D + * inst %dX, %dY, %dZ -> TEST_D_DD + * inst %eX, %dY, %dZ -> TEST_E_DD + */ +#define TEST_D_D(insn, num, result, rs1) \ + TEST_CASE(num, DREG_CALC_RESULT, result, \ + LI(DREG_RS1, rs1); \ + insn DREG_CALC_RESULT, DREG_RS1; \ + ) + +/* Pass/Fail handling part */ +#define TEST_PASSFAIL \ + j pass; \ +fail: \ + LI(DREG_TEMP, TESTDEV_ADDR) \ + mov.a DREG_DEV_ADDR, DREG_TEMP; \ + st.w [DREG_DEV_ADDR], DREG_TEST_NUM;\ + debug; \ + j fail; \ +pass: \ + LI(DREG_TEMP, TESTDEV_ADDR) \ + mov.a DREG_DEV_ADDR, DREG_TEMP; \ + mov DREG_TEST_NUM, 0; \ + st.w [DREG_DEV_ADDR], DREG_TEST_NUM;\ + debug; \ + j pass; diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index ed378e7840..11009fe433 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -180,6 +180,12 @@ for target in $target_list; do container_image=3Ddebian-sparc64-cross container_cross_cc=3Dsparc64-linux-gnu-gcc ;; + tricore-softmmu) + container_hosts=3Dx86_64 + container_image=3Ddebian-tricore-cross + container_cross_as=3Dtricore-as + container_cross_ld=3Dtricore-ld + ;; x86_64-*) container_hosts=3D"aarch64 ppc64el x86_64" container_image=3Ddebian-amd64-cross diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index d64a99b95f..3b048e49fa 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -3,6 +3,8 @@ TESTS_PATH =3D $(SRC_PATH)/tests/tcg/tricore LDFLAGS =3D -T$(TESTS_PATH)/link.ld ASFLAGS =3D =20 +TESTS +=3D test_abs.tst + QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 %.pS: $(TESTS_PATH)/%.S diff --git a/tests/tcg/tricore/test_abs.S b/tests/tcg/tricore/test_abs.S new file mode 100644 index 0000000000..e42240159a --- /dev/null +++ b/tests/tcg/tricore/test_abs.S @@ -0,0 +1,7 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_D(abs, 1, 0, 0) + + TEST_PASSFAIL --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816256; cv=none; d=zohomail.com; s=zohoarc; b=U4FGTYFrlfBrSSQ0z9auwrkzelIqFQWxUFALuJrYw6YvzcAJUajgBJn1zDg0pJUZEhZJG/cpYNU7zZd9d2HYS8xzszSFjzIpnuduWcIuF7oVc5zP8BK4XQKN3LzomF8ZXXDbVnGBGgmhzMU1aTJXUsPgv55R5qZg+ptxt/ztTYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816256; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VIg7qw3G3Wf81cGSwkWP+w1Bj/vvGUaYloDj5g7DKuk=; b=Cymr/NIc30xNKedjp+ILd0penFeyRX35OVXb+Degg1+MamPgNIfTm2aYJ+tJmDTqso9CVAeJPX3qasvrcM2Q7/O/j7NH54J2AIENbyk24ZhnNNsgzsiXt7u4IqtGA9xXiNhnuNRvcVSJK4G67QTaJjlNj2G9kvuHWsqaolnDDFA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162081625652130.470271505105302; Wed, 12 May 2021 03:44:16 -0700 (PDT) Received: from localhost ([::1]:44336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmLf-000484-CT for importer@patchew.org; Wed, 12 May 2021 06:44:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8Y-0000cd-F7 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:42 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:46617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8S-0000ar-DG for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:42 -0400 Received: by mail-wm1-x32c.google.com with SMTP id p14-20020a05600c358eb029015c01f207d7so2763120wmq.5 for ; Wed, 12 May 2021 03:30:35 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i13sm29748705wrs.12.2021.05.12.03.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D291D1FFA5; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VIg7qw3G3Wf81cGSwkWP+w1Bj/vvGUaYloDj5g7DKuk=; b=GPp839Uib6u5hV2HnyqfmtcjjkUVFMzChyu+Ub/i+R9B510dYZ+LLma3ro6abLkCgO J4L4w4AY2gVhVAtsD1LMO556q9Q2n29NSmhI8gyHdkclgXyUZao2lnDT7g2gzJhwPkfb mVI/oRfYdk5K51YZfaot5DVapQ6+Etz2zn2xPfvEUzeeh3/hfnzxkqAUfdstR5ujpP4u OYrYWd4xrx8EOG1+COy38d8Zrk4H7AHTfOoeXMbE1uEUM0eIm2dwKJbKqN+ltDX+3wfC kecMAqVNaxbFkh+rYOMT8gTcJHgvD3zCqabLk/BD/02DpDJSttbupU2+NnJvs9+232ei UHFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VIg7qw3G3Wf81cGSwkWP+w1Bj/vvGUaYloDj5g7DKuk=; b=GHGLsQSaV0aWWLbRhxDOA//leA/T2mHldBm1zO/bzxIBnrXePvEqAy55HgXPphlmIk oVFF+ys8/I8UPQ+CKVji2yRjhNXpQXT5yn1orwRevlzbRFH9DkVa7XO2Lj1L8LbVz3/W 2/lUs9nG1u/YtMynchaxzm4BrJ/zHgypYHFbzMddceNoN5Xu/4xNNsXVVi1UnoXKl4Vb lLkKgLn75LpNJSVLzw5ZunBCUXlCjTFHXYaC0FoMxn0umT1XLhfosTHLpyfnSFIh/3jh LMn943l0c1XI2XRcw8oo+m8IXXgTA7TQyskcA/9jNqbYpwp5FKZ93Vcnmd2ecTg+wGod unyg== X-Gm-Message-State: AOAM531CsBELv8RJ28aecXIrRqZ1rKteo4MGJuK1Q2zr6JJzyEx+A2LT eJJmxLYV7p/VkjQBpOsBD87CBA== X-Google-Smtp-Source: ABdhPJzXQTdNKJkzxKFLWvX1BKuNYYm1KHxEDy3u0zF5/EuqkvrPKl8qhwRpZFh/surXRTwqHfaCiw== X-Received: by 2002:a1c:3945:: with SMTP id g66mr878223wma.70.1620815434355; Wed, 12 May 2021 03:30:34 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 17/31] tests/tcg/tricore: Add bmerge test Date: Wed, 12 May 2021 11:20:37 +0100 Message-Id: <20210512102051.12134-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-8-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/macros.h | 24 +++++++++++++++++++++++ tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_bmerge.S | 8 ++++++++ 3 files changed, 33 insertions(+) create mode 100644 tests/tcg/tricore/test_bmerge.S diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h index 76c133132a..52aa936c56 100644 --- a/tests/tcg/tricore/macros.h +++ b/tests/tcg/tricore/macros.h @@ -8,7 +8,10 @@ #define TESTDEV_ADDR 0xf0000000 /* Register definitions */ #define DREG_RS1 %d0 +#define DREG_RS2 %d1 #define DREG_CALC_RESULT %d1 +#define DREG_CALC_PSW %d2 +#define DREG_CORRECT_PSW %d3 #define DREG_TEMP_LI %d10 #define DREG_TEMP %d11 #define DREG_TEST_NUM %d14 @@ -24,6 +27,17 @@ test_ ## num: \ mov DREG_TEST_NUM, num; \ jne testreg, DREG_CORRECT_RESULT, fail \ =20 +#define TEST_CASE_PSW(num, testreg, correct, correct_psw, code...) \ +test_ ## num: \ + code; \ + LI(DREG_CORRECT_RESULT, correct) \ + mov DREG_TEST_NUM, num; \ + jne testreg, DREG_CORRECT_RESULT, fail; \ + mfcr DREG_CALC_PSW, $psw; \ + LI(DREG_CORRECT_PSW, correct_psw) \ + mov DREG_TEST_NUM, num; \ + jne DREG_CALC_PSW, DREG_CORRECT_PSW, fail; + /* Actual test case type * e.g inst %dX, %dY -> TEST_D_D * inst %dX, %dY, %dZ -> TEST_D_DD @@ -35,6 +49,16 @@ test_ ## num: \ insn DREG_CALC_RESULT, DREG_RS1; \ ) =20 +#define TEST_D_DD_PSW(insn, num, result, psw, rs1, rs2) \ + TEST_CASE_PSW(num, DREG_CALC_RESULT, result, psw, \ + LI(DREG_RS1, rs1); \ + LI(DREG_RS2, rs2); \ + rstv; \ + insn DREG_CALC_RESULT, DREG_RS1, DREG_RS2; \ + ) + + + /* Pass/Fail handling part */ #define TEST_PASSFAIL \ j pass; \ diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index 3b048e49fa..de6a2cc88e 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -4,6 +4,7 @@ LDFLAGS =3D -T$(TESTS_PATH)/link.ld ASFLAGS =3D =20 TESTS +=3D test_abs.tst +TESTS +=3D test_bmerge.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_bmerge.S b/tests/tcg/tricore/test_bmerg= e.S new file mode 100644 index 0000000000..8a0fa6d3f6 --- /dev/null +++ b/tests/tcg/tricore/test_bmerge.S @@ -0,0 +1,8 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DD_PSW(bmerge, 1, 0x555557f7, 0x00000b80, 0x0000001d, 0x0000fff= f) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816176; cv=none; d=zohomail.com; s=zohoarc; b=eV+IG6yg+56kIplPpVd8KEntKtA9jr08C5+WF1H25NQ0sBFCIvQX1hYOJrQ5wpMq0kGwj/4q4mRDFp4D89+uiO9eYID5o4kjY4TwAcbn4qHHr0pfajGICf/pZOA6hDQEDa7CiKwh2NsV1BSoAFwIKc7R6dndA/2/ehshDK0xyds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816176; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=c76BcPh9aIVhKtSX4qzaL9wAIUWIuodM0Bd6DMYmjgZFxd1JpVBKJDy3nn7uoZl21fQcxNG9PtMDSgnyu2c/ytu9XHlwxI5ia9xA3BjZjZUEWuq8nEG6mLvfNneRnjNUq1gNoUv+to/dvAIqx7mY3m7Eu4zJhBf8MFahFJ94oAQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816176750191.6209479569369; Wed, 12 May 2021 03:42:56 -0700 (PDT) Received: from localhost ([::1]:39786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmKM-00015k-Lu for importer@patchew.org; Wed, 12 May 2021 06:42:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgmI2-0004Hx-0D for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:30 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:51955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgmHy-0006Ms-LI for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:29 -0400 Received: by mail-wm1-x336.google.com with SMTP id u133so1254030wmg.1 for ; Wed, 12 May 2021 03:40:26 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id d127sm5720416wmd.14.2021.05.12.03.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:40:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id EB64A1FFA6; Wed, 12 May 2021 11:20:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=vYm3n9aIbWkvu5NCQnLit2T0Y3CL5USOGhRjKitlcjDhzcssmcJykxGCOpAbx088sJ e366noke9rJI7rhnHyx4pGTbGCL3s+kbNnzrjqayLNH+01dky2TCvhATyk67Vi0EGO+g JiHQVi4Oh10C1AB9BpJdtL6tBAP9/myJTZACXI0lCng5Y5SIQrHljnpALv8+gDA5vtIs jhP6EDElhZle5qLEWxQS6s2Z2LtnF3/Eze49J1lqvhAksl+Q3cO/TDZGHERwlzZyucQs RI/ENIqFnSNWnIO5cHprS6Cy+flBjN+eT6G+cmDmOr9p4Q9k1I77MvqTU/aZLs6MJi9S GQaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=h2stgih6s9HtWtb0/8Uayk9T0ZVT3IdQ5Vr6D/mSaDlmhjkfyIbAfjeagh1zp9rP2U 1Q8v2W4jvwNZkHZO/xxzYn0Bc3+PyeWfSVi8ZJ6LYDJzkyenDCOhnFbam+hB5mR0s6j1 X4S2wzx885l/MwKbi54mua+w5N2fklL5k+pc/AOSU/eRFEjTtprULX0Xvz6u8s3w4yWn Voh9TAaEbGUdWpxA8WQ4X00bgTbnAj52QwBo5Sfqn6EzlSXn1iEztk78MnPkC09ARxSq BK0iDuxFHG+5aSQ6PP6VNUZIdW4B2f668jNNp6D2O/DkLEPbs53X58aPM/i6t+ayh+t/ ZxUA== X-Gm-Message-State: AOAM530skbNpgYy7k79vWwFGduXiO/SGRM7JHN6bZKRkCL3RAo1NzF6M TsXd5tAhXSEPtisVnd2BZzvnxg== X-Google-Smtp-Source: ABdhPJwCI6sICGT2jgkNTRgrimqiNa2aBD8r0GPgj2Duqrs/XbzBYsmMIot8uK5WCOm65XE/KKxQvQ== X-Received: by 2002:a05:600c:190f:: with SMTP id j15mr10662282wmq.57.1620816025220; Wed, 12 May 2021 03:40:25 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 18/31] tests/tcg/tricore: Add clz test Date: Wed, 12 May 2021 11:20:38 +0100 Message-Id: <20210512102051.12134-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann [AJB: dropped duplicate Makefile] Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-9-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_clz.S | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/tcg/tricore/test_clz.S diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index de6a2cc88e..a9b81545e2 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -5,6 +5,7 @@ ASFLAGS =3D =20 TESTS +=3D test_abs.tst TESTS +=3D test_bmerge.tst +TESTS +=3D test_clz.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_clz.S b/tests/tcg/tricore/test_clz.S new file mode 100644 index 0000000000..e03835f123 --- /dev/null +++ b/tests/tcg/tricore/test_clz.S @@ -0,0 +1,9 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_D(cls.h, 1, 0x0, 0x6db17976) + TEST_D_D(cls.h, 2, 0x000f000f, 0x0) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815835; cv=none; d=zohomail.com; s=zohoarc; b=UrBujgR9puYyYZBXEfiZ2Ajdtu77/l8937Re5aYLyeMdye7vCIjKDK4j7J4QNDR8gdNDACdMCvlbyHQChbyiBHpoTPqTcThCd+391ulJ5SXwbFSm8694yZYZ8Lw5RJfXis5dA6re7hBlNAUqszNoGNxhrrfnxhv3v/tKKRZG3Ew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815835; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oqpvL+FTeb8gxiE0Ls/4xrGbn7FVvV4JNtq3sVPSwPU=; b=JGV3VMK8oME3eGA2e7J7YgDjCaNL2K+CBY/A4E+Alu4EfA79ENuSBR7Z2C+On9CMgnBDROu1HXk9aMQk8FkboKXq6WHNqzFzx6svsL+Ovv0WZs4uCxKZgIOPn56AAHMkc9l3CzcrZund7ZTUudJ9fjkGTJbQFUhqoVKF69W2Cow= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815835446978.6926389367322; Wed, 12 May 2021 03:37:15 -0700 (PDT) Received: from localhost ([::1]:47554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmEs-00041U-99 for importer@patchew.org; Wed, 12 May 2021 06:37:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzT-00044z-OI for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:19 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:39518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzQ-0003ld-KM for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:19 -0400 Received: by mail-wm1-x332.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso375503wmh.4 for ; Wed, 12 May 2021 03:21:15 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c62sm15960791wme.5.2021.05.12.03.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:21:09 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1383A1FFA9; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oqpvL+FTeb8gxiE0Ls/4xrGbn7FVvV4JNtq3sVPSwPU=; b=NIv8WGs0OjIlKudLxK0c4PUuXI0ibwhPMff9Q9mc2Yu3tDPgyAg8gfsBPUWt/90rUb N6QxG+GyrQXA6yAbrtEpHh1+P72w/MKme1ndwb11xBWesg0xQh426CakmnRmc86flu+r 55Rs+HvEcXFxLjIxpruo+twVUDcc6fyqbMUPBxBOpbZj0uMjDUe/eDQKmZ+XhoWlNdx1 4ERWshDwkVNqoy45kxyE8usDyI59Z0R08/98Eg22I3VCOw5mwZg1rl/Ab8mIw7tGAF9i acocxMkos3hNcOyug8ELcWtYIejJpv6piwK+r69jLWDYgxiAW7D9NK2p1gDEkTg6YCqQ NcIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oqpvL+FTeb8gxiE0Ls/4xrGbn7FVvV4JNtq3sVPSwPU=; b=hET8NkPXLIAlhgCU9xma2xwNOnPRqGApkkM8ELZQhv7yBrrJpKcEVfr3hKOgcRMfuH NnXAQepQgJHb5VTWEspU3/G65UKZgH7PJwa9em6IpN7RiWwqCKklSCTPWasB5MpU3apP SDk48b7OoWyPfUxqe8iiFYTxaaNvA19QCEzG4cOEvqvvDt4v7Vks9GyloYPQFIPDYSu1 KLIomJ0+Sq0A18kju43xv+Mj+9kydb8JXiNRGEN3frf1n2fpDU8MukyHnKagIBFQ6xC7 C8ANHE0XZmGbZTzWx/LLysuLswIhefPM2aihJPNRT7ina5AT0n6N0n4Q+A8rXoRe+sZU l8Fw== X-Gm-Message-State: AOAM5333ZpF4BMoVhbCnMPRgutjG8SMGX2wUH8LoaI63N0E63jxsp88+ k9xUSN3/NS+zyGMoThrSTs7boA== X-Google-Smtp-Source: ABdhPJxcnefHnl4OwcLNDpsxZJ2mxW82R5LE5X1/7yFtwMh1bdUTKp9RAgOfbMSmQn2RvCHhuEXKDQ== X-Received: by 2002:a05:600c:3388:: with SMTP id o8mr10622050wmp.101.1620814874678; Wed, 12 May 2021 03:21:14 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 19/31] tests/tcg/tricore: Add dvstep test Date: Wed, 12 May 2021 11:20:39 +0100 Message-Id: <20210512102051.12134-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-10-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/macros.h | 29 ++++++++++++++++++++++- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_dvstep.S | 15 ++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/tricore/test_dvstep.S diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h index 52aa936c56..59b4b9a352 100644 --- a/tests/tcg/tricore/macros.h +++ b/tests/tcg/tricore/macros.h @@ -19,6 +19,18 @@ =20 #define DREG_DEV_ADDR %a15 =20 +#define EREG_RS1 %e6 +#define EREG_RS1_LO %d6 +#define EREG_RS1_HI %d7 +#define EREG_RS2 %e8 +#define EREG_RS2_LO %d8 +#define EREG_RS2_HI %d9 +#define EREG_CALC_RESULT %e8 +#define EREG_CALC_RESULT_HI %d9 +#define EREG_CALC_RESULT_LO %d8 +#define EREG_CORRECT_RESULT_LO %d0 +#define EREG_CORRECT_RESULT_HI %d1 + /* Test case wrappers */ #define TEST_CASE(num, testreg, correct, code...) \ test_ ## num: \ @@ -27,6 +39,15 @@ test_ ## num: \ mov DREG_TEST_NUM, num; \ jne testreg, DREG_CORRECT_RESULT, fail \ =20 +#define TEST_CASE_E(num, correct_lo, correct_hi, code...) \ +test_ ## num: \ + code; \ + mov DREG_TEST_NUM, num; \ + LI(EREG_CORRECT_RESULT_LO, correct_lo) \ + jne EREG_CALC_RESULT_LO, EREG_CORRECT_RESULT_LO, fail; \ + LI(EREG_CORRECT_RESULT_HI, correct_hi) \ + jne EREG_CALC_RESULT_HI, EREG_CORRECT_RESULT_HI, fail; + #define TEST_CASE_PSW(num, testreg, correct, correct_psw, code...) \ test_ ## num: \ code; \ @@ -57,7 +78,13 @@ test_ ## num: = \ insn DREG_CALC_RESULT, DREG_RS1, DREG_RS2; \ ) =20 - +#define TEST_E_ED(insn, num, res_hi, res_lo, rs1_hi, rs1_lo, rs2) \ + TEST_CASE_E(num, res_lo, res_hi, \ + LI(EREG_RS1_LO, rs1_lo); \ + LI(EREG_RS1_HI, rs1_hi); \ + LI(DREG_RS2, rs2); \ + insn EREG_CALC_RESULT, EREG_RS1, DREG_RS2; \ + ) =20 /* Pass/Fail handling part */ #define TEST_PASSFAIL \ diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index a9b81545e2..799b51191e 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -6,6 +6,7 @@ ASFLAGS =3D TESTS +=3D test_abs.tst TESTS +=3D test_bmerge.tst TESTS +=3D test_clz.tst +TESTS +=3D test_dvstep.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_dvstep.S b/tests/tcg/tricore/test_dvste= p.S new file mode 100644 index 0000000000..858dbc62dd --- /dev/null +++ b/tests/tcg/tricore/test_dvstep.S @@ -0,0 +1,15 @@ +#include "macros.h" +.text +.global _start +_start: + # Result RS1 = RS2 + TEST_E_ED(dvstep, 1, 0x000001ff, 0xfffe5cff, 0x00000001, 0xfffffe5c,= 0x0) + TEST_E_ED(dvstep, 2, 0x00000000, 0x000000ff, 0x00000000, 0x00000000,= 0x0) + TEST_E_ED(dvstep, 3, 0x0000f000, 0x000000fd, 0x010000f0, 0x00000000,= 0x0) + TEST_E_ED(dvstep, 4, 0xfffff000, 0x00000000, 0x7ffffff0, 0x00000000,= 0x0) + TEST_E_ED(dvstep.u, 5, 0xffffff00, 0x100008ff, 0xffffffff, 0x00100008,= 0x0) + TEST_E_ED(dvstep.u, 6, 0x00000100, 0x00000000, 0x08000001, 0x00000000,= \ + 0xffffff2d) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815962; cv=none; d=zohomail.com; s=zohoarc; b=O3Zakp7TvqPP/opRl9xRN2wKQgLIw3oqDbXGPA4HPHNBNbAZuPmNd0cnNyO55kXu1q0zwSjDu+Ve7iZpoP3CFvRiHjYOidCAL+zI0H2FwC5R5m3GDzGNcS+10oGsDlMc6tFRL3zcYdVMfnV2vpHzGkhlZUniLD2uGgjxU1uucL4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815962; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=PF4bKXGp643Xb8ye/KoZ/f7rl7SZ20pVgHhaYzdn3vTaMXJK9HdLhajriEJ5FGNes0WXpThHaIuWELPwu+FTLCtXtzfTvhhA90oOo/pIvEol78UY8G9F3Y9Soxt88dGAUj12aRx8oU/gdNoypRRFrYEQpT/taqVga/rHpKyyprU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815962898155.26099460607986; Wed, 12 May 2021 03:39:22 -0700 (PDT) Received: from localhost ([::1]:55932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmGv-0001KT-QX for importer@patchew.org; Wed, 12 May 2021 06:39:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lglzU-00047n-Cx for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:20 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:46593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lglzP-0003kY-7j for qemu-devel@nongnu.org; Wed, 12 May 2021 06:21:20 -0400 Received: by mail-wr1-x434.google.com with SMTP id x5so23038962wrv.13 for ; Wed, 12 May 2021 03:21:14 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f8sm23630982wmg.43.2021.05.12.03.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:21:09 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2C6591FFAA; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=RfDL8BohfdpYSp2/CNbyobkpF0VqLUPwlAIN4iTZyczT9cna58dZCL0aHUC/XowMew npINx01nLcG297XiiKbsbEjPrc30NADsLjjWf23axmPo3GkGfo1pyJ2YirK7ECIZB6tE +s4qhdZlhSF8DXkHVIBAWlx2Inp6daWdSBvQj/ZHhPZ4ebhZsI5qbi9aSOqOVotuO6e0 /1yEBbupSl46Zx86a1SPErLIB/nVkZ8JV7GkVBSmEUdxPyJ1FXLO2HFkP3r/3GeKnP43 Wby/4fEhTSOcEiIzCjcFjlJpwl1y82A7K3Jlf4rlkqMdWYHvyVkpur+hrc4u4YuIhESk 4zzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=aK8iHRa2iV8JOTOkwRgc52dc9hLpzEeVC3VNUTXNLsH4Tksmepwy8fkEyYSWFxTmf4 pUmvggKopzDYwbkgj5MpIoMD8BjDAdo1NSD4rGaokkJ3dIhaIhXpW42WeGrJ8yU/Y8Jx RT8AWGRiGt/RNqyRxdyP34mZbW0tsrdqmLos5cqH6HCKPhoz35/Oy7FpyGnL6NN7laqN 9zkfIMTfyvbTnEA7sQ/YBPDhSUJat82lH+acGdjXCvmU4xIrdH5BJtY36duwhSUDd7r0 BwzBNJ9IkQ64AH4sk7J9YhqdWnVkmF8rteg+SDT7gv1HOjTfjA3U4USHS/8uQ5iIM0S3 Kh5A== X-Gm-Message-State: AOAM533YWfSFXCEHxgasZHbSMS/gRZsVDw7ub7VyNRriZw7Hfk5PftCt 0DYQvdPo4scTGJa7m44EZvDCpA== X-Google-Smtp-Source: ABdhPJxyW6N3USEOgSaQj3MwAbXZS5pfCjDO7I2lO65GWvpDpYC1klF9HaDsbQ5XP6Xah8Id6FpfCw== X-Received: by 2002:a5d:400f:: with SMTP id n15mr40094132wrp.274.1620814873872; Wed, 12 May 2021 03:21:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 20/31] tests/tcg/tricore: Add fadd test Date: Wed, 12 May 2021 11:20:40 +0100 Message-Id: <20210512102051.12134-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-11-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_fadd.S | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/tcg/tricore/test_fadd.S diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index 799b51191e..e7adb16af9 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -7,6 +7,7 @@ TESTS +=3D test_abs.tst TESTS +=3D test_bmerge.tst TESTS +=3D test_clz.tst TESTS +=3D test_dvstep.tst +TESTS +=3D test_fadd.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_fadd.S b/tests/tcg/tricore/test_fadd.S new file mode 100644 index 0000000000..1a65054803 --- /dev/null +++ b/tests/tcg/tricore/test_fadd.S @@ -0,0 +1,16 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DD_PSW(add.f, 1, 0x7fc00000, 0x00000b80, 0xffffff85, 0x00001234) + TEST_D_DD_PSW(add.f, 2, 0xf9c00000, 0x00000b80, 0xf9400000, 0xf9400000) + TEST_D_DD_PSW(add.f, 3, 0x8bb858ca, 0x00000b80, 0x8b3858ca, 0x8b3858ca) + TEST_D_DD_PSW(add.f, 4, 0x00000000, 0x00000b80, 0x000000ff, 0x00000000) + TEST_D_DD_PSW(add.f, 5, 0x7fc00000, 0x00000b80, 0xfffffe52, 0x0a4cf70c) + TEST_D_DD_PSW(add.f, 6, 0x9e6d5076, 0x84000b80, 0x9ded50ec, 0x9ded4fff) + TEST_D_DD_PSW(add.f, 7, 0x00000000, 0x04000b80, 0x0000e8bd, 0x00000000) + TEST_D_DD_PSW(add.f, 8, 0x7fc00000, 0xc4000b80, 0xffad546e, 0xffad546e) + TEST_D_DD_PSW(add.f, 9, 0x7fc00000, 0x04000b80, 0xfffe0000, 0x08130000) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816113; cv=none; d=zohomail.com; s=zohoarc; b=fVyCg7O7nsidklm6Yzf3lWCnhQy00OI00qLTZJZNlLFwWHX4pLHbtsU6yjwfGa7pjfi0S5SCh3DPvwzSykremqMQUbyK5MhfL/LmmZapjbSTgBq87ljYZUAMEWcI8Wo8sc3L0+QRCa3dHoRMizr2DKMqSZepZzMJfqg47Xg4+qs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816113; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nkuvcu0WvoFkCO6R6g7fnkEZFEV/3ybgOm0lAYLlrqw=; b=d7JvmgnrZXDPeZVTzAHLRik7+Ezm1omrBz5VxMhcg1DdhCjXxiTBuzbRN4O8K4rEeHCYiY9U2yNLghlzJ/J4yo2h6KVi/72M+ZPRUVCIa6yiSDQn/+3zHhSlAK417l/JXVy57M5i1iMsa+HcWRjHLZTSACdZto6qJ57y3ScNi7Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816113813458.6693087461198; Wed, 12 May 2021 03:41:53 -0700 (PDT) Received: from localhost ([::1]:35806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJM-0006rb-OO for importer@patchew.org; Wed, 12 May 2021 06:41:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8X-0000bx-W3 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:42 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:33724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8Q-0000aJ-HK for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:41 -0400 Received: by mail-wr1-x42c.google.com with SMTP id n2so23138075wrm.0 for ; Wed, 12 May 2021 03:30:32 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b10sm35246886wrr.27.2021.05.12.03.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 45AC21FFAB; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nkuvcu0WvoFkCO6R6g7fnkEZFEV/3ybgOm0lAYLlrqw=; b=tdVI7L0kfLnLU7hIOJ20IPd/8+xh4NPgLtO6O5Z9uIhg4zTBL6iKFb70ag0cwFqBIc MqbVHzTiAU8UWCL2DBttWeRLLU6oF0V+l1t16Vz/ydpf7rS3fOMNi0LKalBb4PfFdkSt qEAuyvM4FdiDfvqsdvouQJCQSay+sIpqOJ3Ne6couHt/4H09Qwr311csH4ZdZ4uNF7Za zr1EbGER/SmCrQA2zp8PJTcR4TAdBxnOJzB/oOlua6sjRx5CiJX9KgGI0B9sXfzfVZCM VwTI4haumziEbJs09Jn0GTxIbJQMFv3TpBhEDj1j9e86sLrBb18mSH3cIvvnne+60r+H G8SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nkuvcu0WvoFkCO6R6g7fnkEZFEV/3ybgOm0lAYLlrqw=; b=rE4zy7PhqPGxwbCa9MjUC7ZLMAztk7VqjiPzIMmnWoy7GGgjhC08ChwHvnCk7iZqjk abArWfLZ/LH7YgdhhuXL6BfbSKmK5iTodc+FP2FxCEuqChzLa36ioBu9YRTxS/bjt61z qlj1ScyxrSVtHZx3J8qkjVtIcFc9f1p+shj1Hhst64BmlQYtl33iRMfRpy9BFl50+bIv CS63lTc5juTs7H4GQQYTLMcvwmXIt6LO4mUbL7ibfxmEVCntKygmtKsu3ySDtb6vBXAq kHf2BY1xul4ZeOp/92D83f7KcN+FJUwph6UoXWtAANs0peHX1BfHQ/a32wNEfK6JR47Z ti9Q== X-Gm-Message-State: AOAM531K/xTtQMiQrzWA5Pp/lhIvI6AnT7w+rKGgkQ80yFLhvXh5Viro QnUzKIKFs+IDzTIATuLocMMnlg== X-Google-Smtp-Source: ABdhPJyRECCQBHvBEar/WyYWF1WVwOyuxPuuMv1bw6enuWU4+jZRTEgtGt9ImGVQjLsubNhYXybVCQ== X-Received: by 2002:a5d:40c4:: with SMTP id b4mr45372275wrq.307.1620815431172; Wed, 12 May 2021 03:30:31 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 21/31] tests/tcg/tricore: Add fmul test Date: Wed, 12 May 2021 11:20:41 +0100 Message-Id: <20210512102051.12134-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-12-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_fmul.S | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/tcg/tricore/test_fmul.S diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index e7adb16af9..34da1f37de 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -8,6 +8,7 @@ TESTS +=3D test_bmerge.tst TESTS +=3D test_clz.tst TESTS +=3D test_dvstep.tst TESTS +=3D test_fadd.tst +TESTS +=3D test_fmul.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_fmul.S b/tests/tcg/tricore/test_fmul.S new file mode 100644 index 0000000000..fb1f634b2d --- /dev/null +++ b/tests/tcg/tricore/test_fmul.S @@ -0,0 +1,8 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DD_PSW(mul.f, 1, 0x974f4f0a, 0x84000b80, 0x1a0b1980, 0xbcbec42d) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815828; cv=none; d=zohomail.com; s=zohoarc; b=H1+ZWihLN8YnJoiORNneFtKIvVbLGRwi1iezm6rryP4yo0MYyPWC6LMqp6JvO7U7eyImyAW/a3ANvPXjDSKalGu99Hz6qVeaasoX8mO5e4Ee0iVytsFooQRFSZC2b3fqZk/r9a5GS+uWxT05izaSETbzq0/qyJ6UKa0C42HoiHc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815828; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=N52YWnuZLlPx8wUlhZrUjpPfF72LihVfzT4a0wPQRGQ=; b=VhPZMdwQg3uLCR65MRB2v7xRvMBOAfBkAKusEbshQWqVR+kxhfrrivv1LaFo4NTnyK1LyQn6XZAK8nA7hm9v1L1mbBV6xRrW/z4v/MzRYvAoGsWlcnN8sP2Eyk3DaUQfMoRdNGghsROh2eqEmE+wrEwo+GHAPMvR7GaYcoKViKM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815828508352.6979303550014; Wed, 12 May 2021 03:37:08 -0700 (PDT) Received: from localhost ([::1]:47146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmEl-0003kl-E4 for importer@patchew.org; Wed, 12 May 2021 06:37:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8S-0000Ui-Oa for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:36 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:43758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8I-0000Y8-Mb for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:36 -0400 Received: by mail-wr1-x42c.google.com with SMTP id s8so23084396wrw.10 for ; Wed, 12 May 2021 03:30:25 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c187sm5897088wmf.23.2021.05.12.03.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 608901FFAC; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N52YWnuZLlPx8wUlhZrUjpPfF72LihVfzT4a0wPQRGQ=; b=bPdM1aI5o+lER1K/TviJHINzamnzvTCT9sbIm1TQ0Io1q5SFnG8PiZjvt/UGwVAlnL 0VzG+rMzw3E4vDr5J1XKfUvBcN6noobTObfJJwXgRQje0G4z5tOR4/4KsSv84FOKqojW n7HeeCwICXx1Pc+sYL3Q/T5/mz23uPpOB2ZD1iCK0qzO8K0t3V0byz26b4JfvZck+X1j 65edoq9OWda5GOh6SDGWOgb0+LmdivZYzqj/A1mJuI/pKk7JVDwqwQmO5F1rav9zfAy9 wVE1BhJYjf09QZQxLtlPcQbT6SSaeS45TK8AXtHHXRazau5ZXMOUzmT8NiSjkt78Z2Oe 1Sfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N52YWnuZLlPx8wUlhZrUjpPfF72LihVfzT4a0wPQRGQ=; b=U3X0fZGCDM6CHbXhPRmppx9+g6O8ZdH00R1f9bUF5I3dqz1BbM8HxlyHyYgOq2U8lV EoE/yG72xFaiM+J227D7yZmFGd2NIlqTugjCxu/yrXiJ8F7YM3bvKVfMl9Melwk4rwy9 iEtUJwGam2oLZOwKlf94UvkCJLnY6khwgzOH1H0zqWpJWYEb9V1m3PsyWoQ0Xir2xPIa 65+aBeO91fhXwBXsRYBvSZiH0YnrBWtl/NRxoJB26TV0INNO1/ZuFlSki0XFhoDGMlE0 B/thN7uACkN5u4pyGSsvlT8T2JDu17GzUtYvcRxB2SyjnYpJC27MPd2JYJup3pPkB7KO /79A== X-Gm-Message-State: AOAM532/FKeHjFWNtwoBG/WxrEdedGr8REei6UmX4Eda5tDwAvQEBk3o 5CFCWcouMWdSN5R9N+ZtQlYG+g== X-Google-Smtp-Source: ABdhPJwZmehPYkd2nxxmmHd410Q16t52KXMhBqydYJbI3Pp0jNCwIVbTRsG5C7N/5M+qLJMbvEkc6A== X-Received: by 2002:a5d:590b:: with SMTP id v11mr43880460wrd.55.1620815424653; Wed, 12 May 2021 03:30:24 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 22/31] tests/tcg/tricore: Add ftoi test Date: Wed, 12 May 2021 11:20:42 +0100 Message-Id: <20210512102051.12134-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-13-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/macros.h | 7 +++++++ tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_ftoi.S | 10 ++++++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/tcg/tricore/test_ftoi.S diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h index 59b4b9a352..e6a41cd1a2 100644 --- a/tests/tcg/tricore/macros.h +++ b/tests/tcg/tricore/macros.h @@ -70,6 +70,13 @@ test_ ## num: = \ insn DREG_CALC_RESULT, DREG_RS1; \ ) =20 +#define TEST_D_D_PSW(insn, num, result, psw, rs1) \ + TEST_CASE_PSW(num, DREG_CALC_RESULT, result, psw, \ + LI(DREG_RS1, rs1); \ + rstv; \ + insn DREG_CORRECT_RESULT, DREG_RS1; \ + ) + #define TEST_D_DD_PSW(insn, num, result, psw, rs1, rs2) \ TEST_CASE_PSW(num, DREG_CALC_RESULT, result, psw, \ LI(DREG_RS1, rs1); \ diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index 34da1f37de..fcc7b6c1c9 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -9,6 +9,7 @@ TESTS +=3D test_clz.tst TESTS +=3D test_dvstep.tst TESTS +=3D test_fadd.tst TESTS +=3D test_fmul.tst +TESTS +=3D test_ftoi.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_ftoi.S b/tests/tcg/tricore/test_ftoi.S new file mode 100644 index 0000000000..fb4af6b5aa --- /dev/null +++ b/tests/tcg/tricore/test_ftoi.S @@ -0,0 +1,10 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_D_PSW(ftoi, 1, 0x0, 0x84000b80, 0x05f6e605) + TEST_D_D_PSW(ftoi, 2, 0x0, 0x04000b80, 0x00012200) + TEST_D_D_PSW(ftoi, 3, 0x0, 0xc4000b80, 0xffffffff) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816567; cv=none; d=zohomail.com; s=zohoarc; b=ejw8FUxQ7jxzdIMYtG36wwQ24ENYD7Nfid4u0qjhpKSABJLiPTFUrd9d0+4qTA6/qZSPuhCKT68sHytAhRQ8GKc+mS2QL5YYVWyD0VBEn7+SBwFodVDLgft7kPKGNATt2ui/SkmVwmBeFWEve9x1vtkAk83hfWSPDPnFjTAaAKY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816567; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=rPMh6kmt7DZA6FRYiUkJHikUFQXem/GBwsoB4cM/qp0=; b=MIRmWUnk+BaxO2gf1TsPiw+/0dWBUJUkkdGtOL2wWY2S0krLq5/uWXiBoSikASb2r9+lW0mcvsjbyCh1+Aon+nO5m86yADbmM9FtVqwZaF3RrqT4eoPfQESLn1/pClwXukZDis2PsKoqZyQbE8YJSobaKvwYKwhaO6vtI2eUqzs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816566826699.8261981173088; Wed, 12 May 2021 03:49:26 -0700 (PDT) Received: from localhost ([::1]:56060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmQf-0003f2-Hs for importer@patchew.org; Wed, 12 May 2021 06:49:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgmI2-0004Ir-An for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:30 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:46666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgmI0-0006P4-Ft for qemu-devel@nongnu.org; Wed, 12 May 2021 06:40:30 -0400 Received: by mail-wm1-x32c.google.com with SMTP id p14-20020a05600c358eb029015c01f207d7so2777291wmq.5 for ; Wed, 12 May 2021 03:40:28 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g19sm25088411wme.48.2021.05.12.03.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:40:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7BB761FFAE; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rPMh6kmt7DZA6FRYiUkJHikUFQXem/GBwsoB4cM/qp0=; b=TxAt6bM3DG/yw34WLeg5x5h+6dpqihOK3CXfPxo+eWRMrK2yE2YhWfcBcD6n+7vZYe L5spwSuo9vsZ4Wv5IZSVwb5BHnrBzv33GdRakivzqnRtjAz2NNQ7ZiuOrsApjWSrYo9z 5xhRcYlEpzGExq+1gKejSJ1c9IJALo7CSc7iH5WGnkKDw/cqOV8bEuIYiwfBEHZ7Qntn 1ew6bGsytsLHKxLqB+BlcxxEbgath+AK5pCyw673ysgoPyG93y8KF6M83OMURZEDNaLA 4hlvRe96omJgKeG+CeOXkTeLJLOnshZ82e7o/9Gg+9G49hIk9Fxgi76lhTz40eb3Ax+V bKsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rPMh6kmt7DZA6FRYiUkJHikUFQXem/GBwsoB4cM/qp0=; b=Y1Ehfu01z3uTF9m+Owj1k2UOY+YbUxwIO1c/czqPZWXgr0aHQ1o94mEGAdIVVk9AAs wsWS5lQ2slyByh+0dqu/Rd5zqtSsBzuN9ebJeG0HNF0nIkZUYZehb/mzCQ+2lWsIuW1G 8aGXgOV6h4m3MEryxNWioudDhlE7RIV51pbm4AfEzpVYVQFQIFtJkS1uPm/KH6B2amx1 UvBQzreI6mZlF0FtwnsKCBtUMjlbYGFxT5Lhwe0f3v0kq+9R1iyKZUPO7HI73T6TuFsf ZS47lBn1yIvXn6AhrYu/m3fy56L1ecJk8g8oTAePnRmCFmWxiDHIhtlIQW0ldhAttpm2 ON6g== X-Gm-Message-State: AOAM531Xd6Aisie8hbIPznImOwt1x6NIhr6OBdsCUl4vQxJ3QC27TkHH HbB4HtZy3vYYq5/0LEVE9T+oGw== X-Google-Smtp-Source: ABdhPJw/Qt7eR4I3VxvEaAbuxoXkc1J3P9okInl+AHY0Tj2vF0G3lkkn6+gGtRJKFAhVK7lYrPFflg== X-Received: by 2002:a1c:b7c4:: with SMTP id h187mr37759056wmf.178.1620816027180; Wed, 12 May 2021 03:40:27 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 23/31] tests/tcg/tricore: Add madd test Date: Wed, 12 May 2021 11:20:43 +0100 Message-Id: <20210512102051.12134-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-14-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/macros.h | 18 ++++++++++++++++++ tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_madd.S | 11 +++++++++++ 3 files changed, 30 insertions(+) create mode 100644 tests/tcg/tricore/test_madd.S diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h index e6a41cd1a2..0d76fc403a 100644 --- a/tests/tcg/tricore/macros.h +++ b/tests/tcg/tricore/macros.h @@ -9,6 +9,7 @@ /* Register definitions */ #define DREG_RS1 %d0 #define DREG_RS2 %d1 +#define DREG_RS3 %d4 #define DREG_CALC_RESULT %d1 #define DREG_CALC_PSW %d2 #define DREG_CORRECT_PSW %d3 @@ -85,6 +86,23 @@ test_ ## num: = \ insn DREG_CALC_RESULT, DREG_RS1, DREG_RS2; \ ) =20 +#define TEST_D_DDD_PSW(insn, num, result, psw, rs1, rs2, rs3) \ + TEST_CASE_PSW(num, DREG_CALC_RESULT, result, psw, \ + LI(DREG_RS1, rs1); \ + LI(DREG_RS2, rs2); \ + LI(DREG_RS3, rs3); \ + rstv; \ + insn DREG_CALC_RESULT, DREG_RS1, DREG_RS2, DREG_RS3; \ + ) + +#define TEST_D_DDI_PSW(insn, num, result, psw, rs1, rs2, imm) \ + TEST_CASE_PSW(num, DREG_CALC_RESULT, result, psw, \ + LI(DREG_RS1, rs1); \ + LI(DREG_RS2, rs2); \ + rstv; \ + insn DREG_CALC_RESULT, DREG_RS1, DREG_RS2, imm; \ + ) + #define TEST_E_ED(insn, num, res_hi, res_lo, rs1_hi, rs1_lo, rs2) \ TEST_CASE_E(num, res_lo, res_hi, \ LI(EREG_RS1_LO, rs1_lo); \ diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index fcc7b6c1c9..8de005523e 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -10,6 +10,7 @@ TESTS +=3D test_dvstep.tst TESTS +=3D test_fadd.tst TESTS +=3D test_fmul.tst TESTS +=3D test_ftoi.tst +TESTS +=3D test_madd.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_madd.S b/tests/tcg/tricore/test_madd.S new file mode 100644 index 0000000000..5d839772bb --- /dev/null +++ b/tests/tcg/tricore/test_madd.S @@ -0,0 +1,11 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DDI_PSW(madd, 1, 0x0000fffd, 0x60000b80, 0x0000ffff, 0x7ffff= fff,2) + TEST_D_DDI_PSW(madd, 2, 0xffff7fff, 0x60000b80, 0xffff8001, 0x7ffff= fff,2) + TEST_D_DDD_PSW(madds.u, 3, 0xffffffff, 0x60000b80, 0x00000000, 0x80000= 000, \ + 0x80000000) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815705; cv=none; d=zohomail.com; s=zohoarc; b=GyktLIy4KedGS2VYUHkbl7HpFsx+y/s/QAEUmqeXjP5DlN/YgN7tV1ihdxIX8btacA5ECrYjpQdk9CObCpVNG/vq56o4QlgRPEV1azgjBvr8BzzyQCZLLxfxb8HJtO8wId2PFSKe8DgZub0kDa0T5jqjiRUW44D9dXiFalLW8Uc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815705; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fPkUtUsZBhQTOVdElvOgFTSd49w6hL06WN6K1JOPhLM=; b=jPxQrRkcCWLD9Yn6DZCIZJNCtaVAZiS+8RWlSuPcx5+u0HrRPw8sgfzwITcENN6mjV0iWoO06w5vW13OfayhM9a6+u7s8QONcuXx4KNW0ffY5LURmNrbw9ES2gVNc+gjgLzr3sGAOwWrGWCe5lDpdEkQZL5vfbZc2D7FpZF22/U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815705503164.2424957952161; Wed, 12 May 2021 03:35:05 -0700 (PDT) Received: from localhost ([::1]:40614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmCm-0007eB-9q for importer@patchew.org; Wed, 12 May 2021 06:35:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8Q-0000U2-T2 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:36 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:41514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8I-0000Xu-MT for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:34 -0400 Received: by mail-wr1-x42b.google.com with SMTP id d11so23063857wrw.8 for ; Wed, 12 May 2021 03:30:24 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f1sm3377088wrr.63.2021.05.12.03.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:22 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 946331FFAF; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fPkUtUsZBhQTOVdElvOgFTSd49w6hL06WN6K1JOPhLM=; b=oNuhZdhIZzr3N5P14snybucE4+WV6IK5apAeIzjPTQZIZUKSQ/rpqz9hApnOWAxtbN xpsGptUiAblJuAqHQPVoi0VHpUATg3Dlousy/RY2kYRou4oG/Va0xqLJXXHYlTcjjbZ0 u1cSUk47FRW8Dcli7WjxAzmRYkcRHy1rihuq+qNJRlUVitD9PqKXGOpXCeGK5yNywVs1 19gZtqemKSsneFLxrVoEX8XZp0+FART/pTttVYNHdlRVgEjweDMhm7arKQzClx6YI3PE 1tGP9cvQYjkM7r7PEyZf/Mn6+Ep5o2Sf9DJZH75i9gmsuAfMQamrn9JjhrAiI8YDuSCt YB7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fPkUtUsZBhQTOVdElvOgFTSd49w6hL06WN6K1JOPhLM=; b=IjG26r1x5OonGU6gXIOGajzljLc7ELSGkEPoBnq4n9FeCl0Lu4/Lxtzp3VxxL3Y6xk SrgxtvvbAqNEmQe7KRTFiO1VMC5MrvrNMF6o0ueNZwq1qkzrYqHBzJJ5QY0tvALPc9Lu yneFhhhqU+hd1eWVzRqGdRtF4VM4MfdaBSeJ8Vsi1pdnocjaWujD7sVBsDUAKqjzZ5vF Ptbj9g0XnqRcoIW4pZ33PFRKyOyrW7QKN45KXf7ffL3el/cDuiCx0Q5K4YPQbeZ0FX7c aPJU66aCFEwrS9k36clFn5mmQgeFXIAYhkUzjSDVApxLGAGf4ilteAMqpuJ0fQKGYsmv siIQ== X-Gm-Message-State: AOAM533pyeH+HxhDPo95rxl4VtPiQ2cIbzppLLRcwG2YVkaa+d4lY3hb rqwt0WpP0i8yyAeNc9Lb/b3kkQ== X-Google-Smtp-Source: ABdhPJzhT/5fZ/vONKE6vuoJ8X1WXi0+pKRBajX5NtYKG3JiSHgr3DXoLnceP3M6+aFJG8aIbyRhtQ== X-Received: by 2002:adf:f78d:: with SMTP id q13mr9452921wrp.405.1620815423845; Wed, 12 May 2021 03:30:23 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 24/31] tests/tcg/tricore: Add msub test Date: Wed, 12 May 2021 11:20:44 +0100 Message-Id: <20210512102051.12134-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-15-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_msub.S | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/tcg/tricore/test_msub.S diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index 8de005523e..0fe6a86482 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -11,6 +11,7 @@ TESTS +=3D test_fadd.tst TESTS +=3D test_fmul.tst TESTS +=3D test_ftoi.tst TESTS +=3D test_madd.tst +TESTS +=3D test_msub.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_msub.S b/tests/tcg/tricore/test_msub.S new file mode 100644 index 0000000000..6dee87d99c --- /dev/null +++ b/tests/tcg/tricore/test_msub.S @@ -0,0 +1,9 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DDI_PSW(msub, 1, 0xd2fbe5e0, 0x00000b80,0x64003300, 0xff5420d4,= -216) + TEST_D_DDI_PSW(msub, 2, 0xfffffc10, 0x00000b80,0xfffffe68, 0xfffffffd,= -200) + TEST_D_DDD_PSW(msubs.u, 3, 0x0, 0x60000b80, 0x1, 0xffffffff, 0xffffffd= b) + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816276; cv=none; d=zohomail.com; s=zohoarc; b=hEDODBud27eQ+27u8lKeCo6YWPyiDXJucKI1qRYG+5ezeEtwfyx2bmTceH+2V236QPR9h6pvBCrJUwwCQZS21zGPVcbvk8lRosNn4aWh+44wTNQ4YDUcQ2NuyE/mSmYL2wcyicYQ7QuGf87be+U0v992s2Qe/MrPNmdV4l6kUCU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816276; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=UI/Epk7UI6ih8itVpTT1qnXUK0ABqNU1gp/FWYX6Sdc=; b=d07w+dW6lHU7uei+1YyAEE+mbORsSQbY1zEg6dbYTH4SNfnuUI278/oIOPLlNN4qevzpoLvnfaEagRlO0U8NpsFU3k3Fcc4wdc0h9P3ShO8pRpPidVKllgywbnfusekkumtx52Wp5kJ5hOBp54sPXQ2Ywx358BxBieLIqg+oLRw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816276254622.4383863565397; Wed, 12 May 2021 03:44:36 -0700 (PDT) Received: from localhost ([::1]:45710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmLz-00052P-4l for importer@patchew.org; Wed, 12 May 2021 06:44:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8a-0000ld-SD for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:45 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8W-0000bo-Di for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:44 -0400 Received: by mail-wr1-x42d.google.com with SMTP id s8so23085125wrw.10 for ; Wed, 12 May 2021 03:30:38 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r18sm4011669wmp.0.2021.05.12.03.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AE0AC1FF7E; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UI/Epk7UI6ih8itVpTT1qnXUK0ABqNU1gp/FWYX6Sdc=; b=kds3Ydf1gdEUfk23T9qEr5AZ59Mj5iAj8jP5slOzHYz6yB4nqfnKlZHItdS0FMHDUC j1rU03zM0qMPqTUzt30KjkGKYsloRv3WqDt2diL4dWtvQ6wnyW2RSa1jyjc1CcTn2lJj OxkRp9zDdJ6C9ShZrpzHU2ITEGtUSEjEIER5l2PVtkbGdbi7wrs8vDACvrC2KdVOn6t1 yTpx1Q5KJ8Fef1v3nQ/+5x1g/2CKIRIwp038Bl45IzrgwwCJgfT3QB/Uwy/hVIGh7jLm XpOzwDTS++FH6RQHdAl9GylET/DKnaWPCRIa8QGg6yFkaSg1+2E1roC36TU1xGMgJyrV xDqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UI/Epk7UI6ih8itVpTT1qnXUK0ABqNU1gp/FWYX6Sdc=; b=id5wVSW6ViWvSjcd2qGIUT7mnDEIhQiXXtpM4b5udpWJTjwpQG5f9S0cTPTfQe9vfs K8ypdGKwVqUo1TA7UkDl4u0LhwWFp8cSn5g+M9amC6HVyjmgHr8x80I6UUYKohKrw3MC qml/IvW5lI7wgqEvd0mi1WX0R77nh6wTdijpYSEv+I3rbxncbVgIBlBoqum+uLTF1ADr tawRZBsOOaLzV6Lsv3s2NyHDsflQn8axKAwn/+DzBJd+ihjkNn+18L+xIRVZliFuDqV6 G06A3pwTf1dLNry6c6JbWyFj0qnPeczk6lSJkRH97s9GqbHD516FccLwHri7xH8k2n6n k6cg== X-Gm-Message-State: AOAM532jPU2IeOGdE5Z5yTWPZyK8Tajk3Ou7V8j/g/7Tj2+IcQ+xdkO1 XS1AipaRZ96V7Cq354kLN/GUcA== X-Google-Smtp-Source: ABdhPJyUc64oX+Lh5MasQf1mQ4LJxINGFtzPoG2+i9tXWi64eAw7Ilwp/bkqLnl8xpnWsflKt+NBVw== X-Received: by 2002:adf:f3c1:: with SMTP id g1mr45348268wrp.242.1620815437622; Wed, 12 May 2021 03:30:37 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 25/31] tests/tcg/tricore: Add muls test Date: Wed, 12 May 2021 11:20:45 +0100 Message-Id: <20210512102051.12134-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Bastian Koppelmann , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Bastian Koppelmann Tested-by: Alex Benn=C3=A9e Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210305170045.869437-16-kbastian@mail.uni-paderborn.de> --- tests/tcg/tricore/Makefile.softmmu-target | 1 + tests/tcg/tricore/test_muls.S | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/tcg/tricore/test_muls.S diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index 0fe6a86482..5007c60ce8 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -12,6 +12,7 @@ TESTS +=3D test_fmul.tst TESTS +=3D test_ftoi.tst TESTS +=3D test_madd.tst TESTS +=3D test_msub.tst +TESTS +=3D test_muls.tst =20 QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel =20 diff --git a/tests/tcg/tricore/test_muls.S b/tests/tcg/tricore/test_muls.S new file mode 100644 index 0000000000..ca517556bc --- /dev/null +++ b/tests/tcg/tricore/test_muls.S @@ -0,0 +1,9 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_DD_PSW(muls.u, 1, 0xffffffff, 0x78000b80, 0x80000001, 0xfffffff= f) + TEST_D_DD_PSW(muls.u, 2, 0xffffffff, 0x60000b80, 0xfffffffe, 0xfffffff= f) + + TEST_PASSFAIL + --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816263; cv=none; d=zohomail.com; s=zohoarc; b=kP2HOe81mgp6edB9tKDYkyoWenA4ZbLl5hFkXHSULav7wtR+xyVaVk1FHaeC0sgoSsOOEL+PBlqBNeglSqZFR6HT/vPykA8iygSKxxrelNkWRYer5EieiPVsXdt7F00Pek/34u/Jl+vCxtA9c/IVE15KthnosijTrZb0XE7wvYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816263; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=W/ukiiX+2G/6Tr/Ondx70r9sB5+hCuUswyNpWg3QywQ=; b=JuOUhza+OOn/akOC2j/gNVqs4xu+hEz5JEok5v6rSgFPYcCOtG0IHWG1gw5PT2pYWxTWgtDghSiW8jt23UnK3arKSdP79ey1/IioQqb3BIJzjN1Ta7/719eAe0VbsIu37bW5BdKtkihh+lrv/k9sWRr4Jt73gNdGDHg3ozHy5qg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816263180837.3689614084017; Wed, 12 May 2021 03:44:23 -0700 (PDT) Received: from localhost ([::1]:44876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmLm-0004UH-25 for importer@patchew.org; Wed, 12 May 2021 06:44:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8a-0000l7-Oa for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:45 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:42796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8W-0000cS-Te for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:44 -0400 Received: by mail-wr1-x429.google.com with SMTP id x8so785333wrq.9 for ; Wed, 12 May 2021 03:30:40 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x11sm3856426wrl.13.2021.05.12.03.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CC2951FFB1; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W/ukiiX+2G/6Tr/Ondx70r9sB5+hCuUswyNpWg3QywQ=; b=bj1scvmsNYCoCkdycAFhvakxB1xDc//rrUjiKbv8PBilHVJZtM8HTufy+Q/Cdl0pMR 25e2BCr63uF9uty3rZvY/dZMjHorYATRJIHsv3tQerWO52hVPlJbVmZLyJEs6iJDVcw3 YDgm+7YHwZ2sqiWT6RcSJjd1lFEoZgnrYq6B0CVlDAxvsHKQCVpkNc5llbXqxTErR2e7 gYtUtqJuKU0J7+NSLQTjQ/LX9KSt6ZCoyMgkQTZkTM7+6rF7U1LCzcJquvW4YnweEowB xXYgqD29EeL2WibYxvrs4ev7FT18wAKPc6KHygfV+grMa/DiPHd6IlrZZRws7TTEIf7e AuQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W/ukiiX+2G/6Tr/Ondx70r9sB5+hCuUswyNpWg3QywQ=; b=m2lCUFIcdzjJGEjB7WtjNDb8JUb9SRUa6AzEr9hyIdHDA8A0CB1NcF9CsRzqoyD43t yq4oEATv+g1LbpggOm4LrHT9+fC1vhPiCfrMCxjLtEiwSpVD8ftMu39vwKlH+tjXexEA rHuDGdgLxC1VMea2bOZcq5kUqLSd5JfqLevlteskTOepo/yAD6zjPkZ9OwmRHMjqQJjh Z07Ix+xONBIBt48QRb5kDKsQW3U83UwgzDchbo17xWqbix7EyF8YunbH24c+2i05XLKw 6ZOJI3HHFvZsH1zFYpQYcodm9vI3RFZPTWhK5F+yiD7bWwENc5unZipbwfZeDvvM0azD ihmw== X-Gm-Message-State: AOAM530Nx562SsCBuJTjIXl7orPLunmM07gO6HXaU04ShqtTe3fLvxLo Kb5qG3kW618SyT/VAMYVoNjC9g== X-Google-Smtp-Source: ABdhPJz70IUJ6+/II5er+g5bLxQAChqTqNBDalxIkno0/Y2vEnolvlijTktVivJxhsT85uZrrA98zg== X-Received: by 2002:a5d:654b:: with SMTP id z11mr44485046wrv.167.1620815439373; Wed, 12 May 2021 03:30:39 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 26/31] tests/docker: gcc-10 based images for ppc64{, le} tests Date: Wed, 12 May 2021 11:20:46 +0100 Message-Id: <20210512102051.12134-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org, Wainer dos Santos Moschetta , Willian Rampazzo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, Matheus Ferst , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Matheus Ferst A newer compiler is needed to build tests for Power10 instructions. As done for arm64 on c729a99d2701, a new '-test-cross' image is created for ppc64 and ppc64le. As done on 936fda4d771f, a test for compiler support is added to verify that the toolchain in use has '-mpower10'. Finally, Unused images (docker-power-cross and docker-ppc64-cross) are removed. Signed-off-by: Matheus Ferst Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210423205757.1752480-2-matheus.ferst@eldorado.org.br> --- .gitlab-ci.d/containers.yml | 13 +++--------- tests/docker/Makefile.include | 5 ++--- .../dockerfiles/debian-powerpc-cross.docker | 12 ----------- .../debian-powerpc-test-cross.docker | 17 ++++++++++++++++ .../dockerfiles/debian-ppc64-cross.docker | 11 ---------- tests/tcg/configure.sh | 20 +++++++++---------- 6 files changed, 32 insertions(+), 46 deletions(-) delete mode 100644 tests/docker/dockerfiles/debian-powerpc-cross.docker create mode 100644 tests/docker/dockerfiles/debian-powerpc-test-cross.dock= er delete mode 100644 tests/docker/dockerfiles/debian-ppc64-cross.docker diff --git a/.gitlab-ci.d/containers.yml b/.gitlab-ci.d/containers.yml index 33e4046e23..325191627d 100644 --- a/.gitlab-ci.d/containers.yml +++ b/.gitlab-ci.d/containers.yml @@ -144,19 +144,12 @@ mipsel-debian-cross-container: variables: NAME: debian-mipsel-cross =20 -powerpc-debian-cross-container: +powerpc-test-debian-cross-container: <<: *container_job_definition stage: containers-layer2 - needs: ['amd64-debian10-container'] - variables: - NAME: debian-powerpc-cross - -ppc64-debian-cross-container: - <<: *container_job_definition - stage: containers-layer2 - needs: ['amd64-debian10-container'] + needs: ['amd64-debian11-container'] variables: - NAME: debian-ppc64-cross + NAME: debian-powerpc-test-cross =20 ppc64el-debian-cross-container: <<: *container_job_definition diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 8967ecf118..ff5d732889 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -140,8 +140,6 @@ docker-image-debian-mips-cross: docker-image-debian10 docker-image-debian-mips64-cross: docker-image-debian10 docker-image-debian-mips64el-cross: docker-image-debian10 docker-image-debian-mipsel-cross: docker-image-debian10 -docker-image-debian-powerpc-cross: docker-image-debian10 -docker-image-debian-ppc64-cross: docker-image-debian10 docker-image-debian-ppc64el-cross: docker-image-debian10 docker-image-debian-riscv64-cross: docker-image-debian10 docker-image-debian-s390x-cross: docker-image-debian10 @@ -174,13 +172,14 @@ docker-image-debian-hexagon-cross: $(DOCKER_FILES_DIR= )/debian-hexagon-cross.dock docker-image-debian-tricore-cross: docker-image-debian10 docker-image-debian-all-test-cross: docker-image-debian10 docker-image-debian-arm64-test-cross: docker-image-debian11 +docker-image-debian-powerpc-test-cross: docker-image-debian11 =20 # These images may be good enough for building tests but not for test buil= ds DOCKER_PARTIAL_IMAGES +=3D debian-alpha-cross DOCKER_PARTIAL_IMAGES +=3D debian-arm64-test-cross +DOCKER_PARTIAL_IMAGES +=3D debian-powerpc-test-cross DOCKER_PARTIAL_IMAGES +=3D debian-hppa-cross DOCKER_PARTIAL_IMAGES +=3D debian-m68k-cross debian-mips64-cross -DOCKER_PARTIAL_IMAGES +=3D debian-powerpc-cross debian-ppc64-cross DOCKER_PARTIAL_IMAGES +=3D debian-riscv64-cross DOCKER_PARTIAL_IMAGES +=3D debian-sh4-cross debian-sparc64-cross DOCKER_PARTIAL_IMAGES +=3D debian-tricore-cross diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker b/tests/d= ocker/dockerfiles/debian-powerpc-cross.docker deleted file mode 100644 index 07e1789650..0000000000 --- a/tests/docker/dockerfiles/debian-powerpc-cross.docker +++ /dev/null @@ -1,12 +0,0 @@ -# -# Docker powerpc cross-compiler target -# -# This docker target builds on the debian Buster base image. -# -FROM qemu/debian10 - -RUN apt update && \ - DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ - apt install -y --no-install-recommends \ - gcc-powerpc-linux-gnu \ - libc6-dev-powerpc-cross diff --git a/tests/docker/dockerfiles/debian-powerpc-test-cross.docker b/te= sts/docker/dockerfiles/debian-powerpc-test-cross.docker new file mode 100644 index 0000000000..36b336f709 --- /dev/null +++ b/tests/docker/dockerfiles/debian-powerpc-test-cross.docker @@ -0,0 +1,17 @@ +# +# Docker powerpc/ppc64/ppc64le cross-compiler target +# +# This docker target builds on the debian Bullseye base image. +# +FROM qemu/debian11 + +RUN apt update && \ + DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + gcc-powerpc-linux-gnu \ + libc6-dev-powerpc-cross \ + gcc-10-powerpc64-linux-gnu \ + libc6-dev-ppc64-cross \ + gcc-10-powerpc64le-linux-gnu \ + libc6-dev-ppc64el-cross + diff --git a/tests/docker/dockerfiles/debian-ppc64-cross.docker b/tests/doc= ker/dockerfiles/debian-ppc64-cross.docker deleted file mode 100644 index 8efe68874e..0000000000 --- a/tests/docker/dockerfiles/debian-ppc64-cross.docker +++ /dev/null @@ -1,11 +0,0 @@ -# -# Docker ppc64 cross-compiler target -# -# This docker target builds on the debian Buster base image. -FROM qemu/debian10 - -RUN apt update && \ - DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ - apt install -y --no-install-recommends \ - gcc-powerpc64-linux-gnu \ - libc6-dev-ppc64-cross diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 11009fe433..6627318adf 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -147,18 +147,14 @@ for target in $target_list; do ;; ppc-*|ppc64abi32-*) container_hosts=3Dx86_64 - container_image=3Ddebian-powerpc-cross - container_cross_cc=3Dpowerpc-linux-gnu-gcc + container_image=3Ddebian-powerpc-test-cross + container_cross_cc=3Dpowerpc-linux-gnu-gcc-10 ;; - ppc64-*) + ppc64-*|ppc64le-*) container_hosts=3Dx86_64 - container_image=3Ddebian-ppc64-cross - container_cross_cc=3Dpowerpc64-linux-gnu-gcc - ;; - ppc64le-*) - container_hosts=3Dx86_64 - container_image=3Ddebian-ppc64el-cross - container_cross_cc=3Dpowerpc64le-linux-gnu-gcc + container_image=3Ddebian-powerpc-test-cross + container_cross_cc=3D${target%%-*}-linux-gnu-gcc-10 + container_cross_cc=3Dpowerpc${container_cross_cc#ppc} ;; riscv64-*) container_hosts=3Dx86_64 @@ -272,6 +268,10 @@ for target in $target_list; do -mpower8-vector -o $TMPE $TMPC; then echo "CROSS_CC_HAS_POWER8_VECTOR=3Dy" >> $config_target_= mak fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mpower10 -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_POWER10=3Dy" >> $config_target_mak + fi ;; i386-linux-user) if do_compiler "$target_compiler" $target_compiler_cflags \ --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816469; cv=none; d=zohomail.com; s=zohoarc; b=SH//nOilULTxOr4R5qPd83aimSB+jsPVMk3d3/I9CE/3FxRmox314vpbB+eJEEheDUub7olVRszejRGT6eFD3VwT1uHdgCXQAIcIKNXeIjNuxW/Ud5pXOQMT0JH9oRuCrtW0AXBtfN6bXFuV8YtBC88GKwfVlGlcZzIKg1riJdE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816469; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7Itxy1UuOFf0gEK0SQVLvvq83zvWvNXRtoyv+3j/ePs=; b=bTBiw+m2YxWHMaNaPiCP5i02RdszhYM/R0Lpj/eZahkMPeZmiRZeY20vY5LFfY5WBlgjeRYv6IS3PJKNofTkI77+ujPj3bQKJpOhXup6dHVYnN3EDESU0BpHqWM0AvKV/RiRNEOmM1WZ65byEiZSUqY0zxw1gVDIdVjfpXxMues= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816469252418.96906932401373; Wed, 12 May 2021 03:47:49 -0700 (PDT) Received: from localhost ([::1]:51866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmP6-0000qa-5M for importer@patchew.org; Wed, 12 May 2021 06:47:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8Z-0000gi-O8 for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:43 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:54203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8U-0000bR-Is for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:43 -0400 Received: by mail-wm1-x330.google.com with SMTP id s82so12661611wmf.3 for ; Wed, 12 May 2021 03:30:37 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a9sm29420707wrw.26.2021.05.12.03.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E59E21FFB3; Wed, 12 May 2021 11:20:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7Itxy1UuOFf0gEK0SQVLvvq83zvWvNXRtoyv+3j/ePs=; b=MJ+IDoYks9PGUhuL+aQM/Xvyh3RijiSLapj9kR4clPgke6HETH+yh9/JK4AgGLu8jC 9jBZEYERU/VkVmrE9/5EiKTN/8OgoBS1lH+ntMMRXSQZMO0XunhuCCOOmg3N7hO5I2Nu XiU7Sd2euXsVhQ538n36kSWWVb8ImVO4icsWEjO39SXpeQl6i5F2W1iQNM8fpOP8kZWE dxMkgqRph3by2FngOhccw0vIS3AU3MmX3tRT9+uqO7aGIUPdlqDiHNiuNfJl6ofDH2GZ KoJ8pG1BsUWr3UtzO6kYpoH+YcPrEp4UGSHeZ5b6uJsuZml5QxKHvgGaWMEU6irXllAu 0Wug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7Itxy1UuOFf0gEK0SQVLvvq83zvWvNXRtoyv+3j/ePs=; b=B3nK+yoeOvif6HKDgT7k/saNYmKSKJFIcqYNRbA4j8Sr1KamBb+RCJZ5P6WPibihSu 2h02H1ZNbbBoJtGQMyoahGim9dwoKmxznSkLOuruHSMiZssyYMpBGCLbrJhFr5ONCgu3 Q0vP6OenEyXf3+1kAE/RI9IUB3NlNTfmtYOY4m7b2z4XLqT39pfMAUGCC6jvpWOoe+hj gzSBTHLqMvGLfc8r7IFyE7ZqYWq3/yK3aDsYKF2xHAF4prGcq2js9TZlTZjWntS+dr2/ E/Px0jss+PMXhCZz1U/eZr1l241K3XGerljYV76zUGZpN3bbLJG36+gkfeWsy46Ufzv1 BGKg== X-Gm-Message-State: AOAM531f0iOS2IAPRW8F3v+12JdVbDmUiPEdbNK3+bv47P5bjb8117rg qPLgSzJ2MLzx5Y/Im6sznxpO6w== X-Google-Smtp-Source: ABdhPJxzu8nXzEPL01hazJbb6ppH57uWBorPy75paaXymWLl/J6AQvcjB2A7yCrD4tJynACMgapo5Q== X-Received: by 2002:a05:600c:4a19:: with SMTP id c25mr37725345wmp.94.1620815436822; Wed, 12 May 2021 03:30:36 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 27/31] tests/tcg/ppc64le: tests for brh/brw/brd Date: Wed, 12 May 2021 11:20:47 +0100 Message-Id: <20210512102051.12134-28-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, Fabiano Rosas , =?UTF-8?q?Alex=20Benn=C3=A9e?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, Matheus Ferst , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Matheus Ferst Tests for Byte-Reverse Halfword, Word and Doubleword Signed-off-by: Matheus Ferst Tested-by: Fabiano Rosas [AJB: tweak to make rules for skip/plugins] Signed-off-by: Alex Benn=C3=A9e Message-Id: <20210423205757.1752480-3-matheus.ferst@eldorado.org.br> --- tests/tcg/ppc64le/byte_reverse.c | 21 +++++++++++++++++++++ tests/tcg/ppc64/Makefile.target | 13 +++++++++++++ tests/tcg/ppc64le/Makefile.target | 13 +++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 tests/tcg/ppc64le/byte_reverse.c diff --git a/tests/tcg/ppc64le/byte_reverse.c b/tests/tcg/ppc64le/byte_reve= rse.c new file mode 100644 index 0000000000..53b76fc2e2 --- /dev/null +++ b/tests/tcg/ppc64le/byte_reverse.c @@ -0,0 +1,21 @@ +#include + +int main(void) +{ + unsigned long var; + + var =3D 0xFEDCBA9876543210; + asm("brh %0, %0" : "+r"(var)); + assert(var =3D=3D 0xDCFE98BA54761032); + + var =3D 0xFEDCBA9876543210; + asm("brw %0, %0" : "+r"(var)); + assert(var =3D=3D 0x98BADCFE10325476); + + var =3D 0xFEDCBA9876543210; + asm("brd %0, %0" : "+r"(var)); + assert(var =3D=3D 0x1032547698BADCFE); + + return 0; +} + diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.tar= get index 0c6a4585fc..a6a4ddaeca 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -10,4 +10,17 @@ PPC64_TESTS=3Dbcdsub endif bcdsub: CFLAGS +=3D -mpower8-vector =20 +PPC64_TESTS +=3D byte_reverse +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER10),) +run-byte_reverse: QEMU_OPTS+=3D-cpu POWER10 +run-plugin-byte_reverse-with-%: QEMU_OPTS+=3D-cpu POWER10 +else +byte_reverse: + $(call skip-test, "BUILD of $@", "missing compiler support") +run-byte_reverse: + $(call skip-test, "RUN of byte_reverse", "not built") +run-plugin-byte_reverse-with-%: + $(call skip-test, "RUN of byte_reverse ($*)", "not built") +endif + TESTS +=3D $(PPC64_TESTS) diff --git a/tests/tcg/ppc64le/Makefile.target b/tests/tcg/ppc64le/Makefile= .target index 1acfcff94a..c0c14ffbad 100644 --- a/tests/tcg/ppc64le/Makefile.target +++ b/tests/tcg/ppc64le/Makefile.target @@ -9,4 +9,17 @@ PPC64LE_TESTS=3Dbcdsub endif bcdsub: CFLAGS +=3D -mpower8-vector =20 +PPC64LE_TESTS +=3D byte_reverse +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER10),) +run-byte_reverse: QEMU_OPTS+=3D-cpu POWER10 +run-plugin-byte_reverse-with-%: QEMU_OPTS+=3D-cpu POWER10 +else +byte_reverse: + $(call skip-test, "BUILD of $@", "missing compiler support") +run-byte_reverse: + $(call skip-test, "RUN of byte_reverse", "not built") +run-plugin-byte_reverse-with-%: + $(call skip-test, "RUN of byte_reverse ($*)", "not built") +endif + TESTS +=3D $(PPC64LE_TESTS) --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620816132; cv=none; d=zohomail.com; s=zohoarc; b=mvwaHpzAvTGnOyHHdfWGjqBNYr36/9o3OgicHdKTbf2RcZBeXBw5gWiD1aCNcvIuVJ0emPE7eth0zWOZ9MgamH6g9eBllipxj6g/61nN9KqamaoUQY37paoQChJqE/lOUP2PGEowY/mx8WPmfY/lnOi64spLZ1TUkVnFJ69ejgQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620816132; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iUZ/64GAc8Lit9olujLXGNkyl4h3hJob2ZVlurCRzXw=; b=fnlUnQ/EZMC75S/4fB+lTfrLBNMYr7k55W7Eild5Lx3WclPqDQr6Gq2TzXwAyjJ2dHaxwPasg8SbckBRtWzJX5tMuFE1W1kUJaP6bzuqhasFOnRKHFz7JVzVAae2/BAvQDQxI57Rl3sHDk1p9a7osMRtXdQmswOorNoVznfDIT0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620816132847669.1060054564847; Wed, 12 May 2021 03:42:12 -0700 (PDT) Received: from localhost ([::1]:37600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJf-00084l-Pc for importer@patchew.org; Wed, 12 May 2021 06:42:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8Z-0000hx-VV for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:43 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:41523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8S-0000au-Fn for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:43 -0400 Received: by mail-wr1-x432.google.com with SMTP id d11so23064431wrw.8 for ; Wed, 12 May 2021 03:30:35 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id n3sm25893479wmi.7.2021.05.12.03.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 08E571FFB4; Wed, 12 May 2021 11:20:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iUZ/64GAc8Lit9olujLXGNkyl4h3hJob2ZVlurCRzXw=; b=wRLVGwY1Ur0E3lAJkd0WAzX2904fxUXJcANhjcrL0pVX3YprKtS7SS81YvmNTFVo7v b3r/JAxR6Tsq6bY7WNNMyks5zA7GlCvChjRHd3y2TWKcItaJ75X6WxDQMHxT7NncNCiS ozqpF5mOMJwSa+krDLtK4aTaD2oWpZryPu2w6TaI5tclV4pZ6wTPwmSKOeJuixVkAYUn rUlKx1fA9MRfk/MhNTpvknAoSjyn4lpgP3phMwUisItHLT2rIW/3FvVbBCMCzHNFY90w WgGdoBfCTwUpMOg9ZxK9oDNrZ0Quo3dPUgQfc5zK1LfEFMtZOxsPqdQWqRbMApleQpAK U+3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iUZ/64GAc8Lit9olujLXGNkyl4h3hJob2ZVlurCRzXw=; b=tUc6AgAT7zOmvh4NiXqcBmSZwIvcuK6vtELPStYyF6z+e7ciJMKbrcqfW+S8zD8En1 SNbVGx7dFYbTwtgaxmWskzjvmAYag0qgQATr3JJjMo/DQnB41lgMkNz4DXv+vvpv06s2 iygxeb8m+lzuv1X+SO3ogLfsNTaug7ltcoog/x52Hz9u1Bx5PzJlWoKoMUtkL+Z14hzj j0Py8x5VpYIjYlkRuw88PcsLijKXvrOSQhKz987XuOQIdDvxCNr0ELTEgs0kDI6oVOPP ACoa9w37VKWSlHAFw2ni5jj+iTcFavm6tC8K5f3vwX2Wk7Unp/OArxArImtoStBQHtW/ ih9g== X-Gm-Message-State: AOAM532hDNZeNrFxkzdO6h/BHKrU+4lLoH9Jn+T+T10iyvdguc1M/yV7 FNBqrW0VaVrHlFNcycwLcTtAVw== X-Google-Smtp-Source: ABdhPJwud0XXgACPZ7G6ESXOiYbmDOZ359RpkRQSI3xzFkit4of2+9JZc1+vNuRxMuVQBBqzSEwl1A== X-Received: by 2002:a5d:4351:: with SMTP id u17mr43671640wrr.47.1620815435038; Wed, 12 May 2021 03:30:35 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 28/31] cirrus.yml: Fix the MSYS2 task Date: Wed, 12 May 2021 11:20:48 +0100 Message-Id: <20210512102051.12134-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, f4bug@amsat.org, Ed Maste , Yonggang Luo , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Li-Wen Hsu , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Thomas Huth The MSYS2 task in the Cirrus-CI is currently failing with error messages like this: warning: database file for 'ucrt64' does not exist (use '-Sy' to download) :: Starting core system upgrade... there is nothing to do :: Starting full system upgrade... error: failed to prepare transaction (could not find database) Seems like it can be fixed by switching to a newer release and by refreshing the database one more time after changing the /etc/pacman.conf file. Signed-off-by: Thomas Huth Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Yonggang Luo Message-Id: <20210427185524.281883-1-thuth@redhat.com> --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index f53c519447..f4bf49b704 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -67,7 +67,7 @@ windows_msys2_task: CIRRUS_SHELL: powershell MSYS: winsymlinks:nativestrict MSYSTEM: MINGW64 - MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/= 2021-01-05/msys2-base-x86_64-20210105.sfx.exe + MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/= 2021-04-19/msys2-base-x86_64-20210419.sfx.exe MSYS2_FINGERPRINT: 0 MSYS2_PACKAGES: " diffutils git grep make pkg-config sed @@ -130,7 +130,7 @@ windows_msys2_task: taskkill /F /FI "MODULES eq msys-2.0.dll" tasklist C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacne= w /etc/pacman.conf || true" - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --ov= erwrite=3D*" + C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --o= verwrite=3D*" Write-Output "Core install time taken: $((Get-Date).Subtract($star= t_time))" $start_time =3D Get-Date =20 --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815958; cv=none; d=zohomail.com; s=zohoarc; b=Gvl3J0oqtlwMX27+oRJlqwxhWsIHXNUJrchY2EXKm2AOXHvq68HlhAR7rBuYilch7lVddF7e78jWdEpwhVrwCIVa1h7ybjdam8pavLrIcDFTToGbbQ8FYaX2zEhK/guf+aJy08wNqlcfIbDDwtHvftdq3QxvUn7z4Er80FpTVyo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815958; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MHleu5/QXcuGG15rHKSMEafttB4DD5jpS2zsXzbXm5k=; b=lRvdapBSo9Gu/TdC3jNwRXsgbOWrcESu7LoqqgKuq3X6xCZ4kutK8ReX9MR7IkaEQ7F3Z5pUvoAGdNDJ7a5yzafKD0anBNkAggqB0gZs7w4ElOfvaH5vcOKChJxVPaJwAInAf8TcfY00AbMHSNcy+v7W0fHR5GpqPLHgd6qbnDA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815958722856.9417353209368; Wed, 12 May 2021 03:39:18 -0700 (PDT) Received: from localhost ([::1]:55524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmGr-00012U-J9 for importer@patchew.org; Wed, 12 May 2021 06:39:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8W-0000YI-No for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:40 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8K-0000Yp-5B for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:40 -0400 Received: by mail-wr1-x435.google.com with SMTP id d11so23064015wrw.8 for ; Wed, 12 May 2021 03:30:27 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c16sm3812789wrn.92.2021.05.12.03.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1EF0C1FFB5; Wed, 12 May 2021 11:20:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MHleu5/QXcuGG15rHKSMEafttB4DD5jpS2zsXzbXm5k=; b=lTcDLaeBoSsEjvdpT9tScHPhMCKmmHLdy3K5X2Qc3R16IsvGXVaTqDW5p7bAcVjEgS 7ZlJHJr3lyGiQfm1WKlJhaYYpJmq1aO9VDB9NOjLTo36+oDsJZjinDchKhuJ8Ns/MTN3 2x+uPKp65p/npWuv0hwXhu7LGUs1BlY99lSQ1uKmz+ElHpdtSuqbAH1IbeQ1Gv0vCKqX yFOUpYzaRywQMXJ2Qk6w/0hPnqODWww7vuUiVUd+hxZBXjqDB223sgy4B500aUpA+Q+y SFfGCK4husEh55p1ZdI1VD5IsJ2alsbY0E5ybrZo3MtQO8Yn5g44P9ktULQDAzaEUJnN vOJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MHleu5/QXcuGG15rHKSMEafttB4DD5jpS2zsXzbXm5k=; b=imMs9ucarW4l4rUJjewEJTvtsxgMMva+A50kZDuw6pvkGnGBy5C/xQDNsti/+X7XBs eIbrxzALI32BQJM5zBCyb+it2p69bhU21OA0OLzQCzuwfwndzBAVIBI3rpDZl0QPQYcW jao8rWFtwiEXWTlPgljC+Qmbd7bTzzT9E/LTErX9E9C8XI0AMHEWdJyxiHuZH0/0D8mL b8hYqbpWMly3tcCbtEIVuL2slQjovGadPjtOS1S1XdeXotfL+NRpCM1atDu/sQdZkVGG MRaqMIYVuh6z5eYbs6eK3JvZrB9ZXkVm3S4VDjwi7KXBRgDluicuwZt42/gS6n/+51Ui SBqQ== X-Gm-Message-State: AOAM532mxGwz23o7lOadyYm+96Af++L/9X6jHclR6Bl60xcpt2H+MnNr 2oSYPNtUXJpxdPyRCfaj2PsD0PJHlVFGAQ== X-Google-Smtp-Source: ABdhPJwHpKlhAVpsO5aJbKAuXOidq5jvC7MmKJFfNqUT0Ygg5RaC814fJJ969DZMvPp3Q+0Sc+VhNQ== X-Received: by 2002:adf:d1ec:: with SMTP id g12mr44984170wrd.294.1620815426697; Wed, 12 May 2021 03:30:26 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 29/31] tests/tcg: fix missing return Date: Wed, 12 May 2021 11:20:49 +0100 Message-Id: <20210512102051.12134-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This was picked up when clang built the test. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/tcg/multiarch/system/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tcg/multiarch/system/memory.c b/tests/tcg/multiarch/syst= em/memory.c index eb0ec6f8eb..41c7f66e2e 100644 --- a/tests/tcg/multiarch/system/memory.c +++ b/tests/tcg/multiarch/system/memory.c @@ -326,6 +326,7 @@ static bool do_unsigned_test(init_ufn fn) fn(i); ok =3D do_unsigned_reads(i); } + return ok; #else fn(0); return do_unsigned_reads(0); --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815984; cv=none; d=zohomail.com; s=zohoarc; b=P4Ftsd//04PTSchHOthUuokKaKozhumZ80G4qqjNTvgvJvEBDlyDITuy5AJLeFHWW/fyA8J/uK+q1N+/p99DZtqkBgT6ePSQpR6hM8r/LB+z7X4+IlNdnv34h7pXbrQOO9Uce4+/0VCdcQmiZSbYAyzVneOPc21m7cFHseFlzxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815984; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=k04YBeQVw1SV/5Xi/ZAFYyy3Jt24dK+QTEr9uqlEOFU=; b=J75+NOmNGiKQDMnFVf0j+UydUT4H7y7Hc19JW59Tjch1syo+esx461rIdMzhrHYu7U5L30OR8uIoLpOj0+USUD+ib0lqhA4rUtrfRM6RCkms24PWTBF6q8NdN45dWHirIAAgrXhxZor4kmS55QXlfSwGxqRSW83wvHiSZn62IVE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1620815984699599.8238952452275; Wed, 12 May 2021 03:39:44 -0700 (PDT) Received: from localhost ([::1]:57222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmHH-0002D1-LY for importer@patchew.org; Wed, 12 May 2021 06:39:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8X-0000bH-Pz for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:41 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:41519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8N-0000aD-Cz for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:41 -0400 Received: by mail-wr1-x42f.google.com with SMTP id d11so23064162wrw.8 for ; Wed, 12 May 2021 03:30:30 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y2sm6558416wmq.45.2021.05.12.03.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 358081FFB7; Wed, 12 May 2021 11:20:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k04YBeQVw1SV/5Xi/ZAFYyy3Jt24dK+QTEr9uqlEOFU=; b=bhERa/jn8Vq/kr2DB9xcfczWpUVJotIuK6C2IMsdhQ5hrWgQt11iSjoPGiA23yuWoY 7XhkGCuxTJj1ORtSUfZvd9ybMMXLlt9SnNvd9i8JexrFXru2hvkY+HukCv/tYUI/tppl GLuGziv0hgsvdickfjMgT4SAePlmxaG4g7uTtiRr7Nb9BJ4pZVE+XJKBhJOiR9hpMe6d QvBgEiyYv9qLmd7suuRqJ4kg+3GdGzxbXtBwhRv6Vf0VmELCA3nZ6IXtt7HCSdKGdiIh g5Uo8e1lFe+LAjfOO0mAY3knT/6A145hnP5nC4ZvrUbbaGzuoTy4IIXfLsQ2HiWlXyIK gNRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k04YBeQVw1SV/5Xi/ZAFYyy3Jt24dK+QTEr9uqlEOFU=; b=SwA3K0idSY2AQn1Aj/OVZFHQTfobPgV/2lxNGznJFg+HwB5Vm5RgM8q/xJxP5UmqNR ZKO/5R0GMjxFfqGq6/xlSUVXrj55zbTt8nzklQjhiSamQmqF4C3w6MXv7khFVtNeWi7o XWbUx/foVQHT8jJk5a5OvZKg6B92EmF+D1QBs9hzCMGiyuctfUebeN0Q5MgPYo7ylVf3 XbnnQOPIZVksE3CW70CLrPuivlKkaC9489TwVN1/AO+GZqzKOiISu49RWZb96BaGGevb gfHvyVjdOaHDWMOYBX7TdQbgRE2asJwN0NYrIGIAwNJI1nx3ms28kGLIaqOgEYHNybZL H6ug== X-Gm-Message-State: AOAM5303TTHUpmRbKIjQ6wnYmZrlF1o0yHwhdD0E7vzkwxj8Rn1VUanI hGdPuwDL3cakZqkm49+MDoLc0A== X-Google-Smtp-Source: ABdhPJy9VKosVIN9JnNUlZpTLNKNyMHjgTjsPcBTwUkVdMn63c/iqQO+o3455ThlIc+d9fggfryXXQ== X-Received: by 2002:a5d:6085:: with SMTP id w5mr45625396wrt.14.1620815429320; Wed, 12 May 2021 03:30:29 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 30/31] tests/tcg: don't allow clang as a cross compiler Date: Wed, 12 May 2021 11:20:50 +0100 Message-Id: <20210512102051.12134-31-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Currently there are two problems. The first is clang generates a preamble (that is always executed) to stack xmm registers. This causes a ILLOP on the x86_64 softmmu tests as SSE isn't enabled. The second is the inline assembler in test-i386.c breaks clangs compiler and I don't know how to fix it. Even with Theodore's patch series (D5741445-7EFD-4AF1-8DB2-E4AFA93CBB1A@icloud.com) I still get compiler failures. For now lets just skip clang and allow it to fall back to the containers which we know have compilers which work. Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/configure.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 6627318adf..ed6492ce59 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -82,6 +82,9 @@ for target in $target_list; do container_cross_as=3D container_cross_ld=3D =20 + # suppress clang + supress_clang=3D + case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AA= rch64 @@ -119,6 +122,7 @@ for target in $target_list; do container_hosts=3Dx86_64 container_image=3Dfedora-i386-cross container_cross_cc=3Dgcc + supress_clang=3Dyes ;; m68k-*) container_hosts=3Dx86_64 @@ -186,6 +190,7 @@ for target in $target_list; do container_hosts=3D"aarch64 ppc64el x86_64" container_image=3Ddebian-amd64-cross container_cross_cc=3Dx86_64-linux-gnu-gcc + supress_clang=3Dyes ;; xtensa*-softmmu) container_hosts=3Dx86_64 @@ -200,6 +205,7 @@ for target in $target_list; do =20 echo "# Automatically generated by configure - do not modify" > $config_= target_mak echo "TARGET_NAME=3D$arch" >> $config_target_mak + echo "target=3D$target" >> $config_target_mak case $target in *-linux-user | *-bsd-user) echo "CONFIG_USER_ONLY=3Dy" >> $config_target_mak @@ -219,21 +225,26 @@ for target in $target_list; do if eval test "x\${cross_cc_$arch}" !=3D xyes; then eval "target_compiler=3D\${cross_cc_$arch}" =20 - if has $target_compiler; then - write_c_skeleton - if ! do_compiler "$target_compiler" $target_compiler_cflags \ - -o $TMPE $TMPC -static ; then - # For host systems we might get away with building without -= static - if do_compiler "$target_compiler" $target_compiler_cflags \ - -o $TMPE $TMPC ; then + if has "$target_compiler"; then + if test "$supress_clang" =3D yes && + $target_compiler --version | grep -qi "clang"; then + got_cross_cc=3Dno + else + write_c_skeleton + if ! do_compiler "$target_compiler" $target_compiler_cflags \ + -o $TMPE $TMPC -static ; then + # For host systems we might get away with building witho= ut -static + if do_compiler "$target_compiler" $target_compiler_cflag= s \ + -o $TMPE $TMPC ; then + got_cross_cc=3Dyes + echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_m= ak + echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_= target_mak + fi + else got_cross_cc=3Dyes echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_targ= et_mak fi - else - got_cross_cc=3Dyes - echo "CROSS_CC_GUEST_STATIC=3Dy" >> $config_target_mak - echo "CROSS_CC_GUEST=3D$target_compiler" >> $config_target_m= ak fi fi fi --=20 2.20.1 From nobody Fri May 17 04:49:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620815850; cv=none; d=zohomail.com; s=zohoarc; b=JulBY1SCeV3aVHjGKBG1hSnYrUOu3BUMzW7qfdmD11BW+VVDq9Kv5RXe1Gxk8RbXf4qSquzRjZM9Bazi6khGobB8/yvfCq9iHMuozm7p/MIXRZuS4Q+z+Huudl3XNYW4C5jKRcT0AWY8WRpocWULDTQnx7d2aTXtXbyvrU8h61E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620815850; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=juZ8LQOgUX+MwfrTTbyuhWHt2MmywimCsbW1VC1553ld9Dc4bk2G/z2BQ7YgV+ksdshmceF0vImhs8x5iZT3mlMrCfuDF7D6D27/A3oAEwGADWedSS5g8zM5OudyxZ6H5dZeK+UctRuQDAFR5JPUklIE5g/6ZQy0LoU2UVuAR9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 162081585060627.964158132786793; Wed, 12 May 2021 03:37:30 -0700 (PDT) Received: from localhost ([::1]:48948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmF7-000503-I6 for importer@patchew.org; Wed, 12 May 2021 06:37:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgm8W-0000Y2-Lo for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:40 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgm8Q-0000aN-Gd for qemu-devel@nongnu.org; Wed, 12 May 2021 06:30:38 -0400 Received: by mail-wr1-x435.google.com with SMTP id d11so23064282wrw.8 for ; Wed, 12 May 2021 03:30:32 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a9sm29420558wrw.26.2021.05.12.03.30.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 May 2021 03:30:29 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4BE311FFB8; Wed, 12 May 2021 11:20:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=xb8nEC9DvYabLCgK0939aTmSTTjfSLIr6mhwMlZo94VbCtaV3YoU8SSAkj3GSOOGfn EPmOLLoK07U+M5AXeIiwuwlkv0nTcpHoZ2yxCzif5/BETWT0epInKg9kFTqV6o6aEZnI TeA7cV5lcaqjOwpizPG/R0W9qEpwwq8jW+mkMuad/XZkcXv2K+x88Ez5GFgNopIpJN24 m22FHywgI4/Xpmt3mtaaUnnGVmBzoBpnX5Pd12kIr4UWGhh8RC8j8jRW0fqhH0kKdREI QPZCPBsYyKU/DwKm4DXLNP0DD/5x91hg8ur0DkTW1otf3pa9MGpPuEG+A5sPoPBJOrYo 0Mug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=RKVDM1Xp9lUHe+V1Bi4VwQbFAkFO3rZUijINgiYJuSO61ADM8OrTzed3XpSsGmdkCk 7l2gysY0Q8AL4i2XGEhCQ1YNmauLh+JPxwVzvUV+wgJafiQH1TDVFNZ646CLEfdXfvXz XK8tf3UZfKdgigQ5ZvCP83dmhr0X9EGR0BFXAN3TEf6ESTFZS35qD92gI0WdrW9SzB+T 4t+qUXAjPuizPkGeeXIHr104o1OGECaQVM+WHpRnRsvphSlZshlmnN4worPUUpnZ5bgi YL30EovBr9bwmsLi6z2bLE3eGz0ZFdlv9tk+J6VlJX9hAkVBudzuEtfEj7syr9H2jV4y plTg== X-Gm-Message-State: AOAM530YPxNCk5jzMfxfSgQCM38C/cqokhlTN+6hIcfu97sW7M8jCn2J gc7GV8wmxrQS3zPkKQRKzhqoMg== X-Google-Smtp-Source: ABdhPJyazEqL3U72vwyUdvMuNr3UYz0yh88xWzHGyFjaDVsZZbQ4kOLfKLPC0MnZKWYn0jWSizj6TA== X-Received: by 2002:a05:6000:12cc:: with SMTP id l12mr6300745wrx.91.1620815431883; Wed, 12 May 2021 03:30:31 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 31/31] configure: use cc, not host_cc to set cross_cc for build arch Date: Wed, 12 May 2021 11:20:51 +0100 Message-Id: <20210512102051.12134-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210512102051.12134-1-alex.bennee@linaro.org> References: <20210512102051.12134-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::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Otherwise you run into hilarity like trying when cross compiling a 32 bit ARM build on a 64 bit system trying to use host_cc to build 32 bit test cases. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 1bf53961c2..daa1aa69be 100755 --- a/configure +++ b/configure @@ -1656,7 +1656,7 @@ case "$cpu" in # No special flags required for other host CPUs esac =20 -eval "cross_cc_${cpu}=3D\$host_cc" +eval "cross_cc_${cpu}=3D\$cc" cross_cc_vars=3D"$cross_cc_vars cross_cc_${cpu}" QEMU_CFLAGS=3D"$CPU_CFLAGS $QEMU_CFLAGS" =20 --=20 2.20.1