From patchwork Wed May 12 10:20:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435477 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4687926jao; Wed, 12 May 2021 03:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+g571N7HIltGfQ2+fwcF1ZaMZFTT6QV7MhB2ZI3o2adKaF7+SehAJURWpEFbt+aS2Myzg X-Received: by 2002:a0c:8521:: with SMTP id n30mr34167182qva.53.1620815080178; Wed, 12 May 2021 03:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815080; cv=none; d=google.com; s=arc-20160816; b=UpCE0sRV1/izbmIM12HbDJNE7YdrgIrQMQ6aj4bGr3Z811ctaRqaJfguU7e2Pk0O94 AM+zLc0g8Iwoo2dB51fJBHy/1vPR1XakkPLt39L9WHS1HTMvqhzEMXZzNv89ndq+h/bb BIXQI83T+oEJKM+rFDz10K+nCTADdCU4Ri9eaA1+X9Xd3v6wO/hOUMoXm1A9OjUCsS1s ZiLPm9dUDqDXZ9j9WC5avuc9XgbBadZDf1ojWbeobGyiDUraXqJC1qFSRa/U74ivWvLE ZllPexqEksX4qj/u9ABKYew40VcDEb+qfa0qwhcIR2s3C3HOZ1qzXP+DMD7v5WpMxpT9 Zrsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=IkHtkDFEKBaCfxsckkEHPNxsTtMBckHgpjARuueXkuQ=; b=BPyJulnt2GpZ116MOnzkVKZVoQVeOUgRIjCs11O8Hoxv6m5jr7M1BWRzD6mraWI34l ZfUZnhbeS97kssYu8H9OirbGhNNong501BkHtGyhWKPhPMOXr1FQR8JJkG6qEZdSFXJU idLS/aoL83xLYl8LXCWLtNFHMQeeyAUsWlWoQ6rD+v+v5VuQ72gj1DksbdQgA9LmR0U8 jhY3xOxBaBH7KKn5+mfDAPAnjD2BE7I95EJCxKPu2Owac1UIjSO1laifIhGZwY4BtXeR bTMbx49euAStLnLEH5VbeP1+gxkPG27bhlIL64AAC4Z+ZMzDv3W9Ju/Pm0bgGi/37YS1 L36A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MMFB7rBE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e11si97610qtx.381.2021.05.12.03.24.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MMFB7rBE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm2h-0000Ab-JR for patch@linaro.org; Wed, 12 May 2021 06:24:39 -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) 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-Received: by 2002:a05:600c:293:: with SMTP id 19mr38178261wmk.144.1620814854399; Wed, 12 May 2021 03:20:54 -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) From: =?utf-8?q?Alex_Benn=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 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_Mathieu-Daud=C3=A9?= , f4bug@amsat.org, Greg Kurz , stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210408164610.14229-1-alex.bennee@linaro.org> Message-Id: <161786467973.295167.5612704777283969903.stgit@bahia.lan> Signed-off-by: Alex Bennée --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 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 =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ && (defined($1) || defined($2)))) && !(($realfile ne '') && + defined($acpi_testexpected) && ($realfile eq $acpi_testexpected))) { $reported_maintainer_file = 1; WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr); From patchwork Wed May 12 10:20:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435474 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4685689jao; Wed, 12 May 2021 03:21:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMjlg5fikmxY8XtQFRW1FEAMMznD/TeYfgkF5TUMkDa6Mdn4xytKMpf9OZdIHT7znAiF6a X-Received: by 2002:a1f:dbc7:: with SMTP id s190mr27644464vkg.12.1620814872721; Wed, 12 May 2021 03:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620814872; cv=none; d=google.com; s=arc-20160816; b=cXWKYtw7XNQh3NteAkXjZf1oV1DuUfJX49qhnkKDW/ctucVw7or7fcFq2Ufh2FJSoB qMdBp/vqDgs3s6K49k0z2G0MmUAdMRjJZb5Nzf3ZXpLHt1lBmaT+aG7yhjrcai/x3zhl qcwdLCCE5uzIwPP7n6GD20Ow48R29z9Alo26y4AecEHoEtEFgbkTR1OKkCVK1qlVjMfJ 4ycqJts97V2ipbKwmNQtK1+GgvPXXB/Ea6uCBnRxz97TRmQLAVvT52GQ8hC+L1A+e2ZP ifjCUr4a7ogJ+6Nd89e7EkV7f90hTHFUFG+ZOlh+SAq0IHHUtKoXtZQxJBS2rSOjOmwJ 6+DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=TuKozATKQ3Td5Fp2Tf/kZG/QQ+gsJcItcXeBYs6um/I=; b=ajr27GVEciueFotFGrbaV2TLh5H39g1eQAcezCpBGjZ9FvQjpUmXPtRtwYnk3H0iEP Or6Z9gKko2TQTVUniHi5+NM+8wmLAidKu3Yqcq42hsVKqvoQE9HdzaWGCncddjCREBfk PeJmImm3oe6UMQlG+L3unIblCRI2rmLfL9Gt5H3QZv2XkuWeTX2x5o6hz3+e6xcKE/MB hQedoxyIjsQUKZ2OtIF8Sr9ZvCeDPFG/jAjMqpIC1Xpe5LPrBXUBvR6JM+rJbST9Xn5K k6JH+RofmasfJqemkN7OmAxMPULupEh9U7Fv6RR0OPHEzo+AvAVxf25PWVH4lkF8V637 iw2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P8NWa9iW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o15si4457501vsh.377.2021.05.12.03.21.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:21:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P8NWa9iW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lglzM-0003CB-29 for patch@linaro.org; Wed, 12 May 2021 06:21:12 -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) 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-Received: by 2002:a1c:750b:: with SMTP id o11mr10791629wmc.188.1620814856275; Wed, 12 May 2021 03:20:56 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reviewed-by: Willian Rampazzo --- tests/docker/docker.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.20.1 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 = _get_so_libs(args.executable) if libs: for l in libs: - tmp_tar.add(os.path.realpath(l), arcname=l) + so_path = os.path.dirname(l) + name = os.path.basename(l) + real_l = os.path.realpath(l) + try: + tmp_tar.add(real_l, arcname="%s/%s" % (so_path, name)) + except FileNotFoundError: + print("Couldn't add %s/%s to archive" % (so_path, name)) + pass # Create a Docker buildfile df = StringIO() From patchwork Wed May 12 10:20:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435478 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4687932jao; Wed, 12 May 2021 03:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLSGaCuDwuThdsmws1AXODoFR8MFz42/tGR9Sr0t0H0QJoI2W+f9N+JAmwa38hqgcDPxjU X-Received: by 2002:a37:9ac1:: with SMTP id c184mr33150328qke.201.1620815081008; Wed, 12 May 2021 03:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815081; cv=none; d=google.com; s=arc-20160816; b=vrlYvCGe2Nzev+B78+JtfYmGD6PhdmbnL136rZJn6FNVB1Cor2d82ujpipq7/Pk0eW zQIea4p6J/m8NcsPVGexx6STE7wsfO9mdg2ooo5f2Wrkwa1iH92W1triVtuvszkqGo6n QX3ALldVeck/TguyHWleQGgPzzusuuCn3mzgmZPpZ+WFJL7NZDAl9YG6G7iuhiXkw440 34V40+PlDeHvPp2EAU85OvdddTJjrSlHa+AjucUHkF5yj6APBRNeCEtX92UmmH3QAJ5M nfsdGU/534e1dRBQrikr/xTb1ANrUGlrmDimEMHduHnVi/dzWfsLmsind99is0OJznP7 E3cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=+W6vzYOHSyrjetzgB57V0E/SW7N0nADhYjK0hwWdl18=; b=sk5CBIjoYtHYnm8dsslzsNz39bdLGmKbCiloDexMk24nwDaeSeUXqx4wk7Kgv30BVW 8KraR4TonvRVy48jphvnhrCHrSfpxvO/8KT8RF+ktnsmbt1bt8lZMJ/VfeMAV1gKJ2E2 hhuB75A5cxwkNzrnBA8G5VaC55hWlmWgAK1ct8XJLjPgX88qpj56HCiKp4yhzyd1jSRQ oxpxzp1DDEg1RVGpnTT89e5zc4T0d+WqjhFuLRcV/VVjZ7YvfLBhXua9QzY3+KQMPeyd J5lOlvW+poGCNn3RJn+fkgSiR+i0WHM3l8eck3UgZAUcYjjRWxf938PCfIcUwjVxmPwM LLKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aQ+5Uk+R; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f9si2423673qtf.44.2021.05.12.03.24.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aQ+5Uk+R; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm2i-0000Eo-B0 for patch@linaro.org; Wed, 12 May 2021 06:24:40 -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) 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-Received: by 2002:a7b:c217:: with SMTP id x23mr10552406wmi.26.1620814856821; Wed, 12 May 2021 03:20:56 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We're going to extend the abilities of the command shortly. Reviewed-by: Willian Rampazzo Signed-off-by: Alex Bennée --- v2 - fix indention issue --- tests/docker/Makefile.include | 2 +- tests/docker/docker.py | 56 ++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 28 deletions(-) -- 2.20.1 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="Image Tag") - parser.add_argument("executable", + parser.add_argument("--executable", help="Executable to copy") def run(self, args, argv): @@ -532,35 +532,37 @@ def run(self, args, argv): tmp = tempfile.NamedTemporaryFile(suffix="dckr.tar.gz") tmp_tar = TarFile(fileobj=tmp, mode='w') - # 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 = _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=ff) - - # Add any associated libraries - libs = _get_so_libs(args.executable) - if libs: - for l in libs: - so_path = os.path.dirname(l) - name = os.path.basename(l) - real_l = os.path.realpath(l) - try: - tmp_tar.add(real_l, arcname="%s/%s" % (so_path, name)) - except FileNotFoundError: - print("Couldn't add %s/%s to archive" % (so_path, name)) - pass - # Create a Docker buildfile df = 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 = _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=ff) + + # Add any associated libraries + libs = _get_so_libs(args.executable) + if libs: + for l in libs: + so_path = os.path.dirname(l) + name = os.path.basename(l) + real_l = os.path.realpath(l) + try: + tmp_tar.add(real_l, arcname="%s/%s" % (so_path, name)) + except FileNotFoundError: + print("Couldn't add %s/%s to archive" % (so_path, name)) + pass + + df.write(u"ADD . /\n") df_bytes = BytesIO(bytes(df.getvalue(), "UTF-8")) From patchwork Wed May 12 10:20:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435475 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4685813jao; Wed, 12 May 2021 03:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvwiOFwRqcy1Yi0K9XEgQMsqdwOZwCmcRb1ipdC4wNstuccsCqpdupeLXQG/ZWfeA1ikKy X-Received: by 2002:a67:8751:: with SMTP id j78mr30874408vsd.21.1620814883542; Wed, 12 May 2021 03:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620814883; cv=none; d=google.com; s=arc-20160816; b=fd07TU4Bb8bnVlSP3ooqzMkEPNumNFCdjsE+to0L4wAois0r8vfRVxZnDW8nrWW0G1 9UHPrcZykQIpyMCSCyDDmeCHzo7+3JdmCLRms4kSx5VvwD+RY3LOPJ+lUVK6F3NjimNO OkhRDrxOnAL4wEWEEfnytrawOYD2UEccp/0wokJoks4Ersb9fI1UCJYWZTy1sEr7LlU0 iILztlOIAFl3PkMPQ/cvK7Z6yt8QeZn673aS2NSHuxZfQtUHQsiAlbwI1F3aJN4WQZjb f54RDObpewfoGpA1QUIZJi3jW2ubQKeuPhsfnHctPTlIWb5qRdIk6HOqgZozSUSVp2w+ zPoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=itDJZjFFgEhRSTkYYv8ljT67JkqTdrMRXTGjjJSCeDY=; b=jWVn4jUf0CxyJNeY3zyZWQuWvWj7sOhYdVfyrfiaJ9iqDB+HBl+TmZQ6W/yJF00LaY LNMX8AOk60n9Rr2rGklTvyTZ5Cljjln4+093pff8r0rUwo/M3Y5uMrHygGhA+3/+C8SF T88zvkolwh0HuG0VvIzS3z43KMd1vqKOyhFW/gm/2dblPQvhFIRtRZ9nrZWAGqfMmUvc 6ssIrnL3iujfgGD5vqU/DO94XTP62j/AHtKFfiKGc59Krs9RanhdQLLz6xW+6cHr5pRF 61FAXg62JyAp9rP8whuV+jjc40mEyFTYvxYXY3xpxJt1hJO+Eeq7FYL8xat9cWTT1PKV cltQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FvRdj5Oi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t24si1890078vsj.267.2021.05.12.03.21.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FvRdj5Oi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lglzW-0003Ng-Kt for patch@linaro.org; Wed, 12 May 2021 06:21:22 -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) 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-Received: by 2002:a7b:cd98:: with SMTP id y24mr11014321wmj.4.1620814859211; Wed, 12 May 2021 03:20:59 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée --- tests/docker/docker.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.20.1 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): class UpdateCommand(SubCommand): - """ Update a docker image with new executables. Args: """ + """ Update a docker image. Args: """ name = "update" def args(self, parser): @@ -525,6 +525,9 @@ def args(self, parser): help="Image Tag") parser.add_argument("--executable", help="Executable to copy") + parser.add_argument("--add-current-user", "-u", dest="user", + action="store_true", + help="Add the current user to image's passwd") def run(self, args, argv): # Create a temporary tarball with our whole build context and @@ -564,6 +567,13 @@ def run(self, args, argv): df.write(u"ADD . /\n") + if args.user: + uid = os.getuid() + uname = 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 = BytesIO(bytes(df.getvalue(), "UTF-8")) df_tar = TarInfo(name="Dockerfile") From patchwork Wed May 12 10:20:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435480 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4689027jao; Wed, 12 May 2021 03:26:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY3Qd548Ba8Jv90KXOeffXQ3fsmDwitWSAwPF9Cxrl0PY/kzeYZD9DPCjXMXWvGw1o77VS X-Received: by 2002:a0c:e643:: with SMTP id c3mr302472qvn.18.1620815168889; Wed, 12 May 2021 03:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815168; cv=none; d=google.com; s=arc-20160816; b=yHnzsGP0vRzzF3VQJ0TfbDAeMK2VetAcHFB+1q5XygkQZ1CEMtXMJxfsFcVFmPmdyL JUEnNXmp0j2mpd8jrWI2VoKE3BUSzuBKIMPi5tfCC3Qq2JVNLNS5Kl+KdFal4lrDlO7V Q8Zi/XqCfycro+M1zYkN5EWm8RKqjHqNz1JJ3ZnWetJNToNvMDNH4wO11fSSkm/HuAlB FdQI0udsMT8ny+s/z/HNJEA0HsxG3op9kO/nbDeOuoFs9vq15lvcrENpSRelK7vC4MOq PztshOSrSglCm08n1uR2e4GCHEmMcOuqq+jGoPBApibkQ/B95GEfjkJ6lsRBXQzRq0Vq akRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=89FGk/7QSTLsW61jmi4iC132gql+p7Aet7f7N9abrBY=; b=CK8clHfsluX/7LxbdeaJrETCF2tQ3Eybg0aqsQvyy5t7OVLb2n7AT2mV5FgCdOxNL1 agM3zj3PmLf6WjbGoFPZZ2NyGzQkyv0a0N0OTiydaBVtkxRpn+eP6H/L30jRTt/nFzRk EBswkIcA8BLPOamCp0eZF7csQKdDbPudiZ1fQHODvpAp5D3DI1SEXxaZnqqINzMGgpui Sh2QVQRrgNMcsMz4z6DEZVPblGuVb8xR15r65LdU7ruCkXg6Z/KjWiwhHx5BDIr/z1O+ miyaIHTytuJEheKXjEtnWu8YoFpk7L2iX/dUKFV7vasRsFszPxoLl3VQzgFPqVs7HzX3 In7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SLxx1raC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r24si7603571qve.48.2021.05.12.03.26.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SLxx1raC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm48-0000f4-58 for patch@linaro.org; Wed, 12 May 2021 06:26:08 -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) 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-Received: by 2002:adf:f508:: with SMTP id q8mr44711320wro.109.1620814860117; 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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée --- tests/docker/docker.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.20.1 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): return 0 +class FetchCommand(SubCommand): + """ Fetch a docker image from the registry. Args: """ + name = "fetch" + + def args(self, parser): + parser.add_argument("tag", + help="Local tag for image") + parser.add_argument("registry", + help="Docker registry") + + def run(self, args, argv): + dkr = Docker() + dkr.command(cmd="pull", quiet=args.quiet, + argv=["%s/%s" % (args.registry, args.tag)]) + dkr.command(cmd="tag", quiet=args.quiet, + argv=["%s/%s" % (args.registry, args.tag), args.tag]) + class UpdateCommand(SubCommand): """ Update a docker image. Args: """ From patchwork Wed May 12 10:20:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435484 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4694999jao; Wed, 12 May 2021 03:33:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/ZhFY7+lRD+aQU+Q5cSl+Vl2bkrT8mRKpS0kkPCdDa82eDr6EQwFPR8DY2pVp90uF97Oz X-Received: by 2002:a67:bc5:: with SMTP id 188mr29772928vsl.50.1620815602715; Wed, 12 May 2021 03:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815602; cv=none; d=google.com; s=arc-20160816; b=GtSRIJ6k3lb2VKU0+DSjdR5bQYdNf9oXDZHL7/z4wp9IV3HZDalvRXkNTAqU+Y2Efl izVGKZPUq54RWSWFb3ojb3La5YWXNw9YMH1Y6y3zBNfpTK30Y2MsqHM4gvnzVxs+JXZY xRiSsXy7Zu46uTzkkTJlVEpoj5TCN/sHvbXy7iCeekPpfKtWdeoI3UYF5G0YNPmiRMnD T4pPBk8gC1xdF2dNRX4zqiQhdaBFEhbw9tVb2bBcFRrFMaS5Xm29KxgGV1ysczgs8Ric PrxOLIlH96ONfxvYClG/PhNQ1lX7YNnjtTANJoxECooYmy/r+DDTiVvn3pHdHLopjGDD B6iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=/MZdCQtxOS4WMjTXBL9ALIJU8/OPORnd/uYgF4h3xGc=; b=fCfgd9tS5obOvUZCW9+UiPTm/P6vTt996Cs0sI00Hk9u1uLaqGnPbAuwvqJXLKOb0q pHTIUpVhMO3FoZlWiH5HPLhrVZBlxhlvu3Vj6bl/qkyBYSuoMMlT39U9/cRpzqODdqyF J8SL31XgRIRT5W0l/HGtGx4Lnj7ByaSbayZIQ5R5Qmjcgp5FLhqCqGiebUj8xWmuwwR/ gYeuTybe8iou2vUcGWqTMM9HUyEQSJOLP5D2aOesdRwQsbvrf//2uNBEAJhBo/BT27Bk UWBCNztA71EmBrIFQ7bgZZ4ks91V2WPGE4qxjpIyDtJnjZSAs36bK1vO7PgYCuW8fT1P q+hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="X/6Sk1Sv"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t4si2936358vsh.390.2021.05.12.03.33.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:33:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="X/6Sk1Sv"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmB8-0003ml-11 for patch@linaro.org; Wed, 12 May 2021 06:33:22 -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) 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-Received: by 2002:a5d:4304:: with SMTP id h4mr44658971wrq.210.1620814864487; Wed, 12 May 2021 03:21:04 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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=1 NOCACHE=1 J=30 docker tag qemu/debian-hexagon-cross registry.gitlab.com/qemu-project/qemu/qemu/debian-hexagon-cross docker push registry.gitlab.com/qemu-project/qemu/qemu/debian-hexagon-cross 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é Reviewed-by: Willian Rampazzo Signed-off-by: Alex Bennée Cc: Alessandro Di Federico Cc: Philippe Mathieu-Daudé 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@BN7PR02MB4194.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 -- 2.20.1 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 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 +# +# 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-cross.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/docker/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=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive 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/bfcd21876adc3498065e4da92799f613e730d475.tar.gz +ENV MUSL_URL https://github.com/quic/musl/archive/aff74b395fbf59cd7e93b3691905aa1af6c0778c.tar.gz +ENV LINUX_URL https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.6.18.tar.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/sources.list +# Install QEMU build deps for use in CI +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy git ninja-build && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt build-dep -yy --arch-only qemu +COPY --from=0 /usr/local /usr/local +ENV PATH $PATH:/usr/local/bin/ diff --git a/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.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-toolchain.sh @@ -0,0 +1,141 @@ +#!/bin/bash + +set -e + +BASE=$(readlink -f ${PWD}) + +TOOLCHAIN_INSTALL=$(readlink -f "$TOOLCHAIN_INSTALL") +ROOTFS=$(readlink -f "$ROOTFS") + +TOOLCHAIN_BIN=${TOOLCHAIN_INSTALL}/bin +HEX_SYSROOT=${TOOLCHAIN_INSTALL}/hexagon-unknown-linux-musl +HEX_TOOLS_TARGET_BASE=${HEX_SYSROOT}/usr + +function cdp() { + DIR="$1" + mkdir -p "$DIR" + cd "$DIR" +} + +function fetch() { + DIR="$1" + URL="$2" + TEMP="$(readlink -f "$PWD/tmp.tar.gz")" + wget --quiet "$URL" -O "$TEMP" + cdp "$DIR" + tar xaf "$TEMP" --strip-components=1 + rm "$TEMP" + cd - +} + +build_llvm_clang() { + fetch "$BASE/llvm-project" "$LLVM_URL" + cdp "$BASE/build-llvm" + + cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=${TOOLCHAIN_INSTALL} \ + -DLLVM_ENABLE_LLD=ON \ + -DLLVM_TARGETS_TO_BUILD="Hexagon" \ + -DLLVM_ENABLE_PROJECTS="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=${HEX_SYSROOT} +EOF +} + +build_clang_rt() { + cdp "$BASE/build-clang_rt" + cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_CONFIG_PATH="$BASE/build-llvm/bin/llvm-config" \ + -DCMAKE_ASM_FLAGS="-G0 -mlong-calls -fno-pic --target=hexagon-unknown-linux-musl " \ + -DCMAKE_SYSTEM_NAME=Linux \ + -DCMAKE_C_COMPILER="${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang" \ + -DCMAKE_ASM_COMPILER="${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang" \ + -DCMAKE_INSTALL_PREFIX=${HEX_TOOLS_TARGET_BASE} \ + -DCMAKE_CROSSCOMPILING=ON \ + -DCMAKE_C_COMPILER_FORCED=ON \ + -DCMAKE_CXX_COMPILER_FORCED=ON \ + -DCOMPILER_RT_BUILD_BUILTINS=ON \ + -DCOMPILER_RT_BUILTINS_ENABLE_PIC=OFF \ + -DCMAKE_SIZEOF_VOID_P=4 \ + -DCOMPILER_RT_OS_DIR= \ + -DCAN_TARGET_hexagon=1 \ + -DCAN_TARGET_x86_64=0 \ + -DCOMPILER_RT_SUPPORTED_ARCH=hexagon \ + -DLLVM_ENABLE_PROJECTS="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=${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang \ + CROSS_COMPILE=hexagon-unknown-linux-musl \ + LIBCC=${HEX_TOOLS_TARGET_BASE}/lib/libclang_rt.builtins-hexagon.a \ + CROSS_CFLAGS="-G0 -O0 -mv65 -fno-builtin -fno-rounding-math --target=hexagon-unknown-linux-musl" \ + ./configure --target=hexagon --prefix=${HEX_TOOLS_TARGET_BASE} + PATH=${TOOLCHAIN_BIN}:$PATH make CROSS_COMPILE= 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=../build-linux ARCH=hexagon \ + KBUILD_CFLAGS_KERNEL="-mlong-calls" \ + CC=${TOOLCHAIN_BIN}/hexagon-unknown-linux-musl-clang \ + LD=${TOOLCHAIN_BIN}/ld.lld \ + KBUILD_VERBOSE=1 comet_defconfig + make mrproper + + cd "$BASE/build-linux" + make \ + ARCH=hexagon \ + CC=${TOOLCHAIN_BIN}/clang \ + INSTALL_HDR_PATH=${HEX_TOOLS_TARGET_BASE} \ + V=1 \ + headers_install +} + +build_musl() { + cd "$BASE/musl" + make clean + CROSS_COMPILE=hexagon-unknown-linux-musl- \ + AR=llvm-ar \ + RANLIB=llvm-ranlib \ + STRIP=llvm-strip \ + CC=clang \ + LIBCC=${HEX_TOOLS_TARGET_BASE}/lib/libclang_rt.builtins-hexagon.a \ + CFLAGS="-G0 -O0 -mv65 -fno-builtin -fno-rounding-math --target=hexagon-unknown-linux-musl" \ + ./configure --target=hexagon --prefix=${HEX_TOOLS_TARGET_BASE} + PATH=${TOOLCHAIN_BIN}/:$PATH make CROSS_COMPILE= 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 From patchwork Wed May 12 10:20:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435483 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4692470jao; Wed, 12 May 2021 03:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA/0SHfdbws+VYN4KlLUJTcE1a3u3VM8e3T4d90fr2VQ4k7O/ki3M/0Lta6GqHpEI0VYD9 X-Received: by 2002:a1f:f2ce:: with SMTP id q197mr27260943vkh.15.1620815453004; Wed, 12 May 2021 03:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815453; cv=none; d=google.com; s=arc-20160816; b=Awb7erZGiLLlbabz/yNf8PUtt+oK6XkNeYPQhMkGgHameh1plNJVWRnVE4H1xsE6wV wE7lf2trtIYvQBRqkzr2E0C0VPWRHzDd47om7mrzQueaLTkXWEkdBEiOAYS95jyNUtoR ksVXbYb1CJo/lb9xW8h+P/wyLaTE5dXzKzPYPny11SIckOhSTYtfwwxzUrYoLn4pKCWe Fllgf2yC4/rGo3ZckvOVVnfNm0fa7KrhYo+jfGKFHBaDNX7swUcWdyFtFCdOuPR5w3fB ZMqr4KnxM5uOQ4U714osfZ/BEUl2z1Zlx16yz6JfeRISYUKw5plt8/Bkiiq0LaVbWHEb EhxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=OWsxh1O/PCMLIPJdNYGt0wcTu1m8kvjY7RzHMHd8hQY=; b=oV3orTtQb7k0XZjEa7IZ/288ecw8utXU0JXXFdy9hrI2zBKu8MspMjJmvk1a+1UMNH fzPd9T+529lu3Q8ZF/yoxT6F0Gm8DQzsLYm+rCgweb87fbZQ3uZNIzlZ3Uxp24R8hopg WjRGzk1iyUEoiXRjpaR9ATtqn2sE130QnSRj84kcdU4TJYbcwmNGykzI/XeyvT0hNOrV CUtr1B0VaLZfRpcDAYbGYtQp/SlX1ukk70sOiGQe0zwj3uCoF1kkWxaWFmiR29Q70lGx 2tuDc4JpCq34/JfM7pjyVhjIMYNguRublETsTONiaV56kf3CwV9icOT7cQ33nh8+S4yG H1Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ze9RBQMO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q19si10605872vsl.110.2021.05.12.03.30.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:30:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ze9RBQMO; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm8i-0000Dz-9j for patch@linaro.org; Wed, 12 May 2021 06:30:52 -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) 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-Received: by 2002:a1c:4e06:: with SMTP id g6mr37666582wmh.30.1620814862632; Wed, 12 May 2021 03:21:02 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alessandro Di Federico [PMD: Split from 'Add Hexagon Docker image' patch] Signed-off-by: Alessandro Di Federico Signed-off-by: Philippe Mathieu-Daudé [AJB: add container_hosts] Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé 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(+) -- 2.20.1 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=fedora-cris-cross container_cross_cc=cris-linux-gnu-gcc ;; + hexagon-*) + container_hosts=x86_64 + container_image=debian-hexagon-cross + container_cross_cc=hexagon-unknown-linux-musl-clang + ;; hppa-*) container_hosts=x86_64 container_image=debian-hppa-cross From patchwork Wed May 12 10:20:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435482 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4691519jao; Wed, 12 May 2021 03:30:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZjxDDAG3xP7uDdIEivpcVMsBLiz9cHubrN3QNHtMu9HrmIU3cQHlj1reQ8eszIsjNIKKD X-Received: by 2002:ab0:7250:: with SMTP id d16mr32004269uap.7.1620815403441; Wed, 12 May 2021 03:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815403; cv=none; d=google.com; s=arc-20160816; b=LvyZ0wvGSSnEufWLMh3klUR1nQR9fEbOe27zQjf7PQ1XkhcW9nSzC02frmAdMamfuC vK5wufwUsuJ115JfBBzkaA9hbTv7sw9pzYiJRks2TBmbHLOY+o2tEGApDsYQWU5OZRA/ ECacM7n2BpjtlcaFh4NvINZl4SP6ZMEtRiem/y5QAJfUP4K4rYN8ZWxZBMjkwRWZfLBO XmrSqc4ggFbETRa/eLNXh5jXEvc5KwWqEqpDA3qJLAlCZByykT3iFlDtDvSYzXuuiTrt hOE/MrCAYf19FpKvhfz6DUFVE1ZxM/xXgrc6F2jxfXDiu7hpGBz3EXD+gPNV2+MUnnKQ ONDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7CQ/6kaWzCVdnPOK3LKkrtiffwfVdv2ArDXooaU7BUU=; b=Kk0IbGInhNtKBEgNAd/VXcEZMuc+I7+BQVH/TTkwZnCIhDLxzkEwLbU55DzqlRLJAZ Bholf3/VbY1Nfnk3xTZdYpod3FCRAsIMDZcLIoLBBDty+krkn8RvQXA0VlNH+ga6Mrhr 2xRDU07s03SaHDWf3IHAB67nhHDK7WJgtvw71x63ITfBYeV0ajQrC5b51vKL5dV0cfTI ll26dnHcQLZGDU/k5aYRO4WG+hAh7gqP85rkrHl7NHljyZp+VIbDqX93NSwF7bSdUl0F JwEDm9iqFghsxVf/B5K5QxdKYFw5o+vwsDtG8YArWDx+5/lTdw9JRm5hbklY8Xf0aScD aeFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="QrJw/wSh"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f5si1736966vkl.39.2021.05.12.03.30.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="QrJw/wSh"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm7u-0006Hv-LC for patch@linaro.org; Wed, 12 May 2021 06:30:02 -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) 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-Received: by 2002:adf:e8c3:: with SMTP id k3mr2804018wrn.255.1620814861920; Wed, 12 May 2021 03:21:01 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Wainer dos Santos Moschetta Reviewed-by: Willian Rampazzo Tested-by: Philippe Mathieu-Daudé Message-Id: <20210305092328.31792-7-alex.bennee@linaro.org> --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.20.1 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 +# 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 From patchwork Wed May 12 10:20:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435476 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4686424jao; Wed, 12 May 2021 03:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVP7xbmBnZg8WTBwUna5K/oRYk16otMYdYZyYIO6NRgn5fVhb41z9z81GuBTbwU9D1g5wg X-Received: by 2002:ab0:4943:: with SMTP id a3mr31104225uad.107.1620814942228; Wed, 12 May 2021 03:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620814942; cv=none; d=google.com; s=arc-20160816; b=xvGEV9NISZ6ODoORtUPx0D61NEQJX+fDP+Qw8+RjJs5DoNYxfHZBdVpXbz6ViFh2ts KCI1uPr5Vjm8NkDcarGgrQamxgfP9vP75xPQPTA1JR+p8/YL4lSXyY+qOy/NHL3tofol QCsI3plnjtYEHt88GwXUPp/VIdonSbwt2X8Ak/5+BJ8fXKIA1NqdBdGSlbcpoBW2rWkD PXsfeJ7JeTwzIk+/8BGgNmLvc/2o3wNXx8BOLEG8Iy10mM4M8/Kp46nD2Cqgu21OttQo 3csJjqTiZQP7M8fpOFYT/2lu+HlnWj2A9tRxU7PWzDUgN7fTNYtetnBevLoCuc0wm9ie xtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=sPzJesUomMFY9absGAV+e0gSasa1u8Mhgwq7e7l5rQ4=; b=W93VpPVp3Sdx40Z1onlYkqgPtFxwArERr4TP3NqSo/eW1DsJFB9TMm1CsBhx9hXQKH o3AIW4Gh+xVS1Pu/bfpARbN+PJ3aITykd/Q6wfimzIaOJ+gjwkrqIF1nWyI/zzA7Q4fH eY5RHlTjcfQ+eTY3Ddg+5ma1YEmE/eNZYWUqQPJZWmiSQgotgunahxiyPQIEm91qy3yu Or9sx7/g9/qmDHUHPOAFg0js4wyhie6x07mx6xm10S06yqnc5VhIeNB8JqAISxzBvQw1 RdI8me63/q092mDe5c2MY8ij5h1JegeJjVa5Mp8yThItNajydK3TBJqdcSou+/AsKFxi u7AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZsLvS6GA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u2si444802vsh.149.2021.05.12.03.22.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZsLvS6GA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm0T-0003fh-I9 for patch@linaro.org; Wed, 12 May 2021 06:22:21 -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) 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-Received: by 2002:a5d:4a48:: with SMTP id v8mr45028899wrs.204.1620814865538; Wed, 12 May 2021 03:21:05 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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=/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ée --- tests/tcg/configure.sh | 148 ++++++++++++++++------------------------- 1 file changed, 59 insertions(+), 89 deletions(-) -- 2.20.1 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 for target in $target_list; do arch=${target%%-*} - case $arch in - arm|armeb) - arches=arm - ;; - aarch64|aarch64_be) - arches="aarch64 arm" - ;; - mips*) - arches=mips - ;; - ppc*) - arches=ppc - ;; - sh4|sh4eb) - arches=sh4 - ;; - x86_64) - arches="x86_64 i386" - ;; - xtensa|xtensaeb) - arches=xtensa - ;; - alpha|cris|hexagon|hppa|i386|lm32|microblaze|microblazeel|m68k|openrisc|riscv64|s390x|sh4|sparc64) - arches=$target - ;; - *) - continue - ;; - esac container_image= case $target in @@ -236,70 +207,69 @@ for target in $target_list; do echo "CROSS_CC_GUEST_CFLAGS=$target_compiler_cflags" >> $config_target_mak got_cross_cc=no - for i in $arch $arches; do - if eval test "x\${cross_cc_$i+yes}" != xyes; then - continue - fi - eval "target_compiler=\${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=y" >> $config_target_mak - else - echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak - fi - echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak + if eval test "x\${cross_cc_$arch}" != xyes; then + eval "target_compiler=\${cross_cc_$arch}" - # 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=armv8.1-a+sve -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_SVE=y" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -march=armv8.3-a -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_3=y" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -mbranch-protection=standard -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_BTI=y" >> $config_target_mak - fi - if do_compiler "$target_compiler" $target_compiler_cflags \ - -march=armv8.5-a+memtag -o $TMPE $TMPC; then - echo "CROSS_CC_HAS_ARMV8_MTE=y" >> $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=y" >> $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=y" >> $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=yes + echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak + echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak + fi + else + got_cross_cc=yes + echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak + echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak + fi + fi + fi - enabled_cross_compilers="$enabled_cross_compilers $target_compiler" - got_cross_cc=yes - break - done + if test $got_cross_cc = 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. - if test $got_cross_cc = no && test "$container" != no && test -n "$container_image"; then + case $target in + aarch64-*) + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=armv8.1-a+sve -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_SVE=y" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=armv8.3-a -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_3=y" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mbranch-protection=standard -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_BTI=y" >> $config_target_mak + fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -march=armv8.5-a+memtag -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_ARMV8_MTE=y" >> $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=y" >> $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=y" >> $config_target_mak + fi + ;; + esac + elif test $got_cross_cc = no && test "$container" != no && \ + test -n "$container_image"; then for host in $container_hosts; do if test "$host" = "$ARCH"; then echo "DOCKER_IMAGE=$container_image" >> $config_target_mak From patchwork Wed May 12 10:20:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435481 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4691042jao; Wed, 12 May 2021 03:29:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwihX50xOyJ96exjkr/MlnLf1tAXSWLfr0MKjefo7HJY3EIjMMBlF57b2uZqum7QoH744MN X-Received: by 2002:a05:620a:3dd:: with SMTP id r29mr23367190qkm.468.1620815365771; Wed, 12 May 2021 03:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815365; cv=none; d=google.com; s=arc-20160816; b=HEIJb8cD9n1BpnuWj4PMz2ydFkOV2Ki5TU+YiUJZ172XNwBrfe3kN59R+cecAGgFnH xTHuSYWQ3dr6EvREB6gDSDjRcKsL/08Ts/qD05dRhPNVsV+w9Bt9pHUjFpSeUfnDNCjW BRVHA96tuFQn8dEkXKfCj9CvtQBFtmN/RmarWl/Iu1kfpe7I7STHKBs5+w07DbfHgjbS EZmXOQ9fVKtKU3LfEB5/pb5HLIgEnEQ8XJi9OjlLwK5HgaYLBBKNtrPJvjTL5YZm5h60 cji2FCwl17XHCU0SA0TlSmsH7E76FnKTl47krQssdS+gugvPjnqgd60W9XSgZElrbWZf dVMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=+bRC0Et+Ybmra+FhUpwC3CZYHeRVawT5fsMVpUvmvv0=; b=cCTY2Gxv1dbJfYSEorHMGe2l/gmWQLVnd+d0D1RdImi+5jnKkabLoVboOVXKV1gcy5 ruIG/hNT3FzydlmhWS9IpBGO6Wt7gQPq+VMHLjz3dpoyX7L2siN8mbDpU3gam5QQ/H5N vgr59bCS5px3RuEMYX4t7PB4GExdCo9iIEGqAR/hAnorehqf+dJ+Tl6BQFj1DrsuyT4q V08exNw6FRsvvwBxMsly56W7UI+ytwrkkw2yTU1gNTA8t8kPae2yrJqTXsJwHL7Vd/fx J+I8TJV5O+XhFf2wChScX1Xjy4bBdFI9IwLJqjiZlVaoIfDfaRupzXG4YbfggTkFclAX kciw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=y+1LzMuX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z17si571633qkj.366.2021.05.12.03.29.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=y+1LzMuX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm7J-0006G9-8Q for patch@linaro.org; Wed, 12 May 2021 06:29:25 -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) 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-Received: by 2002:a1c:7ec2:: with SMTP id z185mr8126981wmc.138.1620814867061; 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) From: =?utf-8?q?Alex_Benn=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 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_Benn?= =?utf-8?b?w6ll?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reviewed-by: Willian Rampazzo Reviewed-by: Philippe Mathieu-Daudé 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(+) -- 2.20.1 diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfiles/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/dockerfiles/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/dockerfiles/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 \ From patchwork Wed May 12 10:20:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435496 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4700629jao; Wed, 12 May 2021 03:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKOiIBIQ5g8BPz/zEtQWnLmBpNWeF2LnUw5PZqhd11r6T7EDLKTsNZfxV7o7VvSaK0PXZG X-Received: by 2002:a02:cf32:: with SMTP id s18mr2833092jar.31.1620816078989; Wed, 12 May 2021 03:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816078; cv=none; d=google.com; s=arc-20160816; b=ZzQJJN4KtSh2fz1rSMhM6ulL0efl1X/u2M0gUUHV5Usjo88T8hjLiN2qOyCtBSoeN0 7xmEESU2yFt+2NlujaWQTJpOE0jtR0fSMMz+X56j11Bwu7IgUSFd9mSz06H9aH8DnNVR VJYKdXn2D4PROaof+lIwW9yErHkCQUEEScNIJzyMyDaSqwr6JGDU7A4WAdcNDBwj55SO FCReQ8fo4MyLt2ghpudV/nauUxRXRdnBJNsIJO7kYNLjg/b2KZmt1uGWEYXcounLg0aW /5Omuooz02Kf+5zK4AEXt6YzW0VJvZypjZbW5JaIuanPlKOLUSjiQXZIsvwIChPWW97q 4Gdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=iPq9uGOdfE2STV15D/gtYtThg7p+C48gB81bHaUpG4E=; b=IElqsLNKfBPNh2hhZSqsUpVuX1mhWNcRAAvr330kFpGXv1TdwSlNN4ZfaD/N/N06zV eKHOs/R2I9vWLL+WPOq4CxX0/nvIkNMLEPMHfQiob5kcKCcWC4YsBZ9tHq8ZGz0oJXC3 HAOfQEhjQbUr8C+d0IXXoHj2NIzsC00GskVRtDjwk5gwxu11feZaH+VS0Y8z6/NN4Wa7 IGZmHFxzE4NAAKG0LJyhdoATZ9ACh/gZSbOIZH15mkjqzMAG0Oj5zQCdpm1gXRLoHpWn 3J9NF/4On98ZKMU72EaS5wHeCRtYGho8K3kggwEwcKzttGKF0bJB/D7KHbqAPxp9oFZM p97g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P+NzgoOl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a9si9150581ilh.51.2021.05.12.03.41.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=P+NzgoOl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmIo-0004U5-AL for patch@linaro.org; Wed, 12 May 2021 06:41:18 -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) 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-Received: by 2002:adf:e0c6:: with SMTP id m6mr45984304wri.66.1620815427667; Wed, 12 May 2021 03:30:27 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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é Signed-off-by: Bastian Koppelmann [AJB: fix quoting, only handle docker & clear, test -n, tweak commit msg] Signed-off-by: Alex Bennée --- 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(-) -- 2.20.1 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-@ = $(if $(V),,@) quiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3) CROSS_CC_GUEST:= +CROSS_AS_GUEST:= +CROSS_LD_GUEST:= DOCKER_IMAGE:= -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="$(TARGET)" CC="$(CROSS_CC_GUEST)" \ + $(if $(CROSS_AS_GUEST),AS="$(CROSS_AS_GUEST)") \ + $(if $(CROSS_LD_GUEST),LD="$(CROSS_LD_GUEST)") \ SRC_PATH="$(SRC_PATH)" BUILD_STATIC=$(CROSS_CC_GUEST_STATIC) \ EXTRA_CFLAGS="$(CROSS_CC_GUEST_CFLAGS)"), \ "BUILD","$(TARGET) guest-tests with $(CROSS_CC_GUEST)") @@ -59,11 +63,24 @@ DOCKER_COMPILE_CMD="$(DOCKER_SCRIPT) cc \ -i qemu/$(DOCKER_IMAGE) \ -s $(SRC_PATH) -- " +DOCKER_AS_CMD=$(if $(DOCKER_CROSS_AS_GUEST),"$(DOCKER_SCRIPT) cc \ + --cc $(DOCKER_CROSS_AS_GUEST) \ + -i qemu/$(DOCKER_IMAGE) \ + -s $(SRC_PATH) -- ") + +DOCKER_LD_CMD=$(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="$(TARGET)" CC=$(DOCKER_COMPILE_CMD) \ + $(if $(DOCKER_AS_CMD),AS=$(DOCKER_AS_CMD)) \ + $(if $(DOCKER_LD_CMD),LD=$(DOCKER_LD_CMD)) \ SRC_PATH="$(SRC_PATH)" BUILD_STATIC=y \ EXTRA_CFLAGS="$(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=${target%%-*} + # reset all container fields container_image= + container_hosts= + container_cross_cc= + container_cross_as= + container_cross_ld= + case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AArch64 @@ -273,7 +279,16 @@ for target in $target_list; do for host in $container_hosts; do if test "$host" = "$ARCH"; then echo "DOCKER_IMAGE=$container_image" >> $config_target_mak - echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> $config_target_mak + echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> \ + $config_target_mak + if test -n "$container_cross_as"; then + echo "DOCKER_CROSS_AS_GUEST=$container_cross_as" >> \ + $config_target_mak + fi + if test -n "$container_cross_ld"; then + echo "DOCKER_CROSS_LD_GUEST=$container_cross_ld" >> \ + $config_target_mak + fi fi done fi From patchwork Wed May 12 10:20:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435485 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4695854jao; Wed, 12 May 2021 03:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJkZjcJsWMB347WDvckVd36EwYN6JF59PrYxQVTxDSZfMH48pdjfHqC+NPjO803qu0fdjs X-Received: by 2002:ab0:620e:: with SMTP id m14mr31556092uao.2.1620815673022; Wed, 12 May 2021 03:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815673; cv=none; d=google.com; s=arc-20160816; b=b5l8N+ToqIOmIWRk/JNVdhnMxCt1Eacn7icnnudZDuesr4ACtDX6NUUqimkODiXOw7 snKmYgZ6lzzzAwzC5dMZf+S4kR3Vl1pxxfrPL5FNl9tc3Xep6nuUMahFssx3eW2XHkPs aydgQS31qVOi0Ce5pXBcciiYURw79Qsyqnc9zLxJCST/XjKLgwTvmbcCeYU5mvpaQXhD Eek41Bgu/zTtWM5+QAZrH4YGDDyfsuegKAUYDtRDgfF5JujcLpwBq+zQTZ4kqrfQt5KC sU5oU0kNivcAKUsRG4cHFbyg6iXrDMwhLOFbSkDOoWR9gyzTuZJL+69V+ERs6KmeZP4Z imUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=VsOEBZtB0HF2JImaMnITvaw+tRLQeXiNM3E9i7SwoP8=; b=pCMEZCKIZLSEB2mNuSt4oT+Z8XHsHn2xg5TrInxhDvtRYCL8yOTYU0Po0XYScH1jyk 6s13skocfbobboHTgP+UOBzes8w9SQp38+S4x8kz5eKUvtiI4iHR9T757ii9n/Yknz9I CEYbMxCqkG5+qN4ApNmS1TgUOdoWAhz1QL5bma66fgxqR6UBFYXdsK8kOACgB7DKh1SG B1lKgFRge5u7qqhB4X2Md2yVCphI9Dkqo6cmOb6b72Ibo7Wi4ocsRFOywSqm40uAr2F4 T/45oJWCvJa0xzJueSDYXD3Ez7iC2I6cuSICFyDZvKxgAethcgDdjv686MWQD+mQc1P3 dnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=l163YBaw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n28si11747133vsj.138.2021.05.12.03.34.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=l163YBaw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmCG-0006FO-CQ for patch@linaro.org; Wed, 12 May 2021 06:34:32 -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) 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-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr10651729wmq.137.1620814867999; Wed, 12 May 2021 03:21:07 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann when trying to run successful short tests from the Makefile timeout would not 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, chil‐ dren of COMMAND will not be timed out Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée Message-Id: <20210305170045.869437-3-kbastian@mail.uni-paderborn.de> --- tests/tcg/Makefile.target | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.20.1 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 = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) # $1 = test name, $2 = cmd, $3 = desc ifdef CONFIG_USER_ONLY -run-test = $(call quiet-command, timeout $(TIMEOUT) $2 > $1.out,"TEST",$3) +run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \ + "TEST",$3) else -run-test = $(call quiet-command, timeout $(TIMEOUT) $2,"TEST",$3) +run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2,"TEST",$3) endif # $1 = test name, $2 = reference From patchwork Wed May 12 10:20:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435479 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4688083jao; Wed, 12 May 2021 03:24:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5pz5L0kU1PiN+OZDzI0gpP5ezwbAaGCHvY4xTYDxSDqxhM93JoxnOIBDbe1ZsdkYxyILw X-Received: by 2002:a05:6e02:d41:: with SMTP id h1mr29548101ilj.0.1620815093684; Wed, 12 May 2021 03:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815093; cv=none; d=google.com; s=arc-20160816; b=qc7mJHKLpM7Z5MFlJKG+wm27g1AzRxD19ZjgZw+FCTbOhn6rx1QyaAuYd/+jDjZPNp oJF0IyqnkFOqQHI0OdZEz+U1V+Xl8lMRR9Qs660tv6xYByv98XAa0qGUY0Wg3wITNH+F VYFe3ySfwHfS6Au/ISJZlzqTy06o/EvuaSM6Krz4HLxJIcK3G7U/UwBo2IS8uWNYiHLh UTj+0gBMnxeiCet7xiGSq6+0HqlCkt6hjpMXkIuqxZRoRJQdKGU/tAhby9VAFMe0xFJh alWc+1r3CEOUFtEr1BMrWppE5qpkqTQsVSo+UpddWVT1z8EQh/wxrmweQ9EVjn9l/peq yD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Ci7dPAMJyayfYNj3hZaWT3hefWzNQwgkwFzrMvlg9Tw=; b=wc5XU1xuE0SgXuwwztU5/5kpVpz7X9w/CXRRmDl0O9owdY7deh9NDnpCGs28INUS+m MhVCujVOfd0x6sbhvG9R3nfCpEE8I2OqkGjB2anDbmbUDGGl4NEJmZtmVhSYMLdzJ14m vnatD6VTXvkv+nQY3C/tbQDF+Q5benYLnA2ArhvEiICilJ5d/ClihNDhN9fQr3HS0y/e whs7b8RfycKuBiLwgLPZ3JFjNnfaQMyrpDVf5no7euH+GvWfoKPkhQvV0LWe2MNzYpEz D2u8sBC0+3KT6Y2g5wU8rTB2Ft0bK0OLqL0Beaio+y5QPhrjqDAkN7US6YqpRv/hwy1r ZX0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wjGXFKQi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w11si30289203ilu.8.2021.05.12.03.24.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wjGXFKQi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgm2v-00015o-3u for patch@linaro.org; Wed, 12 May 2021 06:24:53 -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) 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-Received: by 2002:adf:e707:: with SMTP id c7mr2271441wrm.137.1620814870985; Wed, 12 May 2021 03:21:10 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 diff --git a/include/hw/tricore/tricore_testdevice.h b/include/hw/tricore/tricore_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" @@ -56,6 +57,7 @@ static void tricore_testboard_init(MachineState *machine, int board_id) { TriCoreCPU *cpu; CPUTriCoreState *env; + TriCoreTestDeviceState *test_dev; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *ext_cram = 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); + test_dev = 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 = machine->ram_size; tricoretb_binfo.kernel_filename = machine->kernel_filename; diff --git a/hw/tricore/tricore_testdevice.c b/hw/tricore/tricore_testdevice.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 = { + .read = tricore_testdevice_read, + .write = tricore_testdevice_write, + .valid = { + .min_access_size = 4, + .max_access_size = 4, + }, + .endianness = DEVICE_NATIVE_ENDIAN, +}; + +static void tricore_testdevice_init(Object *obj) +{ + TriCoreTestDeviceState *s = 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[] = { + DEFINE_PROP_END_OF_LIST() +}; + +static void tricore_testdevice_class_init(ObjectClass *klass, void *data) +{ + DeviceClass *dc = DEVICE_CLASS(klass); + + device_class_set_props(dc, tricore_testdevice_properties); + dc->reset = tricore_testdevice_reset; +} + +static const TypeInfo tricore_testdevice_info = { + .name = TYPE_TRICORE_TESTDEVICE, + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(TriCoreTestDeviceState), + .instance_init = tricore_testdevice_init, + .class_init = 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 = 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')) From patchwork Wed May 12 10:20:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435494 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4699694jao; Wed, 12 May 2021 03:39:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbBKpsIamrvcZiuoKo+g6Wf6iIAGaA5Lc+zTa//apov4vkt06kjbjeo4is2ZNiMyMES7tQ X-Received: by 2002:a37:5b43:: with SMTP id p64mr32288467qkb.131.1620815983808; Wed, 12 May 2021 03:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815983; cv=none; d=google.com; s=arc-20160816; b=Us83fVShcCvDqbn6IkYRsYGuZbwIWrVerX5Pri6kPYT63X1xjz5YccM5MfsnqqB035 Ig4KcNxBCqRpGxl68HrZotKBilFg5ezoUT/bUG+0wI2BGMUAdDiU8SYFGxrCJTLs8o+w SHUTH4uvu5DjenG/49XXKb7+KmOVkmSGiBlvOZ3YEDqpgDOJIrXRccSbsIVI3aa1Z4Ep aniGZx14kw9OyfjJd3nVVCSNf37Dg+jxDE25CFxwSLg8d49f5k46BbbzAEiKRxwG9YEO 24VsgjUgY+euF152mG4hNwqtlHPAM9nRUazfDFMSxXjOK4bJ9NFbvHloKd6tmNNKsz8P nlyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=l97rhLDxO0XNq5HQNG4JIIr2ozVY5tElcdl90wPdeI0=; b=KaGeJebAcGSEAPuQqA2dRgO2bP1HHNjZYTA+yq3XJLtVobhjTMtvmrRrPcrg3RQ9GX 6VBCGzVZXZiA01tqSahSwjqSg1GARNgPaFpMlxRAk1TwmTl9LrvKyycjOGRNX741GQEC 6V55PJFofLHVPSpmA+f7zncEQvuvR72B5/ZCfKhrjmeWUXNGkrGOCSepUv6SY0sSMGl0 L/FBrbpAXddvqkDrlG0I5x9Y10MBLmMTILCIoEPTqyoZYa7hVaLRE2zaG404YCTU6HCS 5WxTxIWdQL/0PXpaIZROh8XkaO8WB2Bn2IsNupNs+IKQ5KZS9k00q5VXtUhRh+DQp4yJ XWhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=s0+5H6cP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z6si15216091qki.136.2021.05.12.03.39.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=s0+5H6cP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmHH-0000yA-6U for patch@linaro.org; Wed, 12 May 2021 06:39:43 -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) 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-Received: by 2002:a05:6000:12cc:: with SMTP id l12mr6301489wrx.91.1620815440446; Wed, 12 May 2021 03:30:40 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann this includes the Makefile and linker script to build all the tests. Reviewed-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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/ Multiarch Linux User Tests M: Alex Bennée 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 = $(SRC_PATH)/tests/tcg/tricore + +LDFLAGS = -T$(TESTS_PATH)/link.ld +ASFLAGS = + +QEMU_OPTS += -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 = 0x80000000, len = 15K + data_ram (w!xp): org = 0xd0000000, len = 130K +} +/* + * Define the sizes of the user and system stacks. + */ +__USTACK_SIZE = DEFINED (__USTACK_SIZE) ? __USTACK_SIZE : 1K ; +/* + * Define the start address and the size of the context save area. + */ +__CSA_BEGIN = 0xd0000000 ; +__CSA_SIZE = 8k ; +__CSA_END = __CSA_BEGIN + __CSA_SIZE ; + +SECTIONS +{ + .text : + { + *(.text) + . = ALIGN(8); + } > text_ram + + .rodata : + { + *(.rodata) + *(.rodata1) + } > data_ram + + .data : + { + . = ALIGN(8) ; + *(.data) + *(.data.*) + . = ALIGN(8) ; + __USTACK = . + __USTACK_SIZE -768; + + } > data_ram + /* + * Allocate space for BSS sections. + */ + .bss : + { + BSS_BASE = . ; + *(.bss) + *(COMMON) + . = ALIGN(8) ; + } > data_ram + /* Make sure CSA, stack and heap addresses are properly aligned. */ + _. = ASSERT ((__CSA_BEGIN & 0x3f) == 0 , "illegal CSA start address") ; + _. = ASSERT ((__CSA_SIZE & 0x3f) == 0 , "illegal CSA size") ; + +} From patchwork Wed May 12 10:20:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435489 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4697542jao; Wed, 12 May 2021 03:36:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8Mm2osUeqcEnE/gpAEBnu/Q7doj0mXUgUhqTBHq94T7t81gRN6gPd2wBJiX6I6DOSRkDA X-Received: by 2002:ab0:718f:: with SMTP id l15mr31314700uao.95.1620815807332; Wed, 12 May 2021 03:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815807; cv=none; d=google.com; s=arc-20160816; b=sqyKS22Vo5RCHfhY2H+y/53PuYPP5zo5G0obEVUu00lFDEi1H4ERDa6ec3iBYG7pI6 rHVlSJu8Lm/eA3SLiu40WAcSZrOKQ6NG3ghDWneimCZrSex0fhF267KGKm+5RxiT6PM8 1f4Huq0GB8/VbUJW+0KjFSEfQnRGlxR+b9kse24jxc6Yw7LcgL4F3MciwMFILBGxgw9Z eiXi6YhezLw4oeKSf1UzJyP3GzKkUhQiNoS+zLdRXvvNg3znTHfwXI1MmxYtySXprNei cx9TPNCvIGpb34gp7wDtC43ZjKeyy5VFJEmPuyJDz8QyBFIWZF5g76SQPDItgdWkEdDF NgLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=yICXcB9Xc8sS5oqCx+QbGc9GZYDuZZrT+QLlCYTqMtM=; b=QlLs30uhGoXbZkwNXrF70/40DIE6feuRctv/kjdKLhbXYshj/VP4ntAWZD96vD+4e3 8MJX/nEXkNq3oUen2Yay87yQqPuypMm01HVUg9kGTbJFvMyQShRHyqrPnooEEyywlsUM z0BNj8x6Q6KUr2XzYeBE7gWIUe8lVzp3lefJzbj1gif0w4ayl6ScOAtnsgtYWn4JriwH cyExslQ5T5hjO0nz+r9PISHdZGB4uGy0KoTclR1JSQtUh5Uvgo5KmHr7Efj1kcLth/j7 jrYsDsJlhxtx4xCIArCfx4n+Z5MqcBWcRDVsI2OOr+rE2xNREjMl2gJ8MC1dH0T6oQfh 9eCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=K0aoahjR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f20si11163570vsl.379.2021.05.12.03.36.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=K0aoahjR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmEQ-0003aD-ME for patch@linaro.org; Wed, 12 May 2021 06:36:46 -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) 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-Received: by 2002:adf:f78d:: with SMTP id q13mr9401803wrp.405.1620814871603; Wed, 12 May 2021 03:21:11 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Message-Id: <20210305170045.869437-6-kbastian@mail.uni-paderborn.de> --- configure | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/configure b/configure index f3fe75db9d..1bf53961c2 100755 --- a/configure +++ b/configure @@ -6172,6 +6172,7 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak echo "MESON=$meson" >> $config_host_mak echo "NINJA=$ninja" >> $config_host_mak echo "CC=$cc" >> $config_host_mak +echo "HOST_CC=$host_cc" >> $config_host_mak if $iasl -h > /dev/null 2>&1; then echo "CONFIG_IASL=$iasl" >> $config_host_mak fi From patchwork Wed May 12 10:20:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435502 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4704253jao; Wed, 12 May 2021 03:47:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQV/YYNOIb5tv9UbSzLFV4Z0xXP0zI/AdfV2Co9NicBXM4IF0LTETKSReiU5zTnj0RQF5J X-Received: by 2002:a05:6e02:1a27:: with SMTP id g7mr19003353ile.304.1620816447946; Wed, 12 May 2021 03:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816447; cv=none; d=google.com; s=arc-20160816; b=hzqeGQIWqGN9f86MsRtED80x9PMAnUw3FzT14fNVzte+IWrkkMMiFKHIfI3fxxRDtK 457VsapMVVpKTLnrGma3uXlbfpvU0TSFAdSgpnyBQayAn8Dn8Wsjt7r9jB2Pro248ITS BYVAVqgXaKRuvsTceUzHiFBrtYaDVl+5xdSSkEsO4Qpo/A0e0IDU0/lMIa+/OWAOgpMk RxjLPXL8z4D5HP4X89XzGwV6AeAv052vTuyKtg73UbkYLoxNmHeqJJoK1hzMo9X+j6ZI qgRxPsPHbJ2SLM7ZtvafTH0NKxQhg4rOhY9p0tB8Tba8b9vTwx6u/AVTHp+zDSF71XIq J49g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UDzjlNZz/GlC70CH5HhSB4c445lM3jEK8WC7UgJUryw=; b=HJfGI/tDVGfA/Xj8v5Yep7Teg+rG0fZXbGZbphY+zuAcpJX01D8muemG+mfGVpcFco 9nQMxKaG4EkBN3zZNFQbH1lc/ojgNLjVp+ll+t0QZr5V3/I9XzKkZMzrZ4HUxwxzNxLu snBY0+url4Lkqa65r9+tIu/fiFvPKAGWbfBCTZeMMfVk/SRVZo6Cyx9gP4yd87M9LneG PMsMSNG7WP4g4PAXQjGaMhzpsxIidsOVe9mxhNzRhL1vFPGk/juI/HuBUd8W0cpsEUZ/ MkTxB+9F2wbRjwCsEv1a+eTHVdHVqdsl8WkuUdWL7MQdFox9ivasx6b3Hv5KP9tz5HMY mq4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JSixV4Y4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x13si24779343ilg.80.2021.05.12.03.47.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=JSixV4Y4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmOl-0007rQ-DM for patch@linaro.org; Wed, 12 May 2021 06:47:27 -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) 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-Received: by 2002:a05:600c:350a:: with SMTP id h10mr38982798wmq.119.1620816024399; Wed, 12 May 2021 03:40:24 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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 code. If all tests pass we write back 0 as a status code and exit. Reviewed-by: Alex Bennée Signed-off-by: Bastian Koppelmann Message-Id: <20210305170045.869437-7-kbastian@mail.uni-paderborn.de> [AJB: add container_hosts] Signed-off-by: Alex Bennée --- 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 -- 2.20.1 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=debian-sparc64-cross container_cross_cc=sparc64-linux-gnu-gcc ;; + tricore-softmmu) + container_hosts=x86_64 + container_image=debian-tricore-cross + container_cross_as=tricore-as + container_cross_ld=tricore-ld + ;; x86_64-*) container_hosts="aarch64 ppc64el x86_64" container_image=debian-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 = $(SRC_PATH)/tests/tcg/tricore LDFLAGS = -T$(TESTS_PATH)/link.ld ASFLAGS = +TESTS += test_abs.tst + QEMU_OPTS += -M tricore_testboard -nographic -kernel %.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 From patchwork Wed May 12 10:20:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435499 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4701501jao; Wed, 12 May 2021 03:42:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3MQFAhhnG+8X5DlX2B8DiPqXF5PzBf0xD6Rmv1qxJ6KH/jC+oq3pRiUCuN2kfPyW5+Epo X-Received: by 2002:ac8:7e93:: with SMTP id w19mr1737502qtj.314.1620816174012; Wed, 12 May 2021 03:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816174; cv=none; d=google.com; s=arc-20160816; b=xMdgbEWWf0Ti/neWYrdWxu3m1M4WGiOo3e94KQPvlxdHbyYCT5gp+51TOpPH4WnQty cD3rCxjIYlC6YmjKg3cF+nxzMLZ1KmLfElxtNnVv+1sq6eiN6rSr30EA9ImoCjdPH6zt oZeQG2c5Ey9DII0XV8dTkev3RYff28BJNC7qqEB1IFBWerHB5gr75TUE9ZEdh/j1SvU8 lvFl07xDkl5DclSGtG0EhzbPPz/7MlG9GzK4feB1isazQRv72w/YBx7nPh5xpkxZBQwc 1j5FcVkTdv8AA2F5kNeRLyozIoV8oAcI12fEmLmW7Xw/0ewx2+T1LuB3W0oFdgaKm7SQ jn4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=VIg7qw3G3Wf81cGSwkWP+w1Bj/vvGUaYloDj5g7DKuk=; b=ZoDayA60EujL0WouKcXiqd327xJ2htg4qtFTDvsAkJWCHqqnO9efHWOl9oBIkbq2eZ HWrdFShzsat1azpki/aZk04Cn8kQgbK5puNYzK/HT5NpHjN5XHrF/JQ6uArNlQfAhovs MPPizWMb5vdZSApRu5MLVM3FDq6fTGv2xsDj5Wj/PTCI8J6EB5rdiwPTVenFZgShiuP8 q61jPiuCzTu7IsEjXeUxYQKH+ct/T9Ao4B+FYvu/JTysGLGhRdjbJBgC+ULAEtbQbCJi R8Ckxkka22zqgnNQufqEkiU/Zb2zmrxbUu6HU7yCNrRacWm4P8XYEZNP51kV/sR7xcOw LPuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GPp839Ui; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y8si17130934qtm.190.2021.05.12.03.42.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GPp839Ui; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmKL-0001Qv-6t for patch@linaro.org; Wed, 12 May 2021 06:42:53 -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) 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-Received: by 2002:a1c:3945:: with SMTP id g66mr878223wma.70.1620815434355; Wed, 12 May 2021 03:30:34 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 \ +#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; \ ) +#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 = -T$(TESTS_PATH)/link.ld ASFLAGS = TESTS += test_abs.tst +TESTS += test_bmerge.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/test_bmerge.S b/tests/tcg/tricore/test_bmerge.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, 0x0000ffff) + + TEST_PASSFAIL + From patchwork Wed May 12 10:20:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435498 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4701125jao; Wed, 12 May 2021 03:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5dRrb/FL9z7ANoMq1wHdx9msK0mtidPOoRU06YMiT6fqHZqOWZ6KO8spXbOTzx/ibY8U9 X-Received: by 2002:ac8:5655:: with SMTP id 21mr33222376qtt.187.1620816131954; Wed, 12 May 2021 03:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816131; cv=none; d=google.com; s=arc-20160816; b=K6mKyCOpXX1SxGmoPhHdjHKAhfBD8zy34pF0FuQjkbUbIpuAGCf2ndoBd6p7fLXF5C Kkm4/mrhF1moaheXagJpBQ5xbE1TidlQuJcU4DAdxNCzCgUutRnK4/EH7LVVMnYepeLK ZFQMt6pZE3baqTOT1qWQwH0aJxHtKxKnjq6ncv71JW6XFh8vTM3rvjFP2UxTKyPkA4EG 1uEz5Tt+EUqjLuussgbc9uYcQWd3MOqIJo16Vi6ur9OPszjABnSHBqDazaSqG6lcxxvV UBPlND0h9LCV/98MGSkL8+qv8P+Pvx0RsboVQCsBmiOgKtWcQp+u8vLmmnSSNolqetem 0iDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=2ZxifPNhE6akX9+XYZwzCV/eA4ZYz798fnoOHTBKs+o=; b=FR7/3bCark42sclt1VDQ5ZBxarAHlSz6I8qF+SdHT0mwfE6OGkFR0YkEXEKJlsiug0 y7tWh27R4i8UH8V+kFzo2AfZ51ifVbUdUGIMStkai0zOpHVwIaE0A5G9cZ4Ao+oy1sYo u+ft2IHh8EJWQMZLug+Vpm1FUUUm4jmEaVYmIaHv0xny+GHjMqRs2Ko76Du7ITct3KS9 QK0wVIfbtgylZSJio1qQwTS+jOLyN7AXwqvY5xGjs6ud+JB6j5l4nPprNeVsTvJ9An1U OSZrnpv/lrR82UvPx/Yzx+mIH3BJBeBxMglYABHtSK7I7iYICsstzaDKBDC7vh0rA1Ao OqiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vYm3n9aI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b16si4172698qvi.214.2021.05.12.03.42.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vYm3n9aI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJf-0006pS-Aq for patch@linaro.org; Wed, 12 May 2021 06:42:11 -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) 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-Received: by 2002:a05:600c:190f:: with SMTP id j15mr10662282wmq.57.1620816025220; Wed, 12 May 2021 03:40:25 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann [AJB: dropped duplicate Makefile] Signed-off-by: Alex Bennée 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 -- 2.20.1 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 = TESTS += test_abs.tst TESTS += test_bmerge.tst +TESTS += test_clz.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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 + From patchwork Wed May 12 10:20:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435488 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4697067jao; Wed, 12 May 2021 03:36:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOUltH722JZoKGHhrjX/TIVzBhqf8FP/YK2aK0xC+xfBjy9CsAHSgBb8HBWz8sHyu3MCfm X-Received: by 2002:a67:7d12:: with SMTP id y18mr16977451vsc.6.1620815771969; Wed, 12 May 2021 03:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815771; cv=none; d=google.com; s=arc-20160816; b=hmLhTeb/dYRiNf1/JAWPv4G9KHXz9YZSoGdIEr9RtRWVuzcEFLdahbVUvdLyBBeff3 xtoICLTizNMG4rEhtt+1JBEejh4TaCCQtF4hd3/c+harDstxs+0+qaku0Mkth2/xvDIr SCnrNyBMNcUjh6WXHGmrphE0wk6MZMBUgSEXEh7FEkorTLV82BLPe6TSZ5qsBxdI7lcu 6EvPuQOxhZC2ETD2qEzp8Co5Q/QWBZgBSM1eqt0oAWnZNHM1ff+8aOVAb1/1qTEt1C6R MtlaJLfD06BoZ9Kxw7985ugfEtvX6SMufLPj83zMhOY5rSf1O8PvjHsGvIfK4W/ZXWoF vz7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=oqpvL+FTeb8gxiE0Ls/4xrGbn7FVvV4JNtq3sVPSwPU=; b=KypdrURLBNPIbkHTnocOQvGh3fPT61GXoXMW5g56rUJDhGDEuyEcmtc6SFwImDY6SA /qUtwfmvz+X14FlL1U24hpY1m0lfjwvr+G9hFsvBZwCHlUQTRqylqsoPlyeMgxeQDLCZ gXQsHu37T9mCU1r20UCiIWwNyEoovf8ypMakd9b1UuQlE95sGR1qVS5K18YyJ6LBtwD4 JzaxJX4jW3VfO6760RTAyWkRxNur+q/0uVOuUoSU06c4mJ9qFNvGHNU5knT1DRyKj4I0 4Hoc3m92i2MWNq1QuUQp0nn9k9o97pfnlGTbtkIqc4z7dX8YbHG31rUfa2qQjDH4QJ1l GKzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NIv8WGs0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k16si10065635uan.49.2021.05.12.03.36.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:36:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NIv8WGs0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmDp-0001L3-JO for patch@linaro.org; Wed, 12 May 2021 06:36:09 -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) 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-Received: by 2002:a05:600c:3388:: with SMTP id o8mr10622050wmp.101.1620814874678; Wed, 12 May 2021 03:21:14 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 @@ #define DREG_DEV_ADDR %a15 +#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 \ +#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; \ ) - +#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; \ + ) /* 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 = TESTS += test_abs.tst TESTS += test_bmerge.tst TESTS += test_clz.tst +TESTS += test_dvstep.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel diff --git a/tests/tcg/tricore/test_dvstep.S b/tests/tcg/tricore/test_dvstep.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 + From patchwork Wed May 12 10:20:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435492 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4698783jao; Wed, 12 May 2021 03:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb/w45HK5mm1YEcDtuWGh7AARTK1WoOWkFjxoIIeMBQ3LCXMqD5CoSHrkP+ZrsrbafFcJR X-Received: by 2002:a67:f7c9:: with SMTP id a9mr31724775vsp.30.1620815899533; Wed, 12 May 2021 03:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815899; cv=none; d=google.com; s=arc-20160816; b=y3w3tUY0i4Mrys97EbRfb2BoJtKN3I5xYCgpIsRsymaTWdQriOP4EFIMlw+N0wwR2S VkHFVXdrOxSjMWBRSIpriCaLsO7qWuVVWxQEfCyDYocIMfLukedJVYnpGnFnTimd2EFH hvmO0Q7LkU/LLz2leovqT8RHXXP4JfppyLd9jCCgTDBPBhD4dpF1ZYXjyP97tu1pUojO 2yJGKXHjsqMPUM15SypD/1kIB0HLNYZogONMV4QQoMO3eDeLSqYjwPGUizsm38Ney3BX gs2X0HX271Cq035TPvUZeVrwC5cB7/Pe4iVPxL0q9mYVzoY8ihuADODIZbFwZLdyRpxP ERqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=W3QCFg4rZyHqfbRiyHYU4Bw92Jp5yMYeql9KanhH+/E=; b=I34ejneazv9NcTBAHmwlJFu6Qw7Z4KntIBFJxnZdoj7qrmQiPBhouEaJK2p/VKoO2I srDK03qhs/xaALKSEt1nD/J7/cxTJdRexZUIAoLgqfzHyFK9XuYZK7Z00fTUT/fmPJ/g CjwMuWiHP+jmAQqwU9p9auFXL2VIUWmhGpb9teuY+OQ39VvZJ99MutTbxD/L9DdhNJOj ewJSUm5P58B96+rX4X5lDMvGAhB02c7fp57U8RqLzKDpMbcYs95P93gpqJDNXm+POH8h 5jMZsqpOmDcO2+HixHsH8B9QC9EMhnEDw0eh9q9Kb3BlSH54fAWtPqIk+3TRFAcHp9TU EoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RfDL8Boh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l39si10645143uae.257.2021.05.12.03.38.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RfDL8Boh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmFu-00075q-V8 for patch@linaro.org; Wed, 12 May 2021 06:38:18 -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) 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-Received: by 2002:a5d:400f:: with SMTP id n15mr40094132wrp.274.1620814873872; Wed, 12 May 2021 03:21:13 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 += test_abs.tst TESTS += test_bmerge.tst TESTS += test_clz.tst TESTS += test_dvstep.tst +TESTS += test_fadd.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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 + From patchwork Wed May 12 10:20:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435495 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4700580jao; Wed, 12 May 2021 03:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/SZZZSAxjdM/ceFNMKZ10V+0TGc2vkTuqmjL+IchEtVsjGn5jMcn+2qkI22J96pbsf/4L X-Received: by 2002:a05:6214:178b:: with SMTP id ct11mr7410292qvb.61.1620816074952; Wed, 12 May 2021 03:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816074; cv=none; d=google.com; s=arc-20160816; b=yGk1ZyHqiK+0kRPUvfndysjwKy12IIHwO8T360RYHDsmjO+AzKhjSSNanTlcdigIsS ACKjY+KOXjNtaC/OF57rAG8tgS1qwvazCaTJarbe2OLaKcwQIf+BY/yvAXTy8pjFqIRt eJs9q+4yVyXnz+IXiMNxzL2X5guoW3jl6uLvfPrtZsAZ/I/Cio2ngG31Z1scTU2ZMN4s 5H4TlMf6LqjDZ9AHhC5naH3t6P7EGSuCgVV2TDykzxakx1lxTfUmIT4dPE3bpndUGx2c uqK5RKu03KDjB7ETb0oaIcOTKfvfJqwjLdo+k7Or9GZwJea5SMYxsx79lTxwDPXVyfbW qNiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=nkuvcu0WvoFkCO6R6g7fnkEZFEV/3ybgOm0lAYLlrqw=; b=Crigm87m8lR9jix0mmuUT/kUdE9zhh8mFeVkrExZ+u39oGbGOiKJ2Iw/ymE85PA0bl x6Nw+KBleSoFFRhk18viES7xC1eJlrVImjCYpG0L7sO9FU97M+qN4xnTgQx1oqekDhkz a22ZiQDAignlbIovMX4m+DGRMU0FvON2okKPb8pKnowQmOm+7nKWePqdO3AywXYt9xmI 0Z0JFc62w8S6xs2n+e1Zsvo9fBc5LxOKQGN1Ni0K/tviIQQgEs0ec6fx9TDd3UzsKe2I +02trWAythlrHXHdmQfTU/TATR0it3N1Ib1pKgJQn+Z5UADAue0VvlEjv8VW/lHgImxV BF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tdVI7L0k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l2si8022589qvz.178.2021.05.12.03.41.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=tdVI7L0k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmIk-00043W-80 for patch@linaro.org; Wed, 12 May 2021 06:41:14 -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) 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-Received: by 2002:a5d:40c4:: with SMTP id b4mr45372275wrq.307.1620815431172; Wed, 12 May 2021 03:30:31 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 += test_bmerge.tst TESTS += test_clz.tst TESTS += test_dvstep.tst TESTS += test_fadd.tst +TESTS += test_fmul.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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 + From patchwork Wed May 12 10:20:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435487 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4696826jao; Wed, 12 May 2021 03:35:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBQ8DvH/Uqh5KhDY8Zfo84hhoe2fMOcmCiHcGGty8j7O6USG//Y5/3HApTAiDNBdOSGU0+ X-Received: by 2002:ab0:14ac:: with SMTP id d41mr32292917uae.49.1620815752970; Wed, 12 May 2021 03:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815752; cv=none; d=google.com; s=arc-20160816; b=aYRzEiUDtHAEnYiwFPaYogW2fuLQ7YyEKNsaxTewmpP38v1GyDQq2js9Uols62O7k+ 49cZwybdoIhsU9KQDe3l6sAzczP85qbwDdT0rI1/w1nNo5mAiNTlWOiGA7ugBXsR+3tU J23gAXXKkuCYDV9f5OQNxS3jT1s2C/PPIIsJaOFQbGji0qerzpypFoZfR3d7woa+EqGd z9UCIWAZnvkH+FcPuVhuEwdoCxSHMfkqksBx2+AajzNsmpLapIw5WKV74gQmCzjbVDLy TD+mGK+dB+sJ+hQIJ+wdu5I+m8Zq9Ce0Bj2tYfs6thHRtZLjvmW5MMk+CXZW5ioRI+4t Ni4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=N52YWnuZLlPx8wUlhZrUjpPfF72LihVfzT4a0wPQRGQ=; b=z/kDvD5WENMrdnjyCwlTJn8jy4bhxP9Aw3NlsmhOqnaUZbWOSB041vL88KRVyhFfqa HM8jELAM9QUgFB+3Usqzruo+o9ae/KN/Q/0+TibXikAw+pBqdbfWwGe2peM2RrM2gZyV R0C56/6RVA9J/TSjhViz7q48D0kfoxDO1YqJJvPWTk70GnRzbktFNtHL8tU62VFHejIY 4EeaK9IotYTSqvicpq5oLOJoVxmVjgFJVseTVRU1lNlliOwY0kyYj069zpeCb7Ph19xK 4akg2fUtnT4Funq39T6DlMsTUkbSscW35yDzEohguL2jSIROAKqjO2mmtHOQQG3x4uVX hTOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bPdM1aI5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s199si8892557vsc.270.2021.05.12.03.35.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:35:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bPdM1aI5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmDY-00011n-Ab for patch@linaro.org; Wed, 12 May 2021 06:35:52 -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) 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-Received: by 2002:a5d:590b:: with SMTP id v11mr43880460wrd.55.1620815424653; Wed, 12 May 2021 03:30:24 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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; \ ) +#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 += test_clz.tst TESTS += test_dvstep.tst TESTS += test_fadd.tst TESTS += test_fmul.tst +TESTS += test_ftoi.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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 + From patchwork Wed May 12 10:20:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435504 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4705158jao; Wed, 12 May 2021 03:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyef1v4laLoI8SdBpiifsmUWQLf8JBKHdpQHldgPfERqNgeeHPpg/wZo5cvvQ9SyuPR/5pE X-Received: by 2002:ac8:5981:: with SMTP id e1mr19441285qte.310.1620816534909; Wed, 12 May 2021 03:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816534; cv=none; d=google.com; s=arc-20160816; b=btfr5ju+5UTbTpvMtXQ+btUKqzhbAmKdHw5i7vO/SoOVapYUYA8Aw6KPElTiBjnkrf o1PZSxjOpOIrHAo9wMqogOPr7tZqha8SLbr85bunzuTzYLakJMidgTWwbng7W4Wf9FM9 1+OYMVJYCwdxs9e9OPqd04neCX0SPu3gjxUMOM0164nUFq3cLgQyKdbSv0EAEEKyeKiO VtRu5NSL7RmYt2M82xKKsgcMeWDG1EhgFRk+3d6ULEU5SvAG/9EJ7jc5pN+gH8OlHTUQ Gvjd10bWmTq9Zz+T8Fq+G/OLb4dvkjbJyDxcB3l8jC9oE14X+F79CDv/o/HWeyu2ji6/ FnVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rPMh6kmt7DZA6FRYiUkJHikUFQXem/GBwsoB4cM/qp0=; b=tnQNGUPFg1c7RMlsPPzQ93HoiZ7xrcVjVmWSjq4lXRL2J9FcqWDsuLjWwBJeCZw3Kv nK2OKfpm3xyIiX27u9Jo1QOjXkktwCKneqZhax8qA+VXGjsYO6mheuJYH0pBNNwt2xCQ Q6LV4Z2vZr5PNtSkx2IGoy8xFbuLpEqcLZtH6DbavgaiOtwGZRcFf3GBravEKws7Zdqc nImmgSA+6yG7q308coyzBPxelmTmjD00XmxtmuxGnwL/W4wARHYRkpg++0iUaQqOyrti TcBkxX7ZsNHbeqWQXTcfALHUVMjc0aCbhBdfmTY30zmstatCR3y9WU7DyQnazqNmSsrs YYNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TxAt6bM3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o8si3258743qkg.269.2021.05.12.03.48.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TxAt6bM3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmQA-0002JG-Au for patch@linaro.org; Wed, 12 May 2021 06:48:54 -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) 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-Received: by 2002:a1c:b7c4:: with SMTP id h187mr37759056wmf.178.1620816027180; Wed, 12 May 2021 03:40:27 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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; \ ) +#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 += test_dvstep.tst TESTS += test_fadd.tst TESTS += test_fmul.tst TESTS += test_ftoi.tst +TESTS += test_madd.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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, 0x7fffffff,2) + TEST_D_DDI_PSW(madd, 2, 0xffff7fff, 0x60000b80, 0xffff8001, 0x7fffffff,2) + TEST_D_DDD_PSW(madds.u, 3, 0xffffffff, 0x60000b80, 0x00000000, 0x80000000, \ + 0x80000000) + + TEST_PASSFAIL + From patchwork Wed May 12 10:20:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435486 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4695908jao; Wed, 12 May 2021 03:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLyKJL+EJ2WEIra2FQpmwhzmxz8RK20p4RxnNZf/12FLgItKd1foJHQKm+cAu541FMKj+S X-Received: by 2002:a67:d11d:: with SMTP id u29mr31405944vsi.53.1620815679288; Wed, 12 May 2021 03:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815679; cv=none; d=google.com; s=arc-20160816; b=K5KxLTUIVQ9MN5T8e9azpjiQPciX6g9XT1EulHXrCRKU30jyIM2bmBMgfC1GIVyeGW rmxKrGTp2RbyKslEszHuqQQz5UnkvEcI7UR7kNsNULP2/Aj7Zx/e8MTBFR18hPMazz4t oED2jg0ns7y6OACDn0CJv/M6uzk3rusEHyOoKyCAn8WfH/TBY1mpMW0p8NA8BvJ5q76+ n7IVBBHFOAGEDavDGJ1UDAF0eoGeGADYsUUrTinmQUvMOOdqrblQK+sVga+YgQ8ZwxmB UpSTtzcj3sJ5DmF0GWBlcziuNMI55oRBOpnegJyrN1PjU9ls4sNnZEjzGg0cyk2EfyUG +pEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=fPkUtUsZBhQTOVdElvOgFTSd49w6hL06WN6K1JOPhLM=; b=blAIRM8MmRRxDcLPvDvgMc7EfySwlv63I51JbfO9/rLZ4rORXYnp4mq6frEMje2kbi Jz3bspH5ua/h/EuHxgtRAuYQ2gAI6t0M7thgV+Ly/3XKHomwq7VSSlR3Iomb2S9Fk/5C SUTjlo/vkfn3jLXYwlp7BAtbM5ZSdV9jIFhhrYWVSoNthOkG1KYy+W7A32yNrSgxuSTV DXhFrnkmsZrCsLGML579ZmZ1afLFnUMm3XAc0JuALbaPxvcJbrktstfl0X/okyMF97sj VIqEjaqH/Igdq3mCyD9vZGmudDEBE73kNlofggEe5ksvWrpU9mTy9wIh3scarLBWROq9 DSZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=oNuhZdhI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n76si3957516vkc.9.2021.05.12.03.34.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=oNuhZdhI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmCM-0004ug-MY for patch@linaro.org; Wed, 12 May 2021 06:34:38 -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) 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-Received: by 2002:adf:f78d:: with SMTP id q13mr9452921wrp.405.1620815423845; Wed, 12 May 2021 03:30:23 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 += test_fadd.tst TESTS += test_fmul.tst TESTS += test_ftoi.tst TESTS += test_madd.tst +TESTS += test_msub.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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, 0xffffffdb) + TEST_PASSFAIL + From patchwork Wed May 12 10:20:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435501 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4702235jao; Wed, 12 May 2021 03:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLDI6HeB74LSVQBfc0CJlvJvwnqM1XAerY5JikDdQzVLMJ3Qu13UfStXbI0S8HETsnUw01 X-Received: by 2002:ac8:5550:: with SMTP id o16mr32211956qtr.7.1620816250985; Wed, 12 May 2021 03:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816250; cv=none; d=google.com; s=arc-20160816; b=faQq98G8qOWCkHtYpj1WMFHXuLZ6LNy58pYOJWBwQLNkEpaZVhu2cNg9icI1Ml1D0y 6RB7fY/rv5JpnKwLUcSwGbHijpI8O8de8OihMjK4rSD+1R4bQsyDgcOcXWyK3HFrAHy7 eZ1H7JAiko1lCbeqU63jNJz3tajWwPUiQsRemYCxl34Uub3bLukZDwWpwK6AzD0QrIHJ mucwK/fSME89s4LJknocJyrRbkLMcqtmc/hmmINUx7M1kQVfVAz0OHlRfVzukXWKs+qW yIymlKavq2Kz+u6F46/kw0bg7TAE6zY9KkWB9Fx2F3KSIDtcsx7nm3jhvRHHMxZ87y+Y lFyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UI/Epk7UI6ih8itVpTT1qnXUK0ABqNU1gp/FWYX6Sdc=; b=ivF6wfajVCDuUT3U01hy9yADfYxz9TSazL9Y4SHJRbJVaBQrW2fukz3lWVzwArB6BG WsAnFb1OSPt5vrVHVt8XZ4IOZcSpumf3MNDve4VMEsYlIk0puTZ4q/3DtUITRA8KoGsZ d1OuAScreZwF+mctmZCMwr1zfCYm3YNLzFJShDKsqwQj43K8XVUCUHjSUnwSm0NVhf6Z havZSW0BNAO9H11AE0a+WK0SnCeDUw+SOvTxA4sZtEhdwCkFsJQX9yYvEe2XS0OpYdtF wbn/C9AhJ+zVZsfHnmaKVUeY2GX/lmpyEFVXXVE6jpYDSiRafbO7xzSssEPFQb7iKUN/ 2ebg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kds3Ydf1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h3si11591355qko.40.2021.05.12.03.44.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kds3Ydf1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmLa-0002gW-AD for patch@linaro.org; Wed, 12 May 2021 06:44:10 -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) 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-Received: by 2002:adf:f3c1:: with SMTP id g1mr45348268wrp.242.1620815437622; Wed, 12 May 2021 03:30:37 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Bastian Koppelmann Tested-by: Alex Bennée Signed-off-by: Bastian Koppelmann Signed-off-by: Alex Bennée 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 -- 2.20.1 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 += test_fmul.tst TESTS += test_ftoi.tst TESTS += test_madd.tst TESTS += test_msub.tst +TESTS += test_muls.tst QEMU_OPTS += -M tricore_testboard -nographic -kernel 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, 0xffffffff) + TEST_D_DD_PSW(muls.u, 2, 0xffffffff, 0x60000b80, 0xfffffffe, 0xffffffff) + + TEST_PASSFAIL + From patchwork Wed May 12 10:20:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435500 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4701555jao; Wed, 12 May 2021 03:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW5184qb+pS4dbv9kj5ml5sWDplNvufJRBoHlnYKhY0WgpPQbuDmlU2ox+oVMSh85jB8yc X-Received: by 2002:aed:2043:: with SMTP id 61mr32273944qta.308.1620816180500; Wed, 12 May 2021 03:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816180; cv=none; d=google.com; s=arc-20160816; b=INyXxu0KZ2XIqdSEhp1SgjJIA37h7Zyjmyjgf5xy+hYcgvPgyww5ymhDsfbxlQG7uk UIFKzTMSVsQLQB45ht1O2XPet5kdG04zAYdox+WRcMAreKAVCw2Qdld9DQRTV4yihSWf M96psN7YeyhkM7AyfgADujBF19L7PI4tKW1uGSDrMmJqmXxHOkxeW/u5onm0enFQ0YtI e4Tk1mPi30CJldH6P4yuroK4DbPeZ16RciYn/WkqCYlmpbvysZ5gL5LQEgQh66Yi+GrD /0DgLyikrEUSrkx9Gv9NG43XL8ukAEEmIEfiCTxd+pd09cagfNa0DnNjC3XN/UY3TILp 3vjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=W/ukiiX+2G/6Tr/Ondx70r9sB5+hCuUswyNpWg3QywQ=; b=vO7Hjbtwaq3bhYzLDNqSRGYEqcLBetHYQo/IJTxv8R3e1+tBmBDuXya8ei8JNE7jfU d579yChUGSAa/f1iLi2Kadw7eunLjhXXbBjddDZ9uPc1F5tqqkNihdgDrli6j6PJejsj YM0EhBHq3kYSaEq5eti7FWmtvOlHs31eNWy/n9x3dTV0mvaJBWa7fXRj9TNT9646T2Yr 0y2/3PM36iQTjice4WKbEobw5M8E88ac3efcRBnC93fAE/GnXywQGabwhZRluIVPILp6 7EJYJu4qNGvfQ6Ou5dv3xXQtd6xV46GupGNY9fsUo0U7Hl5130RNkqoPEtZuuARjXNOk CgXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bj1scvms; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 2si1623510qvr.200.2021.05.12.03.43.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bj1scvms; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmKR-0001sb-Ip for patch@linaro.org; Wed, 12 May 2021 06:42:59 -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) 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-Received: by 2002:a5d:654b:: with SMTP id z11mr44485046wrv.167.1620815439373; Wed, 12 May 2021 03:30:39 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée 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.docker delete mode 100644 tests/docker/dockerfiles/debian-ppc64-cross.docker -- 2.20.1 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 -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 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 # These images may be good enough for building tests but not for test builds DOCKER_PARTIAL_IMAGES += debian-alpha-cross DOCKER_PARTIAL_IMAGES += debian-arm64-test-cross +DOCKER_PARTIAL_IMAGES += debian-powerpc-test-cross DOCKER_PARTIAL_IMAGES += debian-hppa-cross DOCKER_PARTIAL_IMAGES += debian-m68k-cross debian-mips64-cross -DOCKER_PARTIAL_IMAGES += debian-powerpc-cross debian-ppc64-cross DOCKER_PARTIAL_IMAGES += debian-riscv64-cross DOCKER_PARTIAL_IMAGES += debian-sh4-cross debian-sparc64-cross DOCKER_PARTIAL_IMAGES += debian-tricore-cross diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker b/tests/docker/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=noninteractive 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/tests/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=noninteractive 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/docker/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=noninteractive 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=x86_64 - container_image=debian-powerpc-cross - container_cross_cc=powerpc-linux-gnu-gcc + container_image=debian-powerpc-test-cross + container_cross_cc=powerpc-linux-gnu-gcc-10 ;; - ppc64-*) + ppc64-*|ppc64le-*) container_hosts=x86_64 - container_image=debian-ppc64-cross - container_cross_cc=powerpc64-linux-gnu-gcc - ;; - ppc64le-*) - container_hosts=x86_64 - container_image=debian-ppc64el-cross - container_cross_cc=powerpc64le-linux-gnu-gcc + container_image=debian-powerpc-test-cross + container_cross_cc=${target%%-*}-linux-gnu-gcc-10 + container_cross_cc=powerpc${container_cross_cc#ppc} ;; riscv64-*) container_hosts=x86_64 @@ -272,6 +268,10 @@ for target in $target_list; do -mpower8-vector -o $TMPE $TMPC; then echo "CROSS_CC_HAS_POWER8_VECTOR=y" >> $config_target_mak fi + if do_compiler "$target_compiler" $target_compiler_cflags \ + -mpower10 -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_POWER10=y" >> $config_target_mak + fi ;; i386-linux-user) if do_compiler "$target_compiler" $target_compiler_cflags \ From patchwork Wed May 12 10:20:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435503 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4704270jao; Wed, 12 May 2021 03:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQS0H5DvettF1MW+CW431PlWMz6ONudCXZChCTt3CjD+wOI0ghfldF0T3AHGs2wxYkczYV X-Received: by 2002:a5d:9e51:: with SMTP id i17mr26501130ioi.122.1620816450007; Wed, 12 May 2021 03:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816450; cv=none; d=google.com; s=arc-20160816; b=GDBAcGuvbZT7V5Q2EtbxWB57LB43giXRWBvMfs1RsMqqOwkpPeVekz7trRCb336KBi SRp+XQ0SngR9drhnaTP4Nftei5B7M1mAOqYIP+VqxQYHI43HsZQvPYj2GmXF1VFH7F+H LmgdN8Nz6ozmJR6M+L1L9SxeAL0ZwXXKwsTC6ohTbCscPy7M08UUpOyzSNb2Qwig7k4p CW2PxxHWN73YceXyuwrzmQVhqGD1ytbszrMHJ9UBDriblzx0tThenWT9N6TbIfC7D/xy lmNY6i0xqrSs32AukdkKKnqI9BplTCnSP4vNDRbp29exJUXbOtqxQlAt0mG8qf92F2+v JS9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7Itxy1UuOFf0gEK0SQVLvvq83zvWvNXRtoyv+3j/ePs=; b=zYgXGaRrRB8w2Qh23KwKyKo5i/gtXJCfO9ZjQl+w9DHkvHkKEFV/EQ2OAzHCCXYqa2 t3YFdTyXa8DQKvfJRK/apaCowEtdYepBw5C3c+zSaEAX4BiOVhPaHj2gS3TtC4x0fViS a/ETrK5gC4xMJTqHzUmG85YSWBV7CSGVmOfG1gWe2dJNi8bIq1HofSDTJI/bZETv8tcU k5AucqTEo3Sh+VtzE17Mjfy+swCEz0tJUa6NHBxofzONUJMt2uvAmX03tVL3cOYZY1Ux 0b3LLLlgkGAkZLiWdzF3Emh8zfjnpPCjiN37l2QDzKO2dQbkG5junJPmF4Ragf51fKI+ vrHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MJ+IDoYk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d1si25384673ilg.93.2021.05.12.03.47.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MJ+IDoYk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmOn-0007vS-Fg for patch@linaro.org; Wed, 12 May 2021 06:47:29 -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) 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-Received: by 2002:a05:600c:4a19:: with SMTP id c25mr37725345wmp.94.1620815436822; Wed, 12 May 2021 03:30:36 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, Matheus Ferst , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée 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 -- 2.20.1 diff --git a/tests/tcg/ppc64le/byte_reverse.c b/tests/tcg/ppc64le/byte_reverse.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 = 0xFEDCBA9876543210; + asm("brh %0, %0" : "+r"(var)); + assert(var == 0xDCFE98BA54761032); + + var = 0xFEDCBA9876543210; + asm("brw %0, %0" : "+r"(var)); + assert(var == 0x98BADCFE10325476); + + var = 0xFEDCBA9876543210; + asm("brd %0, %0" : "+r"(var)); + assert(var == 0x1032547698BADCFE); + + return 0; +} + diff --git a/tests/tcg/ppc64/Makefile.target b/tests/tcg/ppc64/Makefile.target index 0c6a4585fc..a6a4ddaeca 100644 --- a/tests/tcg/ppc64/Makefile.target +++ b/tests/tcg/ppc64/Makefile.target @@ -10,4 +10,17 @@ PPC64_TESTS=bcdsub endif bcdsub: CFLAGS += -mpower8-vector +PPC64_TESTS += byte_reverse +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER10),) +run-byte_reverse: QEMU_OPTS+=-cpu POWER10 +run-plugin-byte_reverse-with-%: QEMU_OPTS+=-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 += $(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=bcdsub endif bcdsub: CFLAGS += -mpower8-vector +PPC64LE_TESTS += byte_reverse +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_POWER10),) +run-byte_reverse: QEMU_OPTS+=-cpu POWER10 +run-plugin-byte_reverse-with-%: QEMU_OPTS+=-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 += $(PPC64LE_TESTS) From patchwork Wed May 12 10:20:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435497 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4700923jao; Wed, 12 May 2021 03:41:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydUddKbo4Na4Vm7/I4UVLuf6Ycp6yOkjpq+zfzY7IdOmkKRm3n0vXvNwlXFo4Nqu2U9Gi/ X-Received: by 2002:ac8:754a:: with SMTP id b10mr32994310qtr.83.1620816109535; Wed, 12 May 2021 03:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620816109; cv=none; d=google.com; s=arc-20160816; b=I0aquup9K13ztnMKgSoiETzjKoaph4o4DZvWnnm4baeYZqhLjO+nXyRGvgxBpBCYTG sIM2IhuobxSTihATNiKpqpLN0/pGPTMlFIYAash/BC7b1WWmWNW/3k2nddp4PmL02hH8 RozOPC5UehtyuZ4IQk1KaGMEqQh4NCw507DuPpII9k1yfoNy+7ofV/WOD0NQNCATixsu PnnG95odbLPJlJag3lbYGbzr4apCp2G/bwjOVChIhVFd7wG99dh7TJankP3W2uK4yPPF S49856DET4pbvZuFNp54LRhyo2tImymlRMjK2Seg1QN02n2aTtWJepuEgS12MQBXyGnv MbKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=iUZ/64GAc8Lit9olujLXGNkyl4h3hJob2ZVlurCRzXw=; b=UsvnxkuZ4XVlZilJxRdkcs/9aqRXFY6uO2bDHwPHdlyCBXIvEmV2h8VaXUU+5RbZu6 b3qLNmxH08q5Lo6TE8BZXWbD1+vEYn2pB4p/7tr4w69hAhC5+pJJn+2IbFfKu7TnNEvi 0E/yhLq70wnX1Fbip4HPryMD9nhATh1LpW/mHpVNUrfqOdT4zmpmagTwHTdoyteNP4DT hqweLWuHLXbDPuQlV1wHsY7/Y1+pwci3orhBfnHlCT2kK7grsj1JgiLuHhkLTtRbm83B s5IFKWJ0cSWeeKTsF5UJcAtb/ATE9WWajFKuYqEGtFn/LnaElTmWpGrgxOIn1uOpBVOg UIXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wRLVGwY1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h3si12829523qtn.169.2021.05.12.03.41.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=wRLVGwY1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmJI-0005Li-VN for patch@linaro.org; Wed, 12 May 2021 06:41:48 -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) 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-Received: by 2002:a5d:4351:: with SMTP id u17mr43671640wrr.47.1620815435038; 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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , Li-Wen Hsu , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée Reviewed-by: Yonggang Luo Message-Id: <20210427185524.281883-1-thuth@redhat.com> --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 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.pacnew /etc/pacman.conf || true" - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --overwrite=*" + C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --overwrite=*" Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))" $start_time = Get-Date From patchwork Wed May 12 10:20:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435491 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4698721jao; Wed, 12 May 2021 03:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdpkDBVxRONUulMwNBiz539v4BRwQIrqXJcS/khc9EIAZpVtmzDqtFfrMh3fC+nahRbccj X-Received: by 2002:ab0:400a:: with SMTP id h10mr3742469uad.57.1620815895806; Wed, 12 May 2021 03:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815895; cv=none; d=google.com; s=arc-20160816; b=NQou2aHc7P25XzkCD2fT+Nnq6+eS9W77F81UB2boCKoQVW5X98XLEWET2tsBq6HYed NLbd1S8sUEHYQeSwTOlUmpTWgM9i2HpgTPK+50LXydmCV9lXnswnAbUvB6jS9Gudk7Hw usM+WrjLVM9vCPpdvM38d2oWzfcQ+vRIdRfZXed8dYC2IcK/pRhwA7h5Htjmi/hQ3Ipd ZcHjpRT1Aqg7YpJ0LiwLo5prw1xZTvF1Ewaz8twW8uYUNA7IRUBB2HYNXVehmKAaIy8Q sjGI91Bs08F+Y4rlBJ59I0S9UT4sZ+ughKdYj8XsztZ+EcNfe4rpybKJsgSs7NlML3kg VbSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=MHleu5/QXcuGG15rHKSMEafttB4DD5jpS2zsXzbXm5k=; b=AeljHXe1XhYB2fBPoEKglOnHqN2VQxrG9gnKN8lrGKX/Bss5WDuGjfUEPwQZ+sQSIw WFoEpJucBwdHhRrMbC0be4t5fDNOc7KJ+9ULCygdXAEoX/jn75Vv3aWC9ccrkIIJysWw qshyzOy9kPYRXtVVkP5e6SXf1GGSut3b3vTBvZl3doEIcVMcUlzdBwkqjjfwmMwPlej/ pG6xHh9owjXG/rBXLEaSJ0XKQOvFbjogiQ+Y21CBcIMYEXgfQmkHmcNNTIW0dsiHMDxE gVTgav4waJMy/SnS88qUt/LneqzaoA+BmV0Hyz28wO/ZFFJFoboZwOP11CgTHdzJcdEN tyhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lTcDLaeB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d4si1840714vsh.104.2021.05.12.03.38.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:38:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lTcDLaeB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:51638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmFr-0006pz-3o for patch@linaro.org; Wed, 12 May 2021 06:38:15 -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) 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-Received: by 2002:adf:d1ec:: with SMTP id g12mr44984170wrd.294.1620815426697; Wed, 12 May 2021 03:30:26 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This was picked up when clang built the test. Signed-off-by: Alex Bennée --- tests/tcg/multiarch/system/memory.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/multiarch/system/memory.c b/tests/tcg/multiarch/system/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 = do_unsigned_reads(i); } + return ok; #else fn(0); return do_unsigned_reads(0); From patchwork Wed May 12 10:20:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435493 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4698951jao; Wed, 12 May 2021 03:38:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1fcTq02WfHSYYBE+0dO1P95bF1Xhh6APjjJcZkzNM0AkGAT5bQQ2FUuq0cBMleA097gcH X-Received: by 2002:a67:ee4e:: with SMTP id g14mr32134113vsp.37.1620815911941; Wed, 12 May 2021 03:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815911; cv=none; d=google.com; s=arc-20160816; b=eyqgz9CskTJrQs7L/MpdA5XSAK5W5kIuNPC1OJ1oCSnVufHFWOupR79L7kAAaGfmNr zZD+I8UeqX/0KoSmCNqA9JJXK9PNnJNrhwXbeaYIZeE4cnvhqK2NBpW0dSMnjbJGeEcT qqI0if3pP+6RT5N4Ni2q1bpUtYCnve7PL3kg5rAPkLGUAd8Tmp5bnO6ejhLkoMp/OxVj qm8CMZj8Jo4HdC/wgf+y9MWS7WzdAgsAUd+22CEt66pLXeHmve02/QKGI3/+MkSVxVQi cs3WX8k7hZMvLntvyj/s7O3rArQQNOAWqtqu+Jvn+1U+m1N1dQf05fISymtN7PTouF3F kEnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=k04YBeQVw1SV/5Xi/ZAFYyy3Jt24dK+QTEr9uqlEOFU=; b=GHzvQNvbbLQmuQG4fYeb6JRaG7mRed6zFN/mRis1naVBE2pLrMXohHDsVQ9Fd/YQiz LfNAU6ig+s0IZspfAYeDP5SGxojy+lj6mRbwqT+c3ciwt3Y0LeD8mvVdYG/xOfHu5PHO 1l24TYJWqZdzywhPM/N9ZWpSeiN4b/C2GFIR/d/8kdgTKRvngqMQG93wLSHN9qpnKcP0 pfAxCjuGlLUpkD97+CplWDrpTZjRqCbkaUz2r1HBa5mjKm23OxLcSE64c1+QsyW6HBKx +cgr3zV9g0VHEp3retS5QWuUcxhNhwR6M3pgDkxK+g7CuR5mYt0Tftz5IaZxIBi4RZst sdCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="bhERa/jn"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e29si11294226uaf.195.2021.05.12.03.38.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="bhERa/jn"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmG7-0007yl-9L for patch@linaro.org; Wed, 12 May 2021 06:38:31 -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) 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-Received: by 2002:a5d:6085:: with SMTP id w5mr45625396wrt.14.1620815429320; Wed, 12 May 2021 03:30:29 -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) From: =?utf-8?q?Alex_Benn=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 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_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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ée --- tests/tcg/configure.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) -- 2.20.1 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= container_cross_ld= + # suppress clang + supress_clang= + case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AArch64 @@ -119,6 +122,7 @@ for target in $target_list; do container_hosts=x86_64 container_image=fedora-i386-cross container_cross_cc=gcc + supress_clang=yes ;; m68k-*) container_hosts=x86_64 @@ -186,6 +190,7 @@ for target in $target_list; do container_hosts="aarch64 ppc64el x86_64" container_image=debian-amd64-cross container_cross_cc=x86_64-linux-gnu-gcc + supress_clang=yes ;; xtensa*-softmmu) container_hosts=x86_64 @@ -200,6 +205,7 @@ for target in $target_list; do echo "# Automatically generated by configure - do not modify" > $config_target_mak echo "TARGET_NAME=$arch" >> $config_target_mak + echo "target=$target" >> $config_target_mak case $target in *-linux-user | *-bsd-user) echo "CONFIG_USER_ONLY=y" >> $config_target_mak @@ -219,21 +225,26 @@ for target in $target_list; do if eval test "x\${cross_cc_$arch}" != xyes; then eval "target_compiler=\${cross_cc_$arch}" - 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" = yes && + $target_compiler --version | grep -qi "clang"; then + got_cross_cc=no + 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 without -static + if do_compiler "$target_compiler" $target_compiler_cflags \ + -o $TMPE $TMPC ; then + got_cross_cc=yes + echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak + echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak + fi + else got_cross_cc=yes echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak fi - else - got_cross_cc=yes - echo "CROSS_CC_GUEST_STATIC=y" >> $config_target_mak - echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak fi fi fi From patchwork Wed May 12 10:20:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 435490 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4697594jao; Wed, 12 May 2021 03:36:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyySbxFeqXjIJB4TQSw5rsuDhtM8oSEzsq8+omy1NZasMC7meP+ttdcKNOuMvVNuulXVE7G X-Received: by 2002:a67:1447:: with SMTP id 68mr30631291vsu.20.1620815812138; Wed, 12 May 2021 03:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815812; cv=none; d=google.com; s=arc-20160816; b=zMrwLhe7YtVupF0M4r6BLpZ1rul9qN9q7y2D86rr6t+pSxT3lwkTqnr1LVyoqWRQPy qiLVzBRjyRDxGcF4Q2MnOc8NOvVONNgzqSLmFckSyVQ7AQu1zZHK0+r63agv0W7r1O/6 j+XVztcZAo0SuwIbIEmvPGu5xM3sje4sAawhwLT5aOcSUC8rn5Yg9+PmMzT+gcjySSGM 1GAgYk4ff87n+Geglyvwti5/JX/spsanfsxKfRQdjg1siw1W7y1sffNUvKWWzLLGSmhf AaRV3FG6YxeUGQpkxAMFQE/yFvZd8vfZNb8ZEvWnHsjDhzw7YD75K5w0ak9e/ycrmUXN L1BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KcSppdWoWdBtZqATd+Yueqjnp9HE8N2cdlmtTmEhLUY=; b=lHadBUYJwGaa7t9369itO1Tss1QnaSbMKNT41a9Tcg7gPkYoRfckelM6EpnN9Pji7b d9UPrcH+ynkzJcyUfDedVuramNiDK/t0Y8tldVbOqg5ePVSH8FrVFy45KMd+TP/crt34 mv4kG/0qB8emOw4jnLEey9B4tjNtllUGzEGMOVcHg/SQBa31smaXzgTUo0n2kcXg5ujA pcFhgOMkRM4Kl0ds/NDxGdk/qmhj6hW5CLf85RD43C81XKSo8ibP4C6Q7J2g+bThBnFa /IH9Gp5ZA5TUs7Eeb/ISFJIfVPBaodUt0qnz/4ldssJTJIvXEU4aqCB3xqSit5LIpfHH vSEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xb8nEC9D; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a16si1106808vsp.440.2021.05.12.03.36.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 May 2021 03:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xb8nEC9D; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmEV-0002LI-Gw for patch@linaro.org; Wed, 12 May 2021 06:36:51 -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) 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-Received: by 2002:a05:6000:12cc:: with SMTP id l12mr6300745wrx.91.1620815431883; Wed, 12 May 2021 03:30:31 -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) From: =?utf-8?q?Alex_Benn=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 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_Mathieu-Daud?= =?utf-8?b?w6k=?= , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" 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é Signed-off-by: Alex Bennée --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 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 -eval "cross_cc_${cpu}=\$host_cc" +eval "cross_cc_${cpu}=\$cc" cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS"