From patchwork Tue Apr 24 15:23:20 2018 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: 134112 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2373276lji; Tue, 24 Apr 2018 08:26:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx49q4E59czczW+ksx9R7NGSNdsxre3dFKv8JCIxCzqeYBs+e2FV3zSbDMuY6eX8IM462MwZb X-Received: by 10.55.86.195 with SMTP id k186mr28056674qkb.0.1524583618328; Tue, 24 Apr 2018 08:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583618; cv=none; d=google.com; s=arc-20160816; b=mROjuw+BVW/tGEgANMNiEBJYKGtJObsHsPf5KjhGv2xwWBMAFgi5xRW2zg5YYuGihL S04LljKDrgCkL/MHLAWWuD2jE415pTD/LxWww5Rr8XT46PEM9yuOuoumWcIKtgzsRin8 XOxW5Ofqfb2ILjraaWiuIlkGQknujbPhTzyJ1UkfABzDTO8su0vzGhip7cW4eexWQw16 Exr8Wld2636K9Gt4L7D/nY+alSsJUJ611y9APoKL0DclfRrDU/P+5HeK01i73GmHidum 5cRntTnKHkNTIv+CLyUpQ4qv6EGNOoTDiN59aWfkuOMK+sq0sfibIsoe7VXtJhN5vjkT wLNA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=WlgurOWxgWWNe+eDTvK0gu4sEwGDa5sZBYXXFZPzdAg=; b=mHOM2g2Fswt9T36PWySDRicH6WB+RzjNWYzk/x345w7kT+PXWlmSXyxrYraZKbA07m UkjBFWSo/HM8/Kxd7eBPrVhSQ3aeUu4hmlcV+ZYXyLFMRFO0iJSumifUe/8vF78/K3Fk VoTeoHRV8LTCUE37OUGI0lNCCFd7fEW4xW5rlej9gK7a+557TN/I/sxoEO3DLtshbbfQ qhmJq2Z5DUT+CSVQ8Tne6nBp+VdJxjybJzSn513BvrizYtk/Y1DFX8s1rBCgPrIFAU45 deCrDZ/RUiIUxFJ/GnAcpNH96MRK/eQjQlelGnQB7dWm4dX08m91tQjKGWnrw1GCYY2l yNmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M1w5lmqU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h11si20875qvd.55.2018.04.24.08.26.58 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=M1w5lmqU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzqL-0007lU-M4 for patch@linaro.org; Tue, 24 Apr 2018 11:26:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzng-0006Tv-3y for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznc-0005G9-PR for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:12 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:54565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznc-0005ER-IV for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:08 -0400 Received: by mail-wm0-x234.google.com with SMTP id f6so1802759wmc.4 for ; Tue, 24 Apr 2018 08:24: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=WlgurOWxgWWNe+eDTvK0gu4sEwGDa5sZBYXXFZPzdAg=; b=M1w5lmqUaiDUFTUMeu5tDTwOWy2fhR8LB9cBIw/CFuD7MfnIKd9bnNRhK9ibY/jLaF unpzgNS4v6NFcqagWX8XPzDI0Na9L6DXuLAzFMeU1R+hLwBcMeW+gIHjMqoQqlx982R1 P+T11d2Vk8EknLhVuL7RJ/aInwqPJaLyYxkqA= 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=WlgurOWxgWWNe+eDTvK0gu4sEwGDa5sZBYXXFZPzdAg=; b=lSiWMwqiWLQK0Y2PN/aQtOXYv9nEjZ+YkphbfoEEK/ryWk5JcfuDP7QELefzABT4la tm+nmlsNCHvbRvdHm97Ho59hbuIRn/oCwzAUYFXy36pJvHe3MpKiAH5rwpqTXOqY4r+B IaqAf0yJQ4F19z6dzeRyGFxdfRGVWxll1Z5HK92f69YtQoANOR/cwJEd7y96HV+3Waez RkUxiSLFwP1sj8VDwzW5NByHlRY+aHNzHiTijITqjLdauC5RCnVlxISGFvSYtBbM6hap Od/2UV/WA18qy3l12Rur4yUzyHj8E71Pf4keILU6IGwqGQ0ondajVRRahFYzK9NtAMvU dS+g== X-Gm-Message-State: ALQs6tD6VHS9mngUbfLawwrAICNnEreHVHetgiqf7kIjxKqfdRj4vYC4 GJczWyC3Fj72WfRQvum8/PpkLA== X-Received: by 10.28.184.132 with SMTP id i126mr12115840wmf.30.1524583447466; Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f2-v6sm11965487wre.76.2018.04.24.08.24.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:05 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 762603E04EC; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:20 +0100 Message-Id: <20180424152405.10304-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 Subject: [Qemu-devel] [PATCH v3 01/46] docker: add "probe" command for configure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell This is a helper function for the configure script. It replies yes, sudo or no to inform the user if non-interactive docker support is available. We trap the Exception to fail gracefully. Signed-off-by: Alex Bennée Reviewed-by: Fam Zheng --- tests/docker/docker.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 1246ba9578..f8267586eb 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -390,6 +390,24 @@ class ImagesCommand(SubCommand): def run(self, args, argv): return Docker().command("images", argv, args.quiet) + +class ProbeCommand(SubCommand): + """Probe if we can run docker automatically""" + name = "probe" + + def run(self, args, argv): + try: + docker = Docker() + if docker._command[0] == "docker": + print "yes" + elif docker._command[0] == "sudo": + print "sudo" + except Exception: + print "no" + + return + + def main(): parser = argparse.ArgumentParser(description="A Docker helper", usage="%s ..." % os.path.basename(sys.argv[0])) From patchwork Tue Apr 24 15:23:21 2018 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: 134111 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2370605lji; Tue, 24 Apr 2018 08:24:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzk8KRD2nTK5Fscez8fUKWlrwykT3vbCDHNzD1UHxAoW19KlUrMrLKmxcK8b0z88klPt4z X-Received: by 2002:ac8:2653:: with SMTP id v19-v6mr3573499qtv.126.1524583477736; Tue, 24 Apr 2018 08:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583477; cv=none; d=google.com; s=arc-20160816; b=PzEqkGYMZmfzGoDp5E5lIHpPHuRv+f/qmUpNpujawSXqLeQWVvE6kead5j0fSPtde9 O7C2GSjv6t85QSYnGbmp0zUOfOQ25yO7UtBZfY2/yA7YdAkMTz3y+wHnQUc7pyMJwUFi 0DDp4I9ycfgd3rvDZg7OqgVyNcoqI780JpB2EBiXIoLwKSqQTwe5Rjcg66HTsFs5e8se SOzavlmz80fT7IvOcx6D8HVKKKGw+rk+D4QrS3JHV8HbB7aqpHkOf9BqheOfa7R48iZJ uqVEKKW6F03XElCtnwniUmr6gQZAXboGjaJMk0g7pLTFUCjYDbcCkKEbreJVr3X7AU0j dS/Q== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=DfoN3OeYnJ889meohj1VDNfXbZnWFtjyq9Ntl6YiiAL+gUCnBF8IN7PdtjfcqJd2rA y8ot23hhaOJAQJ82JaOzGpDHMZVuoTEu/HHj5Fej+e1ARoqgzrP/fG1zgSs806EOlKcj q+gNMJ91u/hkdSqHWCc5wWdZYkryNi0J0E1Ss2BPtCATOEjBlaLPQoj35EMcZQBWPeMe SWZ5PHExYXsnDej/WYP5Y7gCwK0EExmd+JrVnuB1KYijuxbr+MEim4ck+aKupLRy0bqj hv70KeN6eJ2DUdlf9UR8Ivrji4KIo54SSNbR1MZMl20o5q3lyEKbewNgtDJUMbQrNzeE 22dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Bp5dhW0/; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t68si135111qki.258.2018.04.24.08.24.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Bp5dhW0/; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzo5-0006WO-6s for patch@linaro.org; Tue, 24 Apr 2018 11:24:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzng-0006Tt-28 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzne-0005Ip-3f for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:11 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:54600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznd-0005H5-TH for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:10 -0400 Received: by mail-wm0-x241.google.com with SMTP id f6so1802899wmc.4 for ; Tue, 24 Apr 2018 08:24:09 -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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=Bp5dhW0/SNkGjkVWwFT3obtVVDsdi0bYZ5MtLp2TGZVeWSri36mwSimuZb70MQpIJq Jtdyva16apz5li7N0+Ny3UPY3HVFwDXwnCCZ7yQ5jeYlMTdZKyxiEHhRjXRqgWEwAtGE 8aDUklwd4ERdzcKWaS3SYg+gC71Lh3WZAatUc= 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=PBBcL7evx4AUc+MVUfWzM5d2rbr035v+hr9e0PLaeTo=; b=d1AtVRchOBNsjJbzAQSUS4wFyRXEIJm6DUkZNUCrVOG0C6t3bB4ow5QgQ4fEmQH5Lt AbExr2wTXuwYOpH6aMNxLzT60i6aTM/icZMiSk51EQWNN+p9puxFVXU+wnwtXL37qlTb 1WaTn4UgbRQ1f7PU2IpzqLjWcFDJTs3+v2hwfnPLV7psZUdOyMLX1PafyEzeCPrbFSdD L6tvuFuF/6RxWh48+g5D69pkqZ+22WANowHVyRN3XJlATxYe5mmZsIEipap28kams2v/ jCsnkfLhLoDQPVTl6aOqqEFckn7qt7SdoX6If8fGD+scBwTMacJlNAE93v+QqZZ2sStQ ATdg== X-Gm-Message-State: ALQs6tCdbfdSLR0nRDNVcyS41eVF2bYco/UDH8Ua9+zLacEOU8cTwG4Y xXEezlxBZuN0UZXpJIB18tG44w== X-Received: by 10.28.237.11 with SMTP id l11mr13806373wmh.160.1524583448848; Tue, 24 Apr 2018 08:24:08 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o10-v6sm10513757wrg.90.2018.04.24.08.24.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8944A3E0550; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:21 +0100 Message-Id: <20180424152405.10304-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 02/46] configure: add test for docker availability X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This tests for a working docker installation without sudo and sets up config-host.mak accordingly. This will be useful from cross compiling things in the future. Signed-off-by: Alex Bennée --- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index 0a19b033bc..b0ae632ee4 100755 --- a/configure +++ b/configure @@ -451,6 +451,7 @@ jemalloc="no" replication="yes" vxhs="" libxml2="" +docker="no" supported_cpu="no" supported_os="no" @@ -5413,6 +5414,17 @@ EOF fi fi +########################################## +# Docker and cross-compiler support +# +# This is specifically for building test +# cases for foreign architectures, not +# cross-compiling QEMU itself. + +if has "docker"; then + docker=$($python $source_path/tests/docker/docker.py probe) +fi + ########################################## # End of CC checks # After here, no more $cc or $ld runs @@ -5874,6 +5886,7 @@ echo "avx2 optimization $avx2_opt" echo "replication support $replication" echo "VxHS block device $vxhs" echo "capstone $capstone" +echo "docker $docker" if test "$sdl_too_old" = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -6697,6 +6710,10 @@ if test "$gcov" = "yes" ; then echo "GCOV=$gcov_tool" >> $config_host_mak fi +if test "$docker" != "no"; then + echo "HAVE_USER_DOCKER=y" >> $config_host_mak +fi + # use included Linux headers if test "$linux" = "yes" ; then mkdir -p linux-headers From patchwork Tue Apr 24 15:23:22 2018 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: 134114 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2373820lji; Tue, 24 Apr 2018 08:27:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9Mn/uFiSWPBF2Ki8LGMlbo8oHmRxY+MvBN5Centmkky5oD9NCB2cSaRv3/1Ombvd6q1Gj X-Received: by 2002:ac8:2725:: with SMTP id g34-v6mr2422653qtg.86.1524583647993; Tue, 24 Apr 2018 08:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583647; cv=none; d=google.com; s=arc-20160816; b=EcMnwzN1fLeKXnACsdhc+IVaQeW7Rsp0NYCDyJ80STBtnej4qhVBcLPBL+5O/txDzh Y4UhF1zkh3PZGuKKyI7rwwpFKO2809VrJtjcblwspJfYN22dPN9EGJbSksvf4xtzKTCA KiVdM1uTtAl8eNtjFU/Aa3B8N7+UxZLq+zVbEMy25w7eL4uJkwkBE6MP2lDlby76QVRZ BMuvsIVQVGhG5g2apNjvQs9Q3qLCI4L/1PA3yDdMAh8HKU2AQ098QBfmK31TcMZPpqTt 1Vy626evEqV3wOBtYBYGnf4yxGi2ce3If91Wz1RPZ9kIvB32krowG7E6IAo9P2Dq76jl rafA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=XQaKh1htNBodUIHozadt63voVd0ykhjT5MmUu/52tfg=; b=ffPDEX3j2L7v/v4xNKgXvqEzVf6nMV/gVWbCZl7fpPp9DbMNXL3QHtLL/s3ZD4Vefo GQiaVb/4Aaeo5LzxB6tylPTXkXnacJGTLSoL+eKROGm8EJ1svqUsZQAmRAkMpGTl7Nun abfS8KkxpwiCbXh98F2GwGfk37NGR4ZeBcxLoVHtVFI3rm8TKm6/xE0p+edmhWqwIaoL bQkoH22MQ5HsjVmRy0NP+cUZvyvbYEuA4k89RGeGBeDsM7WDQ9IRXxGqF4up0maBKqji a5kRs6LiTFz6L9/DHCzIz7+iuZMdTd6mFmslZ0nZay/a5WJZHweZZ/521aZRCVPUmkIx Tzxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FDRV2m1u; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o24-v6si2083986qtp.143.2018.04.24.08.27.27 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:27:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FDRV2m1u; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzqp-0000mR-Db for patch@linaro.org; Tue, 24 Apr 2018 11:27:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzng-0006UW-W8 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznf-0005L3-33 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:12 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:33313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzne-0005J3-QJ for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:11 -0400 Received: by mail-wr0-x241.google.com with SMTP id o4-v6so109384wrm.0 for ; Tue, 24 Apr 2018 08:24:10 -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=XQaKh1htNBodUIHozadt63voVd0ykhjT5MmUu/52tfg=; b=FDRV2m1ukJKxKt3dofxQTXOeCz0y1VTFkEdZXLEQ/K9+SRwwayJuSetzjapsGbZ4iy 56nUcSrfTEPHVmygz7lbQiKuvFXRgmV7Pqd9mmTDitpsQsqSceo2pjPSq3cGDlMxPABr JAOVIc2Fr6wYMZEsPNuhrtH+DUQSUoC/Rob9Q= 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=XQaKh1htNBodUIHozadt63voVd0ykhjT5MmUu/52tfg=; b=O+yQ0xWMmLPmcaCrVadJSDASOt9eBfe/gnjpExkvj+BCxj19JVE1gNxuijhkfOnaWF QNk/ev0EQGxO8gbU0oBoVWQsDLQpiWLGmc1KAm6XDbLS9uA8wQRKuRxYsmV9nTy9I4/i +lj13VjWLkkvjj8ybGU9gi72vA5YwGD0L8tm0B+17zANMs9+A8M8nW0BGaBU5E+OPvNZ UjSMts3Yhv+xGOTwi1CVieZRaecMBYU4+48qK0HCOYa9zQYAvCa/6kbSkGoWjQ5sbCkM 46r2IeFb9M5Cidg7y9BHYkGKSPzceSj7bkF/d9TBdVU/UkU+DwQJCP4GdMPMR4DrPXnl d8Dg== X-Gm-Message-State: ALQs6tAcNoXydl3rByAOgRLtbSwQGysMRXgkIv9/HooDvtCkP5JBYIyr W+TYzxD4GKuX0Hgtl71t+osbgg== X-Received: by 2002:adf:9654:: with SMTP id c20-v6mr21615308wra.89.1524583449667; Tue, 24 Apr 2018 08:24:09 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k30-v6sm37352200wrf.1.2018.04.24.08.24.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9BC713E055F; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:22 +0100 Message-Id: <20180424152405.10304-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 03/46] configure: add support for --cross-cc-FOO X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This allows us to specify cross compilers for our guests. This is useful for building test images/programs. Currently we re-run the compile test for each target. I couldn't think of a way to cache the value for a given arch without getting messier configure code. The cross compiler for the guest is visible to each target as CROSS_CC_GUEST in config-target.mak. Signed-off-by: Alex Bennée --- v3 - --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit... - --cross-cc-*) cc_arch=${opt#--cross-cc-}; cc_arch=${cc_arch%%=*} - add remaining target_compiler definitions --- configure | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index b0ae632ee4..caa838a0d0 100755 --- a/configure +++ b/configure @@ -453,6 +453,13 @@ vxhs="" libxml2="" docker="no" +# cross compilers defaults, can be overridden with --cross-cc-ARCH +cross_cc_aarch64="aarch64-linux-gnu-gcc" +cross_cc_arm="arm-linux-gnueabihf-gcc" +cross_cc_powerpc="powerpc-linux-gnu-gcc" + +enabled_cross_compilers="" + supported_cpu="no" supported_os="no" bogus_os="no" @@ -483,6 +490,11 @@ for opt do ;; --disable-debug-info) debug_info="no" ;; + --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --cross-cc-FOO option" + ;; + --cross-cc-*) cc_arch=${opt#--cross-cc-}; cc_arch=${cc_arch%%=*} + eval "cross_cc_${cc_arch}=\$optarg" + ;; esac done # OS specific @@ -675,10 +687,12 @@ case "$cpu" in i386|i486|i586|i686|i86pc|BePC) cpu="i386" supported_cpu="yes" + cross_cc_i386=gcc ;; x86_64|amd64) cpu="x86_64" supported_cpu="yes" + cross_cc_x86_64=gcc ;; armv*b|armv*l|arm) cpu="arm" @@ -912,6 +926,8 @@ for opt do ;; --disable-debug-info) ;; + --cross-cc-*) + ;; --enable-modules) modules="yes" ;; @@ -6777,6 +6793,8 @@ case "$target" in ;; esac +target_compiler="" + mkdir -p $target_dir echo "# Automatically generated by configure - do not modify" > $config_target_mak @@ -6792,19 +6810,23 @@ TARGET_ABI_DIR="" case "$target_name" in i386) gdb_xml_files="i386-32bit.xml i386-32bit-core.xml i386-32bit-sse.xml" + target_compiler=$cross_cc_i386 ;; x86_64) TARGET_BASE_ARCH=i386 gdb_xml_files="i386-64bit.xml i386-64bit-core.xml i386-64bit-sse.xml" + target_compiler=$cross_cc_x86_64 ;; alpha) mttcg="yes" + target_compiler=$cross_cc_alpha ;; arm|armeb) TARGET_ARCH=arm bflt="yes" mttcg="yes" gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" + target_compiler=$cross_cc_arm ;; aarch64|aarch64_be) TARGET_ARCH=aarch64 @@ -6812,58 +6834,73 @@ case "$target_name" in bflt="yes" mttcg="yes" gdb_xml_files="aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" + target_compiler=$cross_cc_aarch64 ;; cris) + target_compiler=$cross_cc_cris ;; hppa) mttcg="yes" + target_compiler=$cross_cc_hppa ;; lm32) + target_compiler=$cross_cc_lm32 ;; m68k) bflt="yes" gdb_xml_files="cf-core.xml cf-fp.xml m68k-fp.xml" + target_compiler=$cross_cc_m68k ;; microblaze|microblazeel) TARGET_ARCH=microblaze bflt="yes" + target_compiler=$cross_cc_microblaze ;; mips|mipsel) TARGET_ARCH=mips + target_compiler=$cross_cc_mips echo "TARGET_ABI_MIPSO32=y" >> $config_target_mak ;; mipsn32|mipsn32el) TARGET_ARCH=mips64 TARGET_BASE_ARCH=mips + target_compiler=$cross_cc_mipsn32 echo "TARGET_ABI_MIPSN32=y" >> $config_target_mak echo "TARGET_ABI32=y" >> $config_target_mak ;; mips64|mips64el) TARGET_ARCH=mips64 TARGET_BASE_ARCH=mips + target_compiler=$cross_cc_mips64 echo "TARGET_ABI_MIPSN64=y" >> $config_target_mak ;; moxie) + target_compiler=$cross_cc_moxie ;; nios2) + target_compiler=$cross_cc_nios2 ;; or1k) + target_compiler=$cross_cc_or1k TARGET_ARCH=openrisc TARGET_BASE_ARCH=openrisc ;; ppc) gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" + target_compiler=$cross_cc_powerpc ;; ppcemb) TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" + target_compiler=$cross_cc_ppcemb ;; ppc64) TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc mttcg=yes gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" + target_compiler=$cross_cc_ppc64 ;; ppc64le) TARGET_ARCH=ppc64 @@ -6871,6 +6908,7 @@ case "$target_name" in TARGET_ABI_DIR=ppc mttcg=yes gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" + target_compiler=$cross_cc_ppc64le ;; ppc64abi32) TARGET_ARCH=ppc64 @@ -6878,45 +6916,57 @@ case "$target_name" in TARGET_ABI_DIR=ppc echo "TARGET_ABI32=y" >> $config_target_mak gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" + target_compiler=$cross_cc_ppc64abi32 ;; riscv32) TARGET_BASE_ARCH=riscv TARGET_ABI_DIR=riscv mttcg=yes + target_compiler=$cross_cc_riscv32 ;; riscv64) TARGET_BASE_ARCH=riscv TARGET_ABI_DIR=riscv mttcg=yes + target_compiler=$cross_cc_riscv64 ;; sh4|sh4eb) TARGET_ARCH=sh4 bflt="yes" + target_compiler=$cross_cc_sh4 ;; sparc) + target_compiler=$cross_cc_sparc ;; sparc64) TARGET_BASE_ARCH=sparc + target_compiler=$cross_cc_sparc64 ;; sparc32plus) TARGET_ARCH=sparc64 TARGET_BASE_ARCH=sparc TARGET_ABI_DIR=sparc + target_compiler=$cross_cc_sparc32plus echo "TARGET_ABI32=y" >> $config_target_mak ;; s390x) mttcg=yes gdb_xml_files="s390x-core64.xml s390-acr.xml s390-fpr.xml s390-vx.xml s390-cr.xml s390-virt.xml s390-gs.xml" + target_compiler=$cross_cc_s390x ;; tilegx) + target_compiler=$cross_cc_tilegx ;; tricore) + target_compiler=$cross_cc_tricore ;; unicore32) + target_compiler=$cross_cc_unicore32 ;; xtensa|xtensaeb) TARGET_ARCH=xtensa mttcg="yes" + target_compiler=$cross_cc_xtensa ;; *) error_exit "Unsupported target CPU" @@ -6927,6 +6977,25 @@ if [ "$TARGET_BASE_ARCH" = "" ]; then TARGET_BASE_ARCH=$TARGET_ARCH fi +# Do we have a cross compiler for this target? +if has $target_compiler; then + + cat > $TMPC << EOF +#include +int main(void) { + printf("Hello World!\n"); +} +EOF + + if ! do_compiler $target_compiler -o $TMPE $TMPC -static ; then + target_compiler="" + else + enabled_cross_compilers="${enabled_cross_compilers} ${target_compiler}" + fi +else + target_compiler="" +fi + symlink "$source_path/Makefile.target" "$target_dir/Makefile" upper() { @@ -7000,6 +7069,10 @@ if test "$target_bsd_user" = "yes" ; then echo "CONFIG_BSD_USER=y" >> $config_target_mak fi +if test -n "$target_compiler"; then + echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak +fi + # generate QEMU_CFLAGS/LDFLAGS for targets cflags="" @@ -7122,6 +7195,12 @@ echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak done # for target in $targets +if test -n "$enabled_cross_compilers"; then + echo + echo "NOTE: cross-compilers enabled:" + printf '%s\n' $enabled_cross_compilers | sort -u +fi + if [ "$dtc_internal" = "yes" ]; then echo "config-host.h: subdir-dtc" >> $config_host_mak fi From patchwork Tue Apr 24 15:23:23 2018 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: 134120 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2385271lji; Tue, 24 Apr 2018 08:37:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpm1R10tIUVRldvT3DiOlhK++uP/FeHv0LBvFcrH6EHfV4fw0iBnP1Xw8YHs7U0SKbO1Lv6 X-Received: by 10.12.198.14 with SMTP id v14mr2380148qvi.82.1524584245180; Tue, 24 Apr 2018 08:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584245; cv=none; d=google.com; s=arc-20160816; b=vIPQNUG8XSxi+oTHa9BIQeTDlgL36o9yFKjyybC6hhtQRhAhah6zCbaJzLhPHj7GtO rkpkUkYaVNjmBiAhwuisf8dWWSsJoChtWgIA9TjPCGDt1PKah2uM9dhhtZoRWolyqIRr oH+vK/NBJJmM52MVP2PXlk1g/PILgsBRsoHKV/au/G8LrQ70D3QfgXdDncKPvDlm65F5 X9hS0bYn64eHpYi8iLqbz5rb3vAbSj31pLnJvciRfcmcmhag1q6OCTQI4u/741ZBLo7b EdnwMvtFHzvH/xHIEEeVMlnKpuaVi3u+uI8tlfx2OpHuU3xZSVzU/oBsAjetGqH9QCmD OpCA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=IB5C4dS0bHjiqh31smXTu+c1pHUMqLt854R8HBwdxgw=; b=aHEhiMUPlb6lBMpuQslCqaLsNN+sKzzjm225zsuV5d7cdIUHuMHS5gKMeFsKUTKh2a BJ+tP/IVDulWhTOo46jA64jAz/4f09twIvCORb3aO1xmJM/J9bdIa3Ejp+TeWpCqbpE9 7mdgXQV8QGcENYsNHGfQM1jTVispO+v3B9/cyfguDfox3jSmw4wqGNd7NoK0qorN9E4O Ik/MQ3YH6OE0OfrHz8AIdol5rQEzLLQ8j5R4/HarSUNy1M/RMaWebAL7MVuJqwgpLhbr 2nbicNJf/hb38zZP4Vw4VJuZI1E9qGHUpGl6DJuMbHfRpEVhomaBEyGoBCPWm043Vswp PR1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Rxy/B15c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c127si819061qkf.74.2018.04.24.08.37.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:37:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Rxy/B15c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB00S-0007x5-Hu for patch@linaro.org; Tue, 24 Apr 2018 11:37:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznk-0006Xh-E4 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzng-0005Ne-67 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:16 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:53498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznf-0005Lc-U8 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:12 -0400 Received: by mail-wm0-x243.google.com with SMTP id 66so1795805wmd.3 for ; Tue, 24 Apr 2018 08:24: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=IB5C4dS0bHjiqh31smXTu+c1pHUMqLt854R8HBwdxgw=; b=Rxy/B15cqUrqTL/QriG13HG7EAYpsIieK9GoTd/Z+x8dJDs2/mdf/wsgaka+VBgROR YZWOKDR6lRxaxN/v01yM6oT7LHsM47ZFhwCPlhE8BEz7KKVL66IvWHCzoS2UmG4ge2Vb HwPrjRpi+ZpkMUuklEMRNs2lo5HLJ02wTWegQ= 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=IB5C4dS0bHjiqh31smXTu+c1pHUMqLt854R8HBwdxgw=; b=Dv8+97Z1w0T2zTMKcuKDxN+vSjhfeXJc+spslPDH3+lgtOSh8ouquX5nUFsGyMCK4U tJqWvpk19zZtRXsRSD6hU6wnLo1TLjSsMBoKI1kewBxJ7Lj5k4qQ7ftN4dyLoda6hwjB LIQNqUpAya3w5jTna9d8rzr9Vg138bxcDrwRdgrNqjRhX0TWHHYEozvUfkqzqz5cSOFM +feGN73IYIH155FpBBEpWf4q+hsiOp2uW6J3aOnOpwfqN6DJ+bmogDXk7iTEP92pV/08 4nRNx8guKTKSgKVXTFcTK0aXlV2MOFlFzD7ZBwWf+wOe0HV70aw+LZOqbeY3oWJ8tVBl dIog== X-Gm-Message-State: ALQs6tAeLnKG0ps4pWH8FB7ZYQsmXC/OQ9HLKEMFy1gZbDiYA57eO/Bd zGRcTtizlRYoySeajFPHhz6N9g== X-Received: by 10.28.202.26 with SMTP id a26mr10938071wmg.126.1524583450885; Tue, 24 Apr 2018 08:24:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c18sm12854012wmd.13.2018.04.24.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id AD6903E0587; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:23 +0100 Message-Id: <20180424152405.10304-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 04/46] configure: move i386_cc to cross_cc_i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Also dont assume x86_64 compiler can build i386 binaries. Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé --- v2 - drop using system x86_64 compiler for i386 compiles v3 - fix cross_cc_i386 when on i386 --- configure | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index caa838a0d0..ffd96d930f 100755 --- a/configure +++ b/configure @@ -284,7 +284,6 @@ libs_softmmu="" libs_tools="" audio_pt_int="" audio_win_int="" -cc_i386=i386-pc-linux-gnu-gcc libs_qga="" debug_info="yes" stack_protector="" @@ -457,6 +456,8 @@ docker="no" cross_cc_aarch64="aarch64-linux-gnu-gcc" cross_cc_arm="arm-linux-gnueabihf-gcc" cross_cc_powerpc="powerpc-linux-gnu-gcc" +cross_cc_i386="i386-pc-linux-gnu-gcc" +cross_cc_cflags_i386="" enabled_cross_compilers="" @@ -687,12 +688,10 @@ case "$cpu" in i386|i486|i586|i686|i86pc|BePC) cpu="i386" supported_cpu="yes" - cross_cc_i386=gcc ;; x86_64|amd64) cpu="x86_64" supported_cpu="yes" - cross_cc_x86_64=gcc ;; armv*b|armv*l|arm) cpu="arm" @@ -1435,7 +1434,8 @@ case "$cpu" in i386) CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" - cc_i386='$(CC) -m32' + cross_cc_i386=$cc + cross_cc_cflags_i386=$CPU_CFLAGS ;; x86_64) # ??? Only extremely old AMD cpus do not have cmpxchg16b. @@ -1443,12 +1443,14 @@ case "$cpu" in # runtime and generate the fallback to serial emulation. CPU_CFLAGS="-m64 -mcx16" LDFLAGS="-m64 $LDFLAGS" - cc_i386='$(CC) -m32' + cross_cc_x86_64=$cc + cross_cc_cflags_x86_64=$CPU_CFLAGS ;; x32) CPU_CFLAGS="-mx32" LDFLAGS="-mx32 $LDFLAGS" - cc_i386='$(CC) -m32' + cross_cc_i386=$cc + cross_cc_cflags_i386="-m32" ;; # No special flags required for other host CPUs esac @@ -6675,7 +6677,6 @@ echo "CC=$cc" >> $config_host_mak if $iasl -h > /dev/null 2>&1; then echo "IASL=$iasl" >> $config_host_mak fi -echo "CC_I386=$cc_i386" >> $config_host_mak echo "HOST_CC=$host_cc" >> $config_host_mak echo "CXX=$cxx" >> $config_host_mak echo "OBJCC=$objcc" >> $config_host_mak @@ -6794,6 +6795,7 @@ case "$target" in esac target_compiler="" +target_compiler_cflags="" mkdir -p $target_dir echo "# Automatically generated by configure - do not modify" > $config_target_mak @@ -6811,6 +6813,7 @@ case "$target_name" in i386) gdb_xml_files="i386-32bit.xml i386-32bit-core.xml i386-32bit-sse.xml" target_compiler=$cross_cc_i386 + target_compiler_cflags=$cross_cc_cflags_i386 ;; x86_64) TARGET_BASE_ARCH=i386 @@ -6987,7 +6990,7 @@ int main(void) { } EOF - if ! do_compiler $target_compiler -o $TMPE $TMPC -static ; then + if ! do_compiler $target_compiler $target_compiler_cflags -o $TMPE $TMPC -static ; then target_compiler="" else enabled_cross_compilers="${enabled_cross_compilers} ${target_compiler}" @@ -7071,8 +7074,13 @@ fi if test -n "$target_compiler"; then echo "CROSS_CC_GUEST=$target_compiler" >> $config_target_mak + + if test -n "$target_compiler_cflags"; then + echo "CROSS_CC_GUEST_CFLAGS=$target_compiler_cflags" >> $config_target_mak + fi fi + # generate QEMU_CFLAGS/LDFLAGS for targets cflags="" From patchwork Tue Apr 24 15:23:24 2018 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: 134118 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2378551lji; Tue, 24 Apr 2018 08:31:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqFDTfb9HP7VOH4FIZWf9pWMfUlVzldQCJKQtI4/UInoRfRA4jy6a7RKLcTQ+MUHKEACKZM X-Received: by 10.12.210.249 with SMTP id x54mr4427093qvh.245.1524583881105; Tue, 24 Apr 2018 08:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583881; cv=none; d=google.com; s=arc-20160816; b=Xo8OoEFTbRK9rJinj2bxT9HQtQ5di+Hk9QlCY5ErAA+cvavGkP+dyxWx7pdy44aA0O du3GR7CJfW6BqtTJdBkl0iqkuMG9KDKWQNPM8sVWA7G0jMgluF6Ji6MfO0oJiRYb8tOe GGNDy/xDLBJvvwD/RgHmHn+U7uBiVSvNZV/FDfMPWFVIHHPaUePtc1PP3tpzixXYLDAE A/ZGopvkiezSHr4QYDxzRHmS3y5TsH56uyNTHJ3WG1giN7Iba7Qn46KANN3GFFBuSeS6 RD314mTpME3c5LK7tzO8yqAiEg11ghfwjLmMhxOUKPuaWxwTM5eWP9m1WdY20qag4wHz JMPg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Hjm/Q8z3+qzXGtcNDpkpUVIONhLMY6WOYRKns5zUbLQ=; b=scdUEnfoORbASPRUQnGg+Ruui3XzwcBedRl2mv0u0w9qZ3Gm46HBSpVxjV535Y1cGd s3e4tmt1DBd5k79r+IpxwdHZdHUJSsq9Cu6d1l8qzN8vZXdNZEqlS0JHIs5sv4A5U8Ss gIWHvl9WvgOEQg+c1NQ+410kEUFPT/8WjEb8A+Y51x5AL/Rt8qcG/xxMIfnK9FXz2xwb I9JjNu+1jgKxdJsyq3wRVaj2JbcTYsjONCMeuzdKusPiz2Sf/Uo/qDa0i1u74PmBigew UIGMzaibDtDIh54kcUoR05AsRsJJkEgNYVIEoq8lLfyuGCwObTGBhGN7sRBq0QhnVLst MFOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VlrJ8rn7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f5-v6si19135186qth.121.2018.04.24.08.31.20 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VlrJ8rn7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzua-0004EF-HR for patch@linaro.org; Tue, 24 Apr 2018 11:31:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznj-0006Wf-7m for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzni-0005Rd-9M for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:15 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:37623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzni-0005QN-2Y for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:14 -0400 Received: by mail-wr0-x242.google.com with SMTP id c14-v6so10251727wrd.4 for ; Tue, 24 Apr 2018 08:24:13 -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=Hjm/Q8z3+qzXGtcNDpkpUVIONhLMY6WOYRKns5zUbLQ=; b=VlrJ8rn7/TDJFYiviJ7VqSqwO+AvlHxWlrbfbo9m6Z4N5NzmW31Pv/fQSMSY2ckPgS KzObMpZ1gdDp/id9ay1doJaxYw/lttb0UD6BUYwD128PhlRr+iwtZXcCc6XJEA6MfLG2 kDmgA83ThO/T7plGTmzwx1J09Xf2r/g0kO9qs= 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=Hjm/Q8z3+qzXGtcNDpkpUVIONhLMY6WOYRKns5zUbLQ=; b=AhYKGowFSKbQSC7FJi03QQ1k3xplyq35+kyhfY0Vtpaxo6tXKP2x4aNkD6f9BmLagr hxWEheW2brA+dAuKSEypJ8HFxCwS1p5vm9NsNVDYw5ZU7TDcxY4ZN1z99vFrYCUGOr99 Jn0g8vZOP5Fa+u+HsOIPbueRQjjFCjzXiszF4AuIhNViB8k+Y3Pz1qJCIDfmNAmjpdhh r7GsDQo3XQTfSOMc5XE3lSqPgET3KUnkC2c+AsNus3SbvKwiy+zRijfuKBY0BX0nC3ND 92HNUHbLmMJ1VXIPTOeZbrwiZSWmYVF07LzonmDTd+0E/JdqVoTOBIrZUEmjiYr8tSyz 0NaQ== X-Gm-Message-State: ALQs6tD22SzRRlGy3ypZvcGeg0L2dXNkR+ACGI9ND38xiT3eg3Sen75Z eBsTM5j5g80hw632WjiKSY3HmQ== X-Received: by 2002:adf:82c4:: with SMTP id 62-v6mr19861636wrc.273.1524583452977; Tue, 24 Apr 2018 08:24:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b13sm12681785wmi.42.2018.04.24.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BEFA33E07A1; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:24 +0100 Message-Id: <20180424152405.10304-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH v3 05/46] configure: allow user to specify --cross-cc-cflags-foo= X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As an individual compiler may be able to support several targets with the appropriate flags we need to expose this to the user as well. Signed-off-by: Alex Bennée --- v3 - fix up the cross-cc --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/configure b/configure index ffd96d930f..282e1f1e2b 100755 --- a/configure +++ b/configure @@ -454,7 +454,10 @@ docker="no" # cross compilers defaults, can be overridden with --cross-cc-ARCH cross_cc_aarch64="aarch64-linux-gnu-gcc" +cross_cc_aarch64_be="$cross_cc_aarch64" +cross_cc_cflags_aarch64_be="-mbig-endian" cross_cc_arm="arm-linux-gnueabihf-gcc" +cross_cc_cflags_armeb="-mbig-endian" cross_cc_powerpc="powerpc-linux-gnu-gcc" cross_cc_i386="i386-pc-linux-gnu-gcc" cross_cc_cflags_i386="" @@ -493,6 +496,9 @@ for opt do ;; --cross-cc-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --cross-cc-FOO option" ;; + --cross-cc-cflags-*) cc_arch=${opt#--cross-cc-flags-}; cc_arch=${cc_arch%%=*} + eval "cross_cc_cflags_${cc_arch}=\$optarg" + ;; --cross-cc-*) cc_arch=${opt#--cross-cc-}; cc_arch=${cc_arch%%=*} eval "cross_cc_${cc_arch}=\$optarg" ;; @@ -6830,6 +6836,7 @@ case "$target_name" in mttcg="yes" gdb_xml_files="arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" target_compiler=$cross_cc_arm + eval "target_compiler_cflags=\$cross_cc_cflags_${target_name}" ;; aarch64|aarch64_be) TARGET_ARCH=aarch64 @@ -6838,6 +6845,7 @@ case "$target_name" in mttcg="yes" gdb_xml_files="aarch64-core.xml aarch64-fpu.xml arm-core.xml arm-vfp.xml arm-vfp3.xml arm-neon.xml" target_compiler=$cross_cc_aarch64 + eval "target_compiler_cflags=\$cross_cc_cflags_${target_name}" ;; cris) target_compiler=$cross_cc_cris From patchwork Tue Apr 24 15:23:25 2018 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: 134117 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2377022lji; Tue, 24 Apr 2018 08:30:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0XlPyRax4soY+6v6MGM7BC6wB6DF7Rc+q7g3H5Hkim50MOVJK0kZZHT9t3mgP64ayk64g X-Received: by 10.55.168.71 with SMTP id r68mr25916940qke.154.1524583814110; Tue, 24 Apr 2018 08:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583814; cv=none; d=google.com; s=arc-20160816; b=xFbv27GH5NMrZGSQ2wVhwTtwY/uU++nHQqgNQflqIJWmaY7sM/dWb8l9XtMZIW1AjA Tbzry5z5YXAnKkqdWW446ZqHahhfOVo6CH1lS08lE4MLvGVhy4TnDiMHuWkMnLExej9N TIz9zM7kSrzVfZAv9BUFgwOecVOPQHbXFsFSNExeVdKQw0DC7sBKP7RCw2san/MbkL3g CiydzMe9C4P11uGi0biMDfsSVXKrA6KQ2tJNaYJ5DJi2t8trSoLJ5pm7/1LKQxNpDsBD G9DPJadEmtVC6OcUOMpnpgMElgsWLk1PPV4wf0QVW/x8bm+nwD929JMnlaqKTccuRi8Q KJeQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=jAIaDrgImpjfPPDqJDtTLaKBJTwIYrZ01AaVRQNgGaJaljcKNiM8rrfIIeqeSW7bko 0LOXQ+uMd9Yd8ScxAxvm5f8baNmtheFguJq/m8tLGyO5IDF6/c9uWYEegQuopzyZDedh z9vkFzFgwNKh931VSa05QH5KMqoQTjSnxKfhtybaivfjtFh+/PseUPQnomTLhPGdqBBI nzmzd4jpkkqP9MiduU9k7vWXDXnF/RJC2pdSz66UNCTAL4cZwg1Nu13aB95wy+kWFcty 48Ovs6OcBJy59mPv26H3O8bGujX+T2i5Ivr21oGZx0yYuhktf9laywUx8Yw0/9drRpf0 Aenw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CZR5pGxB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e28-v6si972154qte.263.2018.04.24.08.30.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CZR5pGxB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAztV-0003HD-Ff for patch@linaro.org; Tue, 24 Apr 2018 11:30:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznk-0006YI-Vh for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznh-0005Pr-3t for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:16 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:40135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzng-0005O3-UK for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:13 -0400 Received: by mail-wr0-x243.google.com with SMTP id v60-v6so50362877wrc.7 for ; Tue, 24 Apr 2018 08:24: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=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=CZR5pGxBSRZaI/D+cAhsDSRkxgeKXa1YhDZdv5UojoGzj8g/AEQ6r6KzZQe8P2wea5 EpX9wJL77N/XtzozrAX9qqOVAbwAM40dEbPQ8SOX2vkthkUU8e6gdGPoB58gLw+f8l4A QF/e4c698760aclDW99MZSpupQK5CU6J8Go7U= 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=Aq3BXwNARx25ztby3oO9Dmi8umjh3lGwzXi+DBjplmo=; b=Oo/o8dB4QzDERH24674mxOo+Dth82yYoG1XMSPqubiAgZZOp/tusGVOBA0waLKwwYO y4H7XEhy+68sYcy3FlawPvMOJvK0AkmTKGb3u12o+UtkVk4LwIrP5Cn5hYLBLkORZcJW 3BbuiBdH701htgfkDV4vug674dXUoHSJz9MMyGGM6U1cRyilfzu+MP0qt5TaSjRwzSpo TbI5OePAzt1ppiRpEkmn/lJwhAU7K8Sj2TAEbPjbrnYFvtZRhsVD9SC22T1J4NGE4/2H bU4QlUd3hx5mwQjr3aIcTforYYbhMNoV9dlNa40gQPpNGCUea7CC8WNDGudNxc/5xLnU Hl1g== X-Gm-Message-State: ALQs6tB7d+flOwk5N+RmBQp4FCY/zlUIkvERKqGChMhI7uVCRnhSJt1N NszBitxNOGSLN24SQBg8g4ixaA== X-Received: by 2002:adf:ba50:: with SMTP id t16-v6mr17590604wrg.237.1524583451919; Tue, 24 Apr 2018 08:24:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t46-v6sm16725666wrc.95.2018.04.24.08.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D0EE33E0954; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:25 +0100 Message-Id: <20180424152405.10304-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v3 06/46] configure: set cross_cc_FOO for host compiler X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can build tests for the host system with the compiler that we have selected. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- configure | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/configure b/configure index 282e1f1e2b..0100545695 100755 --- a/configure +++ b/configure @@ -1416,26 +1416,38 @@ case "$cpu" in ppc) CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" + cross_cc_powerpc=$cc + cross_cc_cflags_powerpc=$CPU_CFLAGS ;; ppc64) CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" + cross_cc_ppc64=$cc + cross_cc_cflags_ppc64=$CPU_CFLAGS ;; sparc) CPU_CFLAGS="-m32 -mv8plus -mcpu=ultrasparc" LDFLAGS="-m32 -mv8plus $LDFLAGS" + cross_cc_sparc=$cc + cross_cc_cflags_sparc=$CPU_CFLAGS ;; sparc64) CPU_CFLAGS="-m64 -mcpu=ultrasparc" LDFLAGS="-m64 $LDFLAGS" + cross_cc_sparc64=$cc + cross_cc_cflags_sparc64=$CPU_CFLAGS ;; s390) CPU_CFLAGS="-m31" LDFLAGS="-m31 $LDFLAGS" + cross_cc_s390=$cc + cross_cc_cflags_s390=$CPU_CFLAGS ;; s390x) CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" + cross_cc_s390x=$cc + cross_cc_cflags_s390x=$CPU_CFLAGS ;; i386) CPU_CFLAGS="-m32" @@ -1456,7 +1468,7 @@ case "$cpu" in CPU_CFLAGS="-mx32" LDFLAGS="-mx32 $LDFLAGS" cross_cc_i386=$cc - cross_cc_cflags_i386="-m32" + cross_cc_cflags_i386=$CPU_CFLAGS ;; # No special flags required for other host CPUs esac From patchwork Tue Apr 24 15:23:26 2018 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: 134119 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2380854lji; Tue, 24 Apr 2018 08:33:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZopL8hA43/9RSUxV/gPdcLBW7XzcLBIv5nB4LqfzxKUIlfZawQ0/XIsQ8E/SIYXfDD2tGUh X-Received: by 2002:ac8:328b:: with SMTP id z11-v6mr14965912qta.287.1524584007360; Tue, 24 Apr 2018 08:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584007; cv=none; d=google.com; s=arc-20160816; b=aZBjXwt1CVgYEs1tl0cMRYb5AArWRR0bSdKQmv7rTtnVM2QRcu5HYG5wBPANRRgcGm RaF+P5Gbqy2BngEe0N3hcMoT6Wa48wvj3Cqb8XqBVr+sSPkWUGtzv+75KgRkrI02PdTX astqL9V8WC0va00BoCxtgmPk1vTZpHbxik6mZdSny0HqZ5U/hSfxMk+ef3ytkod4W8nA gaEEXtf2kDcLijm7OemUzs0HZUtxbpz6i/GRjw0TG6fcVuf2LlCTTvk6QSDXSg4QoQyw 2QDmyu2+7hxpd2bum+dhQsVnUPvL93+diu3WctBOz7JWg0t7AUiUzn9owl0f+l5ThI5Y nDIw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dcXXN8hWUdy4M+oEE1mgM92raCIviDFH4y+rxUINBG0=; b=ObsppdmBs9BjaV7RUnrznEyOLSGdIEKQ4iGh2D2zP7n0Qff8bsmFho6uOEurToHPEM 9Mfd/FmnI310fZueBr2zYMeFDyRfrIzdcmLYJnksl98nflgJ7McvmmZbIlY902EUHykU huXI+BsEMfYUudx8BhWyDrl3j5yeNEfKefOA8T8Xrx7Xxocsb8MuryEvdtCGzRQXax8I pK7wttEKA9/NqGlykFys7KKCSxNm/wPYFXUF7MQd9I7d0/uvzW3sRyfnBHAlHoRAIm1G QBNcFafkteXM0zEV5TiSMUnpkhQ5fY5VlUEcjmbort+NKib77bGKhSB5HT2GVy8HvbWu 5voQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ce8d8zMW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h11-v6si2376179qtp.105.2018.04.24.08.33.27 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ce8d8zMW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwc-0005gI-Mc for patch@linaro.org; Tue, 24 Apr 2018 11:33:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzno-0006c5-BG for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznm-0005X1-55 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:20 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:35041) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznl-0005VR-Nf for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:18 -0400 Received: by mail-wr0-x244.google.com with SMTP id w3-v6so50366585wrg.2 for ; Tue, 24 Apr 2018 08:24:17 -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=dcXXN8hWUdy4M+oEE1mgM92raCIviDFH4y+rxUINBG0=; b=ce8d8zMWlN+c2g/BDhRIG1qLwfccujtTCmfDKVCV8xN/SIaObB7BsKrp4SMrjhO6a3 H2sRsCefjwyGqUntDEgEENVLcm23W8Q9TJuEI829u3qpLR+xuqHlJmGbWstluy1U0M5q td9D8ZDXOKR+EOfazl/Y8cVV9XloYaZ/Wro6Q= 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=dcXXN8hWUdy4M+oEE1mgM92raCIviDFH4y+rxUINBG0=; b=MZgtWpFZqs7MhwdrZ4g7449wn+XD/10u3RcT8A5T4TkaSCGb1NfpJnZnZUIfZVX57E LSk/eIjFk/CxbU2FLPcwGInSHf4qQc0XEIla1gM5hVoLBKd0Os8X5J96tRzC/ShQrdpm zpk7zYOS5ibGN8dWC9uJwdUT5TYuLe29xXcewcLSalzrUFbWOXJh3AVfe+YK+gZR0eDZ Kd0oUiZ4sUsDp4GllCb6oLbfQJQZE95hXlOoBrVAlGIgt72lYylCRq0AT4bEMbnYbDlm zOJkTV1fbkYE0pfqvBBy43y8DcOpUd28ll0oDqx16XTVFIC6P+CJIy6PWq1E1owpaF8E 64UQ== X-Gm-Message-State: ALQs6tCZJ0GuFBFJOXnnZeKVg42G4FeK9jVKS41vEfGz6jVhcGTg4Noq wML+BjxhwSrNGyuIDSNEDpH+Pg== X-Received: by 2002:adf:b979:: with SMTP id b54-v6mr21693145wrg.265.1524583456581; Tue, 24 Apr 2018 08:24:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u8sm7400015wmf.3.2018.04.24.08.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E63F43E0971; Tue, 24 Apr 2018 16:24:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:26 +0100 Message-Id: <20180424152405.10304-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 07/46] Makefile: Rename TARGET_DIRS to TARGET_LIST X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng To be more accurate on its purpose and make code that looks for a certain target out of this variable more readable. Signed-off-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- Makefile | 20 ++++++++++---------- configure | 2 +- scripts/create_config | 2 +- tests/Makefile.include | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) -- 2.17.0 diff --git a/Makefile b/Makefile index d71dd5bea4..e894431a89 100644 --- a/Makefile +++ b/Makefile @@ -62,8 +62,8 @@ seems to have been used for an in-tree build. You can fix this by running \ endif endif -CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y) -CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y) +CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_LIST)),y) +CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_LIST)),y) CONFIG_XEN := $(CONFIG_XEN_BACKEND) CONFIG_ALL=y -include config-all-devices.mak @@ -362,8 +362,8 @@ DOCS= endif SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet) BUILD_DIR=$(BUILD_DIR) -SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) -SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_DIRS)) +SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_LIST)) +SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %-config-devices.mak.d, $(TARGET_LIST)) ifeq ($(SUBDIR_DEVICES_MAK),) config-all-devices.mak: @@ -466,7 +466,7 @@ config-host.h-timestamp: config-host.mak qemu-options.def: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"GEN","$@") -SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) +SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_LIST)) SOFTMMU_SUBDIR_RULES=$(filter %-softmmu,$(SUBDIR_RULES)) $(SOFTMMU_SUBDIR_RULES): $(block-obj-y) @@ -510,7 +510,7 @@ ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) romsubdir-%: $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/" CFLAGS="$(filter -O% -g%,$(CFLAGS))",) -ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) +ALL_SUBDIRS=$(TARGET_LIST) $(patsubst %,pc-bios/%, $(ROMS)) recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) @@ -763,7 +763,7 @@ distclean: clean rm -f docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.pdf rm -f docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-ref.html rm -f docs/qemu-block-drivers.7 - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ rm -rf $$d || exit 1 ; \ done rm -Rf .sdk @@ -864,7 +864,7 @@ endif $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \ done $(INSTALL_DATA) $(BUILD_DIR)/trace-events-all "$(DESTDIR)$(qemu_datadir)/trace-events-all" - for d in $(TARGET_DIRS); do \ + for d in $(TARGET_LIST); do \ $(MAKE) $(SUBDIR_MAKEFLAGS) TARGET_DIR=$$d/ -C $$d $@ || exit 1 ; \ done @@ -1062,9 +1062,9 @@ endif @echo ' ctags/TAGS - Generate tags file for editors' @echo ' cscope - Generate cscope index' @echo '' - @$(if $(TARGET_DIRS), \ + @$(if $(TARGET_LIST), \ echo 'Architecture specific targets:'; \ - $(foreach t, $(TARGET_DIRS), \ + $(foreach t, $(TARGET_LIST), \ printf " %-30s - Build for %s\\n" $(patsubst %,subdir-%,$(t)) $(t);) \ echo '') @echo 'Cleaning targets:' diff --git a/configure b/configure index 0100545695..6d99d538cd 100755 --- a/configure +++ b/configure @@ -6125,7 +6125,7 @@ qemu_version=$(head $source_path/VERSION) echo "VERSION=$qemu_version" >>$config_host_mak echo "PKGVERSION=$pkgversion" >>$config_host_mak echo "SRC_PATH=$source_path" >> $config_host_mak -echo "TARGET_DIRS=$target_list" >> $config_host_mak +echo "TARGET_LIST=$target_list" >> $config_host_mak if [ "$docs" = "yes" ] ; then echo "BUILD_DOCS=yes" >> $config_host_mak fi diff --git a/scripts/create_config b/scripts/create_config index d727e5e36e..58948a67a4 100755 --- a/scripts/create_config +++ b/scripts/create_config @@ -107,7 +107,7 @@ case $line in target_name=${line#*=} echo "#define TARGET_NAME \"$target_name\"" ;; - TARGET_DIRS=*) + TARGET_LIST=*) # do nothing ;; TARGET_*=y) # configuration diff --git a/tests/Makefile.include b/tests/Makefile.include index 3b9a5e31a2..3d2f0458ab 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -854,7 +854,7 @@ endif # QTest rules -TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS))) +TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_LIST))) ifeq ($(CONFIG_POSIX),y) QTEST_TARGETS = $(TARGETS) check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y)) From patchwork Tue Apr 24 15:23:27 2018 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: 134113 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2373561lji; Tue, 24 Apr 2018 08:27:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqkdNrLBbadR6eyjow3AAbbW3sb5hgGacdv6pPyKEN+V8IasMtzI9LFNqWRt9mP2YFTZ+RX X-Received: by 10.233.216.65 with SMTP id u62mr28240076qkf.133.1524583633184; Tue, 24 Apr 2018 08:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583633; cv=none; d=google.com; s=arc-20160816; b=g+X90jMrdprpE1mMl9eNP3cdEunn86bDAimrwghp/Rnb4XrV+E9dKAoty1/Pj8XWh5 XyqSTvdsBr+1qIz2EzB6JZwGgP8T2jNn6OH+DAc1zDiNLlF7yEan5erHUU8NwT/3fgpf u0WQ91Oj0inM9E0qAvfjlb4hMB9nXhwm/PrlIbA+1b7hr2P0LGTvyiyyKHkealpBtHBd bjyaNpxhx1e/6LBBmwOta1t3oXik7BjG7mtv2Q1/EJ+ORD7s2zr+fknVSMCspfj8kLLK AHntQOvCrzHF+EX3Fr4k9Ty58NxyonzDxlLWwhg1DmkXpjgmIomqYdsxv19XvznYrn7R sYFw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=2bTmo5Z3bqje3uvfKSKg6BbcjFDioLuevJQVtr4gvdc=; b=Wqvx3mHbV8XVHYTNhVTXVFCoc8fIxH+T0OqAWlhgdEtuWIaParMgdNs/zyEPRUdX2l j1hRkBqOBVilTr3vzOYeeGA9WAwTsIGEU0K9ebn0oJz3tNdgYSxHAFwBpTYXoXxjMK+w C4u2qr7iJQFKndJxy+vfx9TXxm84Iplh304T5M6l2rWia50Tn+iReZ9s4iSrA5zkh0dK 93zUvyizgmLb9NRepPUnTamvaezGjQU3O4ojaO5ZOSYTAxojQ85NOaaE6pW6D+k7+e8n KXHzvBu3dsrIAjy/nSI9h5I+TjP35ygcoPG5mCkDESqYRod+rW0YzFFzi1GbZQPPV2u6 fFrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SlzE7rZP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q10-v6si7188589qte.161.2018.04.24.08.27.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SlzE7rZP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzqa-00081m-KN for patch@linaro.org; Tue, 24 Apr 2018 11:27:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznq-0006f4-M2 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznk-0005V7-TU for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:22 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:37633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznk-0005To-Mz for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:16 -0400 Received: by mail-wm0-x241.google.com with SMTP id l16so1563593wmh.2 for ; Tue, 24 Apr 2018 08:24:16 -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=2bTmo5Z3bqje3uvfKSKg6BbcjFDioLuevJQVtr4gvdc=; b=SlzE7rZPBO+dLT5f5yR8NPIUZys6bjBUu3SUoDCmcHCKOSNkgTnJJZ8ntouabxrMfe aGaMJNkNWgthksi0uBPhiYSVpXiiKan0QmSsQzoQn8yucdRnvtAXeNJ0Z8YfVLAk6Gom pmTBheCGLdMIEW5fb1IeV9MafGDqzpBcivItM= 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=2bTmo5Z3bqje3uvfKSKg6BbcjFDioLuevJQVtr4gvdc=; b=p1dyZhbrAnl2EuJboPBuZEkJD4+T8WjIsyLsjZ8owP5LI0nGTyRVJTc2WPmVbdnRyy XnEAaN8zUxKaa9lIZ9bHXEPrVC0oTUN+RQYzXBG92nvGdnIvigB3JAXL8G4wmg5indzX oeCWX+TyAA2J2/2k10Gl7Kycb0fB9dS7w3mZq7/XgCdwCTOXiYnaA4TJMqbqUz0V2xXS /BZZASutP4RBb6ALrphdG5eqoD30vpwgzenE6ld556rT46v7b8mbDqW1SN40OlAi1T76 qjbBdAkwARe++fZU84dfh0sPE1TMA4jQ18wrwtnuK3Lpmf/bwaNjKYipx7+4M84sb1/g 0Jig== X-Gm-Message-State: ALQs6tDTHtWa2LV82H8wph4hjF6I737FLh84a3DwrgZTmt+6QBBnXI4+ fQKP9SqGNLslZ4LsJXYwvqO2Sw== X-Received: by 10.28.136.199 with SMTP id k190mr12837108wmd.154.1524583455717; Tue, 24 Apr 2018 08:24:15 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m83sm11652322wma.17.2018.04.24.08.24.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 041B43E0992; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:27 +0100 Message-Id: <20180424152405.10304-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 08/46] docker: Add "cc" subcommand X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Fam Zheng [AJB: add if args.paths check] Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - add if args.paths check to avoid iterating null argument --- tests/docker/docker.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index f8267586eb..bcc3ee2dee 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -408,6 +408,31 @@ class ProbeCommand(SubCommand): return +class CcCommand(SubCommand): + """Compile sources with cc in images""" + name = "cc" + + def args(self, parser): + parser.add_argument("--image", "-i", required=True, + help="The docker image in which to run cc") + parser.add_argument("--source-path", "-s", nargs="*", dest="paths", + help="""Extra paths to (ro) mount into container for + reading sources""") + + def run(self, args, argv): + if argv and argv[0] == "--": + argv = argv[1:] + cwd = os.getcwd() + cmd = ["--rm", "-w", cwd, + "-v", "%s:%s:rw" % (cwd, cwd)] + if args.paths: + for p in args.paths: + cmd += ["-v", "%s:%s:ro,z" % (p, p)] + cmd += [args.image, "cc"] + cmd += argv + return Docker().command("run", cmd, args.quiet) + + def main(): parser = argparse.ArgumentParser(description="A Docker helper", usage="%s ..." % os.path.basename(sys.argv[0])) From patchwork Tue Apr 24 15:23:28 2018 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: 134122 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2388721lji; Tue, 24 Apr 2018 08:40:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/wFGNjaJc98kEDbeYiwiojjDp4lBa8TQBlVfKZ5/r8uYeV/6R9jogSsC5FiSSBkwhCrhP X-Received: by 2002:ac8:186f:: with SMTP id n44-v6mr26980335qtk.241.1524584440167; Tue, 24 Apr 2018 08:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584440; cv=none; d=google.com; s=arc-20160816; b=j8/8Xc4hhxR6HDfSNWa94yqIeTVbeCk+9IzHmmJmG5YHzpySrVjCEAYQLSanMncq9l KVHQHlgYAT/aUxbGdLAwwtWB7gzi/7gli/8Xl6y6I7B3vcOnBH/9BlIA1o4xOa89WZ5s dk2Y/QbzcScdqExP1OEFHxQPt9NKQG9Yuo+A4eGUDLa1yylwmUNlcYgOqM5w0crp9sV/ lPY3TPLzJjAQUs/FfONxk1vo8arMP0t9IxqKC9ODormXfTfkPdfs0uSaivetT+sQYK8O krhsKglliz/72NblSEWW8ZX+1/2WsaQ20V8+1ZFYNXFP8ICgil7kuUNlzIB4TLtBp8Cd qBYQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=x7M2Pzq2w2scEA4PwPu/ApnyQJUD7IygcWJiS9ptRv1TZgKxD1kyZTfANvyciOHcco taQ9nXLreD61rYzmlKI1e1WjOUhrfnaDSuW7TKK0r6Puy29rgG0SpdTdsaFUIaHJKxe2 1FAPq/H42M81ZaRzKiU/qVoq/6dyafLRNehmE72bCn4MoR/PmkC+4/XyXq00emu1Gn8u EfLg2auZlZLBe/fv06C+UGJ9UgsK1DJ9eqmvdkQHeXrHYJuSGvDl5Af5tnuDGAHAt3M7 8PDSMfNmwM57HkPqVb1Qi3rJxyf9fCZ1xhw4L2BZhdc1/jALP1YqZzc2JvxUED5bjeNF aAzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LQALy3xM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b4si3287035qkb.209.2018.04.24.08.40.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LQALy3xM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB03b-0001v2-I2 for patch@linaro.org; Tue, 24 Apr 2018 11:40:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzno-0006c6-BM for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznn-0005YW-4h for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:20 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:38390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznm-0005XI-UY for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:19 -0400 Received: by mail-wr0-x241.google.com with SMTP id h3-v6so50394275wrh.5 for ; Tue, 24 Apr 2018 08:24:18 -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=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=LQALy3xMBiP+3rZacH23N+cxHrMjpG+sv2Uc0+WJgRdiiXIDYCxEuX9uMxenJeH1+8 1OMTccLZ5YRM9t7CNn15/lH61CEYBy2AssGhLeIkTwcj8jVGKXvKo8tcx8eTkmtQgD0D JEWdVZBhKQItZgdUboMvE1BBVVp21ODVUMw4k= 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=0NSInJZhrOmC3q3A4nal6f/raMjxYjeK2ZWMf0DVRek=; b=e0//2Fxn3r6Yjmi4ADcHLJFw+l1XRPcRFvyx1HNsUmF0SErLU8ds7KcLKhqs0YSmvN EVM6YNFwrzIyoe77KHkiSV1roWE3ZeiwRzfVY/RQ8CccQrRBWinuZpC84dsKj+9Qqyip /7BwBC8o+4EtyV6heDpkIR88nbvdix6Iim6nFzzs0hWRNmxfs0vwHmMjjxAdvreAxUXJ kxZBeY0yCnd0muD5iE61dXSO7jEGsMjG2vwF5DBXGFHZ9OIEfJ3Ff58DrWqkQWutjECd kDujAFa3f5JhBXZy3RdNAxntXtppOE5LBRPIX8IPakalCSd1fyb1QNrPWHY6951SZfhu +6qg== X-Gm-Message-State: ALQs6tBga5exFMGNgohJKfiXdDqC4/octkvakQ2aLsdwjeJCf+VOaMfl 4ELSyOvuagvsVaXl6/3UlApwUw== X-Received: by 2002:adf:b08e:: with SMTP id i14-v6mr22027190wra.9.1524583457955; Tue, 24 Apr 2018 08:24:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u8sm7400062wmf.3.2018.04.24.08.24.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 16F043E09A2; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:28 +0100 Message-Id: <20180424152405.10304-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 09/46] docker: extend "cc" command to accept compiler X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When calling our cross-compilation images we want to call something other than the default cc. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Fam Zheng --- v2 - use arg.cc default to simplify logic --- tests/docker/docker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index bcc3ee2dee..59bce9f19a 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -415,6 +415,8 @@ class CcCommand(SubCommand): def args(self, parser): parser.add_argument("--image", "-i", required=True, help="The docker image in which to run cc") + parser.add_argument("--cc", default="cc", + help="The compiler executable to call") parser.add_argument("--source-path", "-s", nargs="*", dest="paths", help="""Extra paths to (ro) mount into container for reading sources""") @@ -428,7 +430,7 @@ class CcCommand(SubCommand): if args.paths: for p in args.paths: cmd += ["-v", "%s:%s:ro,z" % (p, p)] - cmd += [args.image, "cc"] + cmd += [args.image, args.cc] cmd += argv return Docker().command("run", cmd, args.quiet) From patchwork Tue Apr 24 15:23:29 2018 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: 134115 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2374064lji; Tue, 24 Apr 2018 08:27:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AHkgR52cHVLTv7E3O25JHSXc9F4sU5QYOt30phDXu8nOszhGRPIyGXhN7oYPVtep3j+qr X-Received: by 2002:ac8:710b:: with SMTP id z11-v6mr27346983qto.112.1524583661696; Tue, 24 Apr 2018 08:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583661; cv=none; d=google.com; s=arc-20160816; b=uh8umiq2GDkxRvd4wpJNOmAYA3qo3p1Im2RaHXvyP9SZFcDx6isbGxI5Q+Qte2g6pZ 4/OxtKizQR/riru6CaR94pUHiKM5rH6yF/Qam8I7QRSg8hqWEJricbEncEod1t9g0FcT GZH87ryT4bFUBKzn3fakhY00boGiseRT0Mji5FixDIM1359NlUGxZw2MUIT7QTR60pEm G6KN/AkFwYsGttiXOeuPcCmn7PCwhpjjRkCOKzfCTHAqJNw3X7PvWHP1CqddQwpKPLE5 ih4TO7jcootY8ujre8qtoRyI1/Dp5D5IDtDYczEebvAZ5fJZ6/DsHhInzs9QKaxoHkkA JuqQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=DtL/Vx44jBfma+R/GRK1qFuXXEv6DxSq+MCYDmiYhl2GEK+oi3hTBVRbFwWQiBz9TF 9jT+JvHktOTyv8p9aWWyMTcenumnp22TmkfD93npwdwhAKUA9IeEBbU7sJDd2lTx0l3F oAWUNUL16ksKRCrxZYM/moF2JX4tlDYrpqd2mAxJm1dFmD3q14IXrPv/SihoaR9ZMOqF MXHVal55CAoxWFXQdC+2aG78PjfDh0g8D6Ex9pHc3fWJoNSYykB8bkB4wHAlJUw2nRsR RZNJUZZpKQH++neVi3dHlE3e/2ma4Ot8l9JqghBxKBbq8O7DoUTr+HuFXi6a778UUflM n9fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ggl33Qpq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p12si827535qvl.241.2018.04.24.08.27.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:27:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ggl33Qpq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzr3-00010V-1F for patch@linaro.org; Tue, 24 Apr 2018 11:27:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznr-0006fL-00 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznq-0005ey-3n for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:22 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:40138) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznp-0005cr-TF for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:22 -0400 Received: by mail-wr0-x244.google.com with SMTP id v60-v6so50363420wrc.7 for ; Tue, 24 Apr 2018 08:24:21 -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=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=Ggl33QpqG0FgxhCsFY5tlx/BuA3m50h8z68TKLYCHbRj9alA/2rsmNHhK9HXvORyAy mzfuO6zuHjltI6GgOSN3uynUqFOOG1Bc+CBb+Iy6c71cD2h+lOQN0FtJ6TNIAjoHIdNc FUy2oPyDqBtMxXJLlH3wKkJD+y/Y1AKK/AN6k= 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=yx5ucHfklmdWD5NFIiC6j32FmmfKfpWkJIX7Slm13Jo=; b=ij+6T7LAnAPWTD9CGmiwX9zpL7hBYYxAEjEx0hj0pc/DoFFAYAGlZbF3Ojd33SS1tj JC01iqFPDOhojyH2rZ2S4/fSTH1HCarlqsLcj021xUja2Pw9Z0DmxNvF/b+cVlrI5xyv TWUVbc6xKVV0B9Ts6gsnu6q0UWWtYytMn17aHOA2au49ftQXyksxpVJfMFPeZQ0pg0Ru iAxQ286etLyZOQLt8kp5VNu19nt6d9MWh/gjNQSoeWQZ0Cnm7ikqyj1mUp0wUSyMgJDT KqhPp0rfo2aF1XMd78Idnw4BGQjZGHCzi4+ACxyJwxAuKzFTM0qda5PysU+kKQBAowDE DQOw== X-Gm-Message-State: ALQs6tCh7EvXjg1hW2d3pDVrw09aul6llFjfys46sbzcfQL1DRLqIq0g VZtKH+YOtH8W05NYzWcEiHvzOw== X-Received: by 2002:adf:b0c1:: with SMTP id j1-v6mr19561565wra.3.1524583460880; Tue, 24 Apr 2018 08:24:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d7-v6sm13537197wrj.26.2018.04.24.08.24.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 293913E09A8; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:29 +0100 Message-Id: <20180424152405.10304-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 10/46] docker: allow "cc" command to run in user context X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée Reviewed-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/docker/docker.py | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.0 diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 59bce9f19a..37bfa98005 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -417,6 +417,8 @@ class CcCommand(SubCommand): help="The docker image in which to run cc") parser.add_argument("--cc", default="cc", help="The compiler executable to call") + parser.add_argument("--user", + help="The user-id to run under") parser.add_argument("--source-path", "-s", nargs="*", dest="paths", help="""Extra paths to (ro) mount into container for reading sources""") @@ -430,6 +432,8 @@ class CcCommand(SubCommand): if args.paths: for p in args.paths: cmd += ["-v", "%s:%s:ro,z" % (p, p)] + if args.user: + cmd += ["-u", args.user] cmd += [args.image, args.cc] cmd += argv return Docker().command("run", cmd, args.quiet) From patchwork Tue Apr 24 15:23:30 2018 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: 134121 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2387390lji; Tue, 24 Apr 2018 08:39:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/xauoVnXA+TioXzp6K3FQdoToWHC8QhPoWU0zHra/kU23F/eyWZLftbjmGLDSGEBE5S0n9 X-Received: by 2002:ac8:1b43:: with SMTP id p3-v6mr28486626qtk.254.1524584368115; Tue, 24 Apr 2018 08:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584368; cv=none; d=google.com; s=arc-20160816; b=qcLO5xA0JWJgWDdllZDd5zO1JDvqDGxq5UQIIG56/duUcjfkB2zTNnth5toX9MWye9 GpiH8QcpwB4Mn1f9nzAoNxfq2Gu6Yuu/KHLRig0++BfbshiIYWyvVIhl0oSKSdRY3IFD s1lX/cM6z8gThwqDg6sSB8UmK4iBoQcTjWLcM/JujJ6PVCK0cCcEUrF8n5ern/+ElvjG mu+DTLKivMxQHVeMOOqAa3QgWLdLVpgXfRwzUowgOAtLosAo02njiFTn5DPmlvnFg8zY IWl1Ak1iUPMvBQ+UTy2zOJRw4E02B5IKhYhX6GI3gczYvXtnkVUxcrpIz0cHfyRyodNp hSjA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Txa5dWaw6rpku3w/i3TgIXvc5LO3CkoCTj1w4cH/zrg=; b=NxCgYxEuFaQ4ys9+wDTD1dOvLwzxRYYq9AscEGQfEBna5XK8YzyhICJ19imUeILOuE 65dJ1dQyMPQZ+FDVw/VYbHTNw6LE6nYTkg2+1tcafg0jb5VzzWC/k33NhEJflN9RJhk6 /38E4GQPvlFIVOus5wBSefsIt11ntNMVd0Vi8C6eFKzUm/wA8uDHldML/fC3xkqXvvuB kgi4jhVX9SS9XSj6wksbQp1wBV8o6wJ8JQMgXCtGvPb2Zm3TpG7bVJEWYnf9qEKVn5+6 aR1ubEIDQHmEIu6L7CowNVDN6PfqATfRopyh/bHX3uWfLEocqjf4mNJmXGrKJPRwjjxE 0k/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=V6oEtlPs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 23-v6si1343587qtx.267.2018.04.24.08.39.27 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=V6oEtlPs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB02R-0000zA-H7 for patch@linaro.org; Tue, 24 Apr 2018 11:39:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznp-0006dD-9H for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzno-0005af-7N for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:21 -0400 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:42963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzno-0005Yt-1K for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:20 -0400 Received: by mail-wr0-x234.google.com with SMTP id s18-v6so50360486wrg.9 for ; Tue, 24 Apr 2018 08:24:19 -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=Txa5dWaw6rpku3w/i3TgIXvc5LO3CkoCTj1w4cH/zrg=; b=V6oEtlPsP7/ZffwZrgG/FWzOiA4Ia22ClHxNhibTDyOeZ1fP4D2V6g2XDMYaPaKZjc TWXVXKp8mRvGkIZQGBZkUIZ51F5bs9ZPOgr810sdxU7RupUMMA5flqZqwIURrA9eUxPH owQHv9fi1s/Pu/iPKC/eaUFc6y8ImCkGYm1lE= 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=Txa5dWaw6rpku3w/i3TgIXvc5LO3CkoCTj1w4cH/zrg=; b=P4Jcl3wHXEITt6DCqlyxrQoSAClTesOV7b2DhSN27JVW082ryRhYy5OWaLEKbb7G4W Oh+NtVhPxj33Ti1fEOTJdweAxWYVnMV67DImg0OB9LOIJBzEIwp2kCzvSGB7D6ZQjqyT pa+Qdl8jULQIIHLDPNIqlChX1Zl6OV4oCfLxUKt+LSlGUYCxENp4mOLfKbmbb2N6Eprx onVdy2U9hw3C0s4Lo39se21v6DpxO3LMKoJg9L8dvsb3pStj/52uQb6MFT5e4H6SrowE OygJ6IjFwt2qSs6O2zn5wsO7wATzFqBLZqTZE/eDZ0sd++x2RuQ7MA8Kq9b+Ky0S/oxO NC9Q== X-Gm-Message-State: ALQs6tAQ74PPrU1Gp1lacqfQaAq6ds1y3CZBzOnGPKF0g4F1XBFBkkVe ZqdN/N1arHjSZfp43e6zJ5JMSA== X-Received: by 2002:adf:d207:: with SMTP id g7-v6mr20486046wri.59.1524583458975; Tue, 24 Apr 2018 08:24:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k184sm8903706wmk.21.2018.04.24.08.24.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3B8A43E0A07; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:30 +0100 Message-Id: <20180424152405.10304-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 Subject: [Qemu-devel] [PATCH v3 11/46] docker: Makefile.include introduce DOCKER_SCRIPT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Define this in one place to make it easy to re-use. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index de87341528..6a5aa9ec71 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -14,6 +14,8 @@ DOCKER_TESTS := $(notdir $(shell \ DOCKER_TOOLS := travis +DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py + TESTS ?= % IMAGES ?= % @@ -37,7 +39,7 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker echo WARNING: EXECUTABLE is not set, debootstrap may fail. 2>&1 ; \ fi $(call quiet-command,\ - $(SRC_PATH)/tests/docker/docker.py build qemu:$* $< \ + $(DOCKER_SCRIPT) build qemu:$* $< \ $(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \ $(if $(NOUSER),,--add-current-user) \ $(if $(EXTRA_FILES),--extra-files $(EXTRA_FILES))\ @@ -129,11 +131,11 @@ docker-run: docker-qemu-src fi $(if $(EXECUTABLE), \ $(call quiet-command, \ - $(SRC_PATH)/tests/docker/docker.py update \ + $(DOCKER_SCRIPT) update \ $(IMAGE) $(EXECUTABLE), \ " COPYING $(EXECUTABLE) to $(IMAGE)")) $(call quiet-command, \ - $(SRC_PATH)/tests/docker/docker.py run \ + $(DOCKER_SCRIPT) run \ $(if $(NOUSER),,-u $(shell id -u)) \ --security-opt seccomp=unconfined \ $(if $V,,--rm) \ @@ -163,4 +165,4 @@ docker-run-%: @$(MAKE) docker-run TEST=$(CMD) IMAGE=qemu:$(IMAGE) docker-clean: - $(call quiet-command, $(SRC_PATH)/tests/docker/docker.py clean) + $(call quiet-command, $(DOCKER_SCRIPT) clean) From patchwork Tue Apr 24 15:23:31 2018 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: 134125 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2396214lji; Tue, 24 Apr 2018 08:47:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3nr9zvHoTF6i1Qck7obaeYS9aDJst1FZdPVHrn3ypmdr1/EDhUPLh9hGbB1tppwlnG0tw X-Received: by 2002:ac8:e8a:: with SMTP id v10-v6mr28239920qti.376.1524584831486; Tue, 24 Apr 2018 08:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584831; cv=none; d=google.com; s=arc-20160816; b=jWvs3Lpf5jF6j4ymbxbG5Wpyctea87ovPYaWu1abjRolXV5tHkCpI2N1ZYAyqiXW2d DvmiDUOONeue1aqJXONROQ2zcV6bUnnOXgKnU2MuP/su2vxMkZX4bmQRad4ANptO1Joi C3xxNAR+isWloiEdM9vtsItnvRm11iiq0rSPTlJ2sd6MN6V60Ho+lLSR/dlXRxf7igVC kdHPBUd0wyo1CRp4xWpC8hjX5xBkYndMQ/Qh0wFJB2eds+NVwFtauWvSOrT/UrQCz4dP Zunf4bZL27iqduytRMdWrb9gQqC/UOf4iCDjbPLol1W8PLej3N7CKu/VpfTD2A7B+eL/ GJDw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=JGSt4+ZR5UK2+mwnsY35zlQGy6qH2UTAla9NTNrS5oQ=; b=Hjf6dDgf+NF/qA7BJarPs2P4WNkak9kl1ZNDmTFjGpKLdCAamToNLiK4WXoyFd5op/ YMYQdb9FIVvoco8XjqjfiHCzIipj0LmcebpZ3NB17fuzwBDl3Q81uyhhv7YmI01KnE90 FnEMygnjqsUM6zV7CiqcFNJ8uIvA+WfScf/voH8GUUaAQmiX3gCC2Zxb2AuAtCumb185 vzYmQCOYNrevKxZa+M85SMKXO41slCTvkWRgFi3Cz5fDLW5rlXDTjG80JxDA9RgUdqrt MOF1QcayC//oU2layX6LqQ0FqZx0jiWiU8DVRISxFM/4s/aoE/3W61294QZzG3Yuh5zZ YTHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QObl7o82; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q8si1119037qkl.53.2018.04.24.08.47.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QObl7o82; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB09u-0008Be-TN for patch@linaro.org; Tue, 24 Apr 2018 11:47:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznr-0006fw-Lw for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznp-0005db-Ie for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:23 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:53498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznp-0005bd-95 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:21 -0400 Received: by mail-wm0-x241.google.com with SMTP id 66so1797047wmd.3 for ; Tue, 24 Apr 2018 08:24:21 -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=JGSt4+ZR5UK2+mwnsY35zlQGy6qH2UTAla9NTNrS5oQ=; b=QObl7o82wiUKlCQbtiKK5MYC6KrcyltqmSJRSoneRDxrsS2JwY6FGGCrhhM2OvtxAF KPGXjoahfEORPyL2YqOkYEkC9LinXytVEglAxoFI+wr/XDrGm7oaGCqzkXXCuDCWTT/P sd/o59em6mxws1dXmmkoI/fnk3/WUH/dn29jM= 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=JGSt4+ZR5UK2+mwnsY35zlQGy6qH2UTAla9NTNrS5oQ=; b=CTy5siZsG1zVKwouh5w4tzJJcyaqy+Hidta60OVTUZ1DecmNZ3f41KWsW5i7TwsQ/G MI4p8XXQpU5FQWXpBLUyvHloRTjh5/mWowMd1lfCFFVcolvbugH7uolAF40sGFfYhQfV whXp9t4PDjBB2Kwh3c8dA/43JWjMAzjl46fhx2KpAFt8Vax+fQcqFY+tCtJOKp/lZadN X1ThftRO/amQbyS/mKtAIny9jNreLQoR/4BOe/zW608qiVm+xsQsotfOnJfpEgFWizwO CrOP9HaJX4wXmq+Mbt66zXFGqA6GjUyEiDdkeh9RsruRiPELCROcQggLztX7VN2+mMLg PqqA== X-Gm-Message-State: ALQs6tA9WKXlNy3ZT/twdwEoHet0BqCZUHzm/PY2igA8hmGrIP74Um88 NkHXm55+RqwIfJNYsarDcvCmCQ== X-Received: by 10.28.31.19 with SMTP id f19mr11842414wmf.73.1524583460010; Tue, 24 Apr 2018 08:24:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m15-v6sm4298549wri.8.2018.04.24.08.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:13 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 533553E0A0E; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:31 +0100 Message-Id: <20180424152405.10304-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 12/46] tests/tcg: move architecture independent tests into subdir X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We will want to build these for all supported guest architectures so lets move them all into one place. We also drop test_path at this point because it needs qemu utils and glib bits which is hard to support for cross compiling. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- v2 - move VPATH and TESTs setup into multiarch/Makefile.target - remove moved bits from tests/tcg/Makefile v3 - use LDFLAGS+= for testthread linking --- tests/tcg/Makefile | 31 ----- tests/tcg/README | 10 +- tests/tcg/multiarch/Makefile.target | 29 +++++ tests/tcg/multiarch/README | 1 + tests/tcg/{ => multiarch}/linux-test.c | 0 tests/tcg/{ => multiarch}/sha1.c | 0 tests/tcg/{ => multiarch}/test-mmap.c | 0 tests/tcg/{ => multiarch}/testthread.c | 0 tests/tcg/test_path.c | 157 ------------------------- 9 files changed, 34 insertions(+), 194 deletions(-) create mode 100644 tests/tcg/multiarch/Makefile.target create mode 100644 tests/tcg/multiarch/README rename tests/tcg/{ => multiarch}/linux-test.c (100%) rename tests/tcg/{ => multiarch}/sha1.c (100%) rename tests/tcg/{ => multiarch}/test-mmap.c (100%) rename tests/tcg/{ => multiarch}/testthread.c (100%) delete mode 100644 tests/tcg/test_path.c -- 2.17.0 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 89e3342f3d..e12395117a 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -18,12 +18,9 @@ LDFLAGS= # also, pi_10.com runs indefinitely I386_TESTS=hello-i386 \ - linux-test \ - testthread \ sha1-i386 \ test-i386 \ test-i386-fprem \ - test-mmap \ # runcom # native i386 compilers sometimes are not biarch. assume cross-compilers are @@ -47,8 +44,6 @@ run-%: % -$(QEMU) ./$* run-hello-i386: hello-i386 -run-linux-test: linux-test -run-testthread: testthread run-sha1-i386: sha1-i386 run-test-i386: test-i386 @@ -66,11 +61,6 @@ run-test-x86_64: test-x86_64 -$(QEMU_X86_64) test-x86_64 > test-x86_64.out @if diff -u test-x86_64.ref test-x86_64.out ; then echo "Auto Test OK"; fi -run-test-mmap: test-mmap - -$(QEMU) ./test-mmap - -$(QEMU) -p 8192 ./test-mmap 8192 - -$(QEMU) -p 16384 ./test-mmap 16384 - -$(QEMU) -p 32768 ./test-mmap 32768 run-runcom: runcom -$(QEMU) ./runcom $(SRC_PATH)/tests/pi_10.com @@ -80,17 +70,10 @@ run-test_path: test_path # rules to compile tests -test_path: test_path.o - -test_path.o: test_path.c - hello-i386: hello-i386.c $(CC_I386) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $< strip $@ -testthread: testthread.c - $(CC_I386) $(CFLAGS) $(LDFLAGS) -o $@ $< -lpthread - # i386/x86_64 emulation test (test various opcodes) */ test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ test-i386.h test-i386-shift.h test-i386-muldiv.h @@ -104,28 +87,14 @@ test-x86_64: test-i386.c \ test-i386.h test-i386-shift.h test-i386-muldiv.h $(CC_X86_64) $(QEMU_INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@ $( test-mmap.out, "TEST", "$< (default) on $(TARGET_NAME)") + $(call quiet-command, $(QEMU) -p 8192 $< 8192 > test-mmap-8192.out, "TEST", "$< (8k pages) on $(TARGET_NAME)") + $(call quiet-command, $(QEMU) -p 16384 $< 16384 > test-mmap-16384.out, "TEST", "$< (16k pages) on $(TARGET_NAME)") + $(call quiet-command, $(QEMU) -p 32768 $< 32768 > test-mmap-32768.out, "TEST", "$< (32k pages) on $(TARGET_NAME)") diff --git a/tests/tcg/multiarch/README b/tests/tcg/multiarch/README new file mode 100644 index 0000000000..522c9d2ea3 --- /dev/null +++ b/tests/tcg/multiarch/README @@ -0,0 +1 @@ +Multi-architecture linux-user tests diff --git a/tests/tcg/linux-test.c b/tests/tcg/multiarch/linux-test.c similarity index 100% rename from tests/tcg/linux-test.c rename to tests/tcg/multiarch/linux-test.c diff --git a/tests/tcg/sha1.c b/tests/tcg/multiarch/sha1.c similarity index 100% rename from tests/tcg/sha1.c rename to tests/tcg/multiarch/sha1.c diff --git a/tests/tcg/test-mmap.c b/tests/tcg/multiarch/test-mmap.c similarity index 100% rename from tests/tcg/test-mmap.c rename to tests/tcg/multiarch/test-mmap.c diff --git a/tests/tcg/testthread.c b/tests/tcg/multiarch/testthread.c similarity index 100% rename from tests/tcg/testthread.c rename to tests/tcg/multiarch/testthread.c diff --git a/tests/tcg/test_path.c b/tests/tcg/test_path.c deleted file mode 100644 index 1c29bce263..0000000000 --- a/tests/tcg/test_path.c +++ /dev/null @@ -1,157 +0,0 @@ -/* Test path override code */ -#include "config-host.h" -#include "util/cutils.c" -#include "util/hexdump.c" -#include "util/iov.c" -#include "util/path.c" -#include "util/qemu-timer-common.c" -#include -#include -#include - -void qemu_log(const char *fmt, ...); - -/* Any log message kills the test. */ -void qemu_log(const char *fmt, ...) -{ - va_list ap; - - fprintf(stderr, "FATAL: "); - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - exit(1); -} - -#define NO_CHANGE(_path) \ - do { \ - if (strcmp(path(_path), _path) != 0) return __LINE__; \ - } while(0) - -#define CHANGE_TO(_path, _newpath) \ - do { \ - if (strcmp(path(_path), _newpath) != 0) return __LINE__; \ - } while(0) - -static void cleanup(void) -{ - unlink("/tmp/qemu-test_path/DIR1/DIR2/FILE"); - unlink("/tmp/qemu-test_path/DIR1/DIR2/FILE2"); - unlink("/tmp/qemu-test_path/DIR1/DIR2/FILE3"); - unlink("/tmp/qemu-test_path/DIR1/DIR2/FILE4"); - unlink("/tmp/qemu-test_path/DIR1/DIR2/FILE5"); - rmdir("/tmp/qemu-test_path/DIR1/DIR2"); - rmdir("/tmp/qemu-test_path/DIR1/DIR3"); - rmdir("/tmp/qemu-test_path/DIR1"); - rmdir("/tmp/qemu-test_path"); -} - -static unsigned int do_test(void) -{ - if (mkdir("/tmp/qemu-test_path", 0700) != 0) - return __LINE__; - - if (mkdir("/tmp/qemu-test_path/DIR1", 0700) != 0) - return __LINE__; - - if (mkdir("/tmp/qemu-test_path/DIR1/DIR2", 0700) != 0) - return __LINE__; - - if (mkdir("/tmp/qemu-test_path/DIR1/DIR3", 0700) != 0) - return __LINE__; - - if (close(creat("/tmp/qemu-test_path/DIR1/DIR2/FILE", 0600)) != 0) - return __LINE__; - - if (close(creat("/tmp/qemu-test_path/DIR1/DIR2/FILE2", 0600)) != 0) - return __LINE__; - - if (close(creat("/tmp/qemu-test_path/DIR1/DIR2/FILE3", 0600)) != 0) - return __LINE__; - - if (close(creat("/tmp/qemu-test_path/DIR1/DIR2/FILE4", 0600)) != 0) - return __LINE__; - - if (close(creat("/tmp/qemu-test_path/DIR1/DIR2/FILE5", 0600)) != 0) - return __LINE__; - - init_paths("/tmp/qemu-test_path"); - - NO_CHANGE("/tmp"); - NO_CHANGE("/tmp/"); - NO_CHANGE("/tmp/qemu-test_path"); - NO_CHANGE("/tmp/qemu-test_path/"); - NO_CHANGE("/tmp/qemu-test_path/D"); - NO_CHANGE("/tmp/qemu-test_path/DI"); - NO_CHANGE("/tmp/qemu-test_path/DIR"); - NO_CHANGE("/tmp/qemu-test_path/DIR1"); - NO_CHANGE("/tmp/qemu-test_path/DIR1/"); - - NO_CHANGE("/D"); - NO_CHANGE("/DI"); - NO_CHANGE("/DIR"); - NO_CHANGE("/DIR2"); - NO_CHANGE("/DIR1."); - - CHANGE_TO("/DIR1", "/tmp/qemu-test_path/DIR1"); - CHANGE_TO("/DIR1/", "/tmp/qemu-test_path/DIR1"); - - NO_CHANGE("/DIR1/D"); - NO_CHANGE("/DIR1/DI"); - NO_CHANGE("/DIR1/DIR"); - NO_CHANGE("/DIR1/DIR1"); - - CHANGE_TO("/DIR1/DIR2", "/tmp/qemu-test_path/DIR1/DIR2"); - CHANGE_TO("/DIR1/DIR2/", "/tmp/qemu-test_path/DIR1/DIR2"); - - CHANGE_TO("/DIR1/DIR3", "/tmp/qemu-test_path/DIR1/DIR3"); - CHANGE_TO("/DIR1/DIR3/", "/tmp/qemu-test_path/DIR1/DIR3"); - - NO_CHANGE("/DIR1/DIR2/F"); - NO_CHANGE("/DIR1/DIR2/FI"); - NO_CHANGE("/DIR1/DIR2/FIL"); - NO_CHANGE("/DIR1/DIR2/FIL."); - - CHANGE_TO("/DIR1/DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/DIR2/FILE2", "/tmp/qemu-test_path/DIR1/DIR2/FILE2"); - CHANGE_TO("/DIR1/DIR2/FILE3", "/tmp/qemu-test_path/DIR1/DIR2/FILE3"); - CHANGE_TO("/DIR1/DIR2/FILE4", "/tmp/qemu-test_path/DIR1/DIR2/FILE4"); - CHANGE_TO("/DIR1/DIR2/FILE5", "/tmp/qemu-test_path/DIR1/DIR2/FILE5"); - - NO_CHANGE("/DIR1/DIR2/FILE6"); - NO_CHANGE("/DIR1/DIR2/FILE/X"); - - CHANGE_TO("/DIR1/../DIR1", "/tmp/qemu-test_path/DIR1"); - CHANGE_TO("/DIR1/../DIR1/", "/tmp/qemu-test_path/DIR1"); - CHANGE_TO("/../DIR1", "/tmp/qemu-test_path/DIR1"); - CHANGE_TO("/../DIR1/", "/tmp/qemu-test_path/DIR1"); - CHANGE_TO("/DIR1/DIR2/../DIR2", "/tmp/qemu-test_path/DIR1/DIR2"); - CHANGE_TO("/DIR1/DIR2/../DIR2/../../DIR1/DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/DIR2/../DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - - NO_CHANGE("/DIR1/DIR2/../DIR1"); - NO_CHANGE("/DIR1/DIR2/../FILE"); - - CHANGE_TO("/./DIR1/DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/././DIR1/DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/./DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/././DIR2/FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/DIR2/./FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/DIR1/DIR2/././FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - CHANGE_TO("/./DIR1/./DIR2/./FILE", "/tmp/qemu-test_path/DIR1/DIR2/FILE"); - - return 0; -} - -int main(int argc, char *argv[]) -{ - int ret; - - ret = do_test(); - cleanup(); - if (ret) { - fprintf(stderr, "test_path: failed on line %i\n", ret); - return 1; - } - return 0; -} From patchwork Tue Apr 24 15:23:32 2018 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: 134138 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2428619lji; Tue, 24 Apr 2018 09:15:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrSAqpEA1GT29BFF3Q63J4VSVh3IWJVXa5sZoFDPPrrNzEmbmzCJQ4QixKj3LMhjnOtM4gf X-Received: by 10.55.20.103 with SMTP id e100mr28450351qkh.6.1524586513503; Tue, 24 Apr 2018 09:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586513; cv=none; d=google.com; s=arc-20160816; b=DBXcE8gk2SeKkuCTCzwjMkTfKJGfFMBjMWi4V6pel2JsJxfkNHNaq9G2NnqvN2tK+G Dbz4/halISwTumHra5sPbZGnb7kWFW0OdvXxX+LDnJjaZCUGTk70d8Wrmg5EE2uMyC66 Pxt4u/hh1qBTcZTJlIBx00TDCqTo4AnzRivXpFfEo3VMkhTZfzTavOJW0Lnut7Qw/fPv 6d2CN6fZq0WTYIsGvXaOSewaAm3lSGrK90NoAApu3AoB12Xa2Qvpe9jWblWwff8QKMd2 5+opTmzntR0L0TJd4UGB/XHVkkyGGgop45kG4SIXxa5vGTyMsdpRpewbDfgsosLAz+K1 tOaA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=EiFcVfhMjf9AXXl4rTHN8NJQbIPZJGrxc0yc25niYXM=; b=GdvHHK2bIbfJRE0VVtPpZsTMt4O/XeO8Fu+zot6+5XUIsNy1nMYSs6oWKfqhoFyl2J 7kH/49giWdkHXis4870zSw+x9EzHEL9PtvlN//S0MxaDQRwJtoIguIcdeqkjFUwU8xch EQOQKjWGp3lIpHfn2CVacz0syQs6YesYEI3cwxP5cQ6jZ+E+yIK42F0NcTsUypt/svB5 EhOtx5pvhsSfUcCFMxNe5hU3PReBptfF0lelVsUgt0JW8cF4DvmYssK+hfwcusVWrxVf LD4dxR2PnpEjuDzU/p+Nhdz7WwpvNldwwxVVYO/z23QqYSxS1UCUPtsi0XJiGgoRBvRc Ds6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gpLZpS54; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p52-v6si535323qtc.122.2018.04.24.09.15.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:15:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gpLZpS54; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0b2-0005jF-T6 for patch@linaro.org; Tue, 24 Apr 2018 12:15:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06J-0005PX-MN for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06E-0000j5-GB for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:27 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:35177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06E-0000ic-6M for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:22 -0400 Received: by mail-wr0-x243.google.com with SMTP id w3-v6so50431872wrg.2 for ; Tue, 24 Apr 2018 08:43:22 -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=EiFcVfhMjf9AXXl4rTHN8NJQbIPZJGrxc0yc25niYXM=; b=gpLZpS54gmYRnqFTG4dmzMtPkUIxna9R1Smj2lIq0Z62dSlM/z74wBnxO4jeNeL+ff cqlpzq8U5xTWwqSeRqI49Sz7vdtOcTfmJu4MsTjw58aUNHRV7EcNz+IguugfjXGjddiT vMJergS1VjQVVGYCU0sYjn+Fn+78bfyA74/WY= 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=EiFcVfhMjf9AXXl4rTHN8NJQbIPZJGrxc0yc25niYXM=; b=Ny/hGlIapIGR5MVL+3CmjfUry1rKVjSA/y7zc/H2sEXq4E72C4Nf6QLHagwsMHT0P/ 1OmCsa0bwNTY5vj9M/flPlf2BoqWvMLZVVzI/AU4DsRgMSSF+xTDbGjlA7eDizXOdLSU ITOaq371kF6quMv9qebVzEOcye34VTmTxcnTY7WIXDDkBgrVdUu+wJfKORTODeWdM/b+ V3kVveLaxHLZ3+05Q4yCuzhMuU2+NG6pgvVkKBwOy5KjVXTvpL2ZW/T7WsSXYVw2RoVb QDHNuAYon9whJlD3xYFS/2C8hPh3lYLrUqZVtW1rGK3sgTWJpxqesW2l8o6j47SPufSw 6vyA== X-Gm-Message-State: ALQs6tDPm8iXxfThC8TZBzfMp0uYI/O8FwN5MN1oDnMwlFRFfIlzT3nB XalWwz4KJS1LTtzDmqUReHKEIQ== X-Received: by 2002:adf:8425:: with SMTP id 34-v6mr21863344wrf.254.1524584601024; Tue, 24 Apr 2018 08:43:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t130sm10406118wmt.0.2018.04.24.08.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 65C113E0A5F; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:32 +0100 Message-Id: <20180424152405.10304-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v3 13/46] tests/tcg/multiarch: Build fix for linux-test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng To keep the compiler happy, and to fit in our buildsys flags: - Make local functions "static" - #ifdef out unused functions - drop cutils/osdep dependencies Signed-off-by: Fam Zheng [AJB: drop cutils/osdep dependencies] Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth --- tests/tcg/multiarch/linux-test.c | 68 ++++++++++---------------------- 1 file changed, 21 insertions(+), 47 deletions(-) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c index 5070d31446..4457bd04ba 100644 --- a/tests/tcg/multiarch/linux-test.c +++ b/tests/tcg/multiarch/linux-test.c @@ -16,7 +16,6 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ -#define _GNU_SOURCE #include #include #include @@ -31,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -39,13 +39,12 @@ #include #include #include -#include "qemu/cutils.h" #define TESTPATH "/tmp/linux-test.tmp" #define TESTPORT 7654 #define STACK_SIZE 16384 -void error1(const char *filename, int line, const char *fmt, ...) +static void error1(const char *filename, int line, const char *fmt, ...) { va_list ap; va_start(ap, fmt); @@ -56,7 +55,7 @@ void error1(const char *filename, int line, const char *fmt, ...) exit(1); } -int __chk_error(const char *filename, int line, int ret) +static int __chk_error(const char *filename, int line, int ret) { if (ret < 0) { error1(filename, line, "%m (ret=%d, errno=%d)", @@ -73,7 +72,7 @@ int __chk_error(const char *filename, int line, int ret) #define FILE_BUF_SIZE 300 -void test_file(void) +static void test_file(void) { int fd, i, len, ret; uint8_t buf[FILE_BUF_SIZE]; @@ -210,7 +209,7 @@ void test_file(void) chk_error(rmdir(TESTPATH)); } -void test_fork(void) +static void test_fork(void) { int pid, status; @@ -224,7 +223,7 @@ void test_fork(void) error("waitpid status=0x%x", status); } -void test_time(void) +static void test_time(void) { struct timeval tv, tv2; struct timespec ts, rem; @@ -251,34 +250,7 @@ void test_time(void) error("getrusage"); } -void pstrcpy(char *buf, int buf_size, const char *str) -{ - int c; - char *q = buf; - - if (buf_size <= 0) - return; - - for(;;) { - c = *str++; - if (c == 0 || q >= buf + buf_size - 1) - break; - *q++ = c; - } - *q = '\0'; -} - -/* strcat and truncate. */ -char *pstrcat(char *buf, int buf_size, const char *s) -{ - int len; - len = strlen(buf); - if (len < buf_size) - pstrcpy(buf + len, buf_size - len, s); - return buf; -} - -int server_socket(void) +static int server_socket(void) { int val, fd; struct sockaddr_in sockaddr; @@ -298,7 +270,7 @@ int server_socket(void) } -int client_socket(void) +static int client_socket(void) { int fd; struct sockaddr_in sockaddr; @@ -312,9 +284,9 @@ int client_socket(void) return fd; } -const char socket_msg[] = "hello socket\n"; +static const char socket_msg[] = "hello socket\n"; -void test_socket(void) +static void test_socket(void) { int server_fd, client_fd, fd, pid, ret, val; struct sockaddr_in sockaddr; @@ -348,9 +320,10 @@ void test_socket(void) chk_error(close(server_fd)); } +#if 0 #define WCOUNT_MAX 512 -void test_pipe(void) +static void test_pipe(void) { fd_set rfds, wfds; int fds[2], fd_max, ret; @@ -391,10 +364,10 @@ void test_pipe(void) chk_error(close(fds[1])); } -int thread1_res; -int thread2_res; +static int thread1_res; +static int thread2_res; -int thread1_func(void *arg) +static int thread1_func(void *arg) { int i; for(i=0;i<5;i++) { @@ -404,7 +377,7 @@ int thread1_func(void *arg) return 0; } -int thread2_func(void *arg) +static int thread2_func(void *arg) { int i; for(i=0;i<6;i++) { @@ -435,27 +408,28 @@ void test_clone(void) thread2_res != 6) error("clone"); } +#endif /***********************************/ volatile int alarm_count; jmp_buf jmp_env; -void sig_alarm(int sig) +static void sig_alarm(int sig) { if (sig != SIGALRM) error("signal"); alarm_count++; } -void sig_segv(int sig, siginfo_t *info, void *puc) +static void sig_segv(int sig, siginfo_t *info, void *puc) { if (sig != SIGSEGV) error("signal"); longjmp(jmp_env, 1); } -void test_signal(void) +static void test_signal(void) { struct sigaction act; struct itimerval it, oit; @@ -510,7 +484,7 @@ void test_signal(void) #define SHM_SIZE 32768 -void test_shm(void) +static void test_shm(void) { void *ptr; int shmid; From patchwork Tue Apr 24 15:23:33 2018 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: 134149 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2448018lji; Tue, 24 Apr 2018 09:33:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptpGOlZIlRi3ewmjvJOeu28A64MQTAqD81c/J9ZIHglyg4+EFKDM5EOBI40VM9kHlu1Bya X-Received: by 2002:aed:32e3:: with SMTP id z90-v6mr28415551qtd.14.1524587635275; Tue, 24 Apr 2018 09:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587635; cv=none; d=google.com; s=arc-20160816; b=jThTUsqK21yo6wZLzUYBmZ+t+HLErjeZXgUQMX9NvJl6PzPNiVEEKd6kt0nf5Hp3H2 ceW+m3Bxp+wf8ACj72kZdtUfmGAEnisCv98d+6yU36zLwg/1pKZUzrk66CwzJNOaIuso cf1L2irtLluBl2xNgLDk/nG1gkGaxsqHPbiW20r6wLV/5ZygYEyn7a+OGLvPgHJnQ374 1GoBw3YjZMDPUpp2YMABc4gyA7nj/xOEq53dlKfbkrRqHFJ5mDt11Oy6xhfdG1QkkYh2 dP1Fjx2TZ9SkZGhUoEho6JOlWWPDAIP8yH21AV+Hjjd2g7Rizuty1yze6LwbYhhRe77P MSEQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=0aEv/T7VO8p/Ly6Z9P9EtV6cAUHTxvtbxIVuXNfrrMc=; b=w0vGvaK+lklm65HUSr94HuAmI6qcBmPEY2NfpJEqPCYOPRnXwaDiiEPQN7hlUK8OPn uG4Cxf4uF2d2Kf+rPEbDyB4m4g1QwtEkn5tZOgzSkUA+MJtSw2m00hkG1Ts6+Gk718K8 7Pqtm3q4wu6GOEl71H0m8Lc7o2ElF8S7Sed3p5XlMO1eT5xKpxMnyDcV/Zlq2zclLsU8 wR+iNZJC4MeBechLg2CGsBk7mGtrM3yNoufvpWKtzTvW/wvvasISYev61O0+LtxLN9eW J0/W5YmhD8CDIt9oM0Ft+FgcPxMCkGEEhYbfidO4zPsODdeH/Yqcf56GGzYlZG3D7Wpf jZhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aBPpzt/c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f31si2587804qve.185.2018.04.24.09.33.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aBPpzt/c; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0t8-0003fF-Oa for patch@linaro.org; Tue, 24 Apr 2018 12:33:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwf-000671-Kw for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwd-0001kz-VH for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:29 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:33392) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwd-0001jw-MO for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:27 -0400 Received: by mail-wr0-x241.google.com with SMTP id o4-v6so141639wrm.0 for ; Tue, 24 Apr 2018 08:33: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=0aEv/T7VO8p/Ly6Z9P9EtV6cAUHTxvtbxIVuXNfrrMc=; b=aBPpzt/c9vpzlVSV+QpnNhqn0WcCOJ2ev8xgIPekym76YHtZD2vSzx6ng4qekdqUPN LwLBAEpZBSmfitAVMkD1lErGoh6YWa7Mxo8JhvScgZcv1NiCdIeEKKVf61dl7xIDD427 Hha+YFIX0csx7Dch9FpiwNWTMFvpSDvewfuik= 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=0aEv/T7VO8p/Ly6Z9P9EtV6cAUHTxvtbxIVuXNfrrMc=; b=ZU1JmezY4L0nDXd7DsmAJPL9k5U3ljTyVgorioura7SQNLPpWP2UIz2Tvh0byGD6YN G9DYjG8daagK4yiCLcex8gCIbFbZe6LvEkBTZwjvleHi7ftkbBxhc7SW0AqzokjX0GSq wP7dELe/Co/Cd5BxJnD9pUo6gEuw+cDeaDqrPMekI/rOl4OoVF5NyuOplAcYVEDFr1BJ y0wcfZJOxAxL+37KS5IKtQx43nN/pwvb9vOXY+4NLVbhjJjS06FU/1pa49uVzmykHRDr YL8m+AceiZXDnYUUd6owmBpDfp55QKysKYWAFbocfxhCS6u/S42i3bK2H9yF95fB1Plx C7vQ== X-Gm-Message-State: ALQs6tAhhfCvSc3l+4Un/ANlLL5V3QBIc3bwZybTU337Nv7KoWbeHKDV cPHE77BT8CykMkbEQ3Ad6BZIoQ== X-Received: by 2002:adf:9cc5:: with SMTP id h5-v6mr20164884wre.11.1524584006567; Tue, 24 Apr 2018 08:33:26 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d28sm18243926wmh.29.2018.04.24.08.33.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 785D43E0A8A; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:33 +0100 Message-Id: <20180424152405.10304-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 14/46] tests/tcg/multiarch: enable additional linux-test tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Un-comment the remaining tests. I removed the itimer value tests because I'm fairly sure a re-arming timer will always have a different value in it when you grab it. I've also fixed up the clone thread flags as QEMU will only allow a clone to use flags which match glibc. Signed-off-by: Alex Bennée --- v3 - make clone flags match CLONE_THREAD_FLAGS --- tests/tcg/multiarch/linux-test.c | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) -- 2.17.0 Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c index 4457bd04ba..754edf9910 100644 --- a/tests/tcg/multiarch/linux-test.c +++ b/tests/tcg/multiarch/linux-test.c @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ +#define _GNU_SOURCE #include #include #include @@ -39,6 +40,7 @@ #include #include #include +#include #define TESTPATH "/tmp/linux-test.tmp" #define TESTPORT 7654 @@ -58,8 +60,8 @@ static void error1(const char *filename, int line, const char *fmt, ...) static int __chk_error(const char *filename, int line, int ret) { if (ret < 0) { - error1(filename, line, "%m (ret=%d, errno=%d)", - ret, errno); + error1(filename, line, "%m (ret=%d, errno=%d/%s)", + ret, errno, strerror(errno)); } return ret; } @@ -320,7 +322,6 @@ static void test_socket(void) chk_error(close(server_fd)); } -#if 0 #define WCOUNT_MAX 512 static void test_pipe(void) @@ -355,7 +356,7 @@ static void test_pipe(void) } if (FD_ISSET(fds[1], &wfds)) { ch = 'a'; - chk_error(write(fds[0], &ch, 1)); + chk_error(write(fds[1], &ch, 1)); wcount++; } } @@ -387,6 +388,9 @@ static int thread2_func(void *arg) return 0; } +/* For test_clone we must match the clone flags used by glibc, see + * CLONE_THREAD_FLAGS in the QEMU source code. + */ void test_clone(void) { uint8_t *stack1, *stack2; @@ -394,11 +398,15 @@ void test_clone(void) stack1 = malloc(STACK_SIZE); pid1 = chk_error(clone(thread1_func, stack1 + STACK_SIZE, - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello1")); + CLONE_VM | CLONE_FS | CLONE_FILES | + CLONE_SIGHAND | CLONE_THREAD | CLONE_SYSVSEM, + "hello1")); stack2 = malloc(STACK_SIZE); pid2 = chk_error(clone(thread2_func, stack2 + STACK_SIZE, - CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello2")); + CLONE_VM | CLONE_FS | CLONE_FILES | + CLONE_SIGHAND | CLONE_THREAD | CLONE_SYSVSEM, + "hello2")); while (waitpid(pid1, &status1, 0) != pid1); free(stack1); @@ -408,7 +416,6 @@ void test_clone(void) thread2_res != 6) error("clone"); } -#endif /***********************************/ @@ -449,12 +456,10 @@ static void test_signal(void) it.it_value.tv_usec = 10 * 1000; chk_error(setitimer(ITIMER_REAL, &it, NULL)); chk_error(getitimer(ITIMER_REAL, &oit)); - if (oit.it_value.tv_sec != it.it_value.tv_sec || - oit.it_value.tv_usec != it.it_value.tv_usec) - error("itimer"); while (alarm_count < 5) { usleep(10 * 1000); + getitimer(ITIMER_REAL, &oit); } it.it_interval.tv_sec = 0; @@ -463,9 +468,6 @@ static void test_signal(void) it.it_value.tv_usec = 0; memset(&oit, 0xff, sizeof(oit)); chk_error(setitimer(ITIMER_REAL, &it, &oit)); - if (oit.it_value.tv_sec != 0 || - oit.it_value.tv_usec != 10 * 1000) - error("setitimer"); /* SIGSEGV test */ act.sa_sigaction = sig_segv; @@ -503,10 +505,11 @@ static void test_shm(void) int main(int argc, char **argv) { test_file(); + test_pipe(); test_fork(); test_time(); test_socket(); - // test_clone(); + test_clone(); test_signal(); test_shm(); return 0; From patchwork Tue Apr 24 15:23:34 2018 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: 134137 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2427404lji; Tue, 24 Apr 2018 09:14:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/ECQKM4gjDuVpkqiC4FgIkV1Ryrv+UuNgJTqtJbAjjD6liD6yS31hMnKlKDfLznGqnoOa X-Received: by 10.12.178.66 with SMTP id k2mr4599305qve.26.1524586449865; Tue, 24 Apr 2018 09:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586449; cv=none; d=google.com; s=arc-20160816; b=zlEfrdSPzGgH1gVCdu+md+p+puhWk6egkkx6z7ljl4zi4fpn6VJRks2KoWYufW/k6v VFD3juHuaavaQUe/YyvKmyEN20cW7zAEf31vBHIgp9UxYW3lAcb4ojlj3unmlAC/57LZ lF+lxu7o+ZEd7N1LCwuENNcj+gDosgPB4mfwJ4WdRWvONeJvDshyr9wBiHJrILjKggCt ZSZm/+OxCpTQhag9H99ThE3Quj2v1tNnaigY+wIQqa6cPUDE+x3wjsPp2XJStMHn6NZU gB0gyzRUfORsDovWvedKzSWH+0TCbdDvdRQvleUN+48Xz0/PKmLvWJjUJXBS3awcdORm e1WA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=pZ2dxzsmLbwkNXgVwN5Vj5ix3tpSpvfBHbFRT38ebsA=; b=ACGx6WR1FnQ5jxfVZee9DAb0gYuAS57hgecpCQu+KpvcUhzX+8XD63NRczHakTL6re 9dJec+eiEDJGR3s38CdO2jUz2bmmBKozh4PW2pdb194sIEByPDKXR/0b4ocZ+d/bcai5 rPBUGkEJKxMQ512Ocj0clXFPSD/m4nurFUt2g09p3zdqzB68CJ7EjbSXyw2SyKDoXGtk 2CDYbdmvCqhO6dBq7mSd1ATOSFEUUST0nOxlkbNQv+mlPqTYyhGQkp0ZoMj6Kj7f4OXe y/oWDwmkCYGW57aouMkz62yuNBchjhLuSCBnsxusqkKl6hjtlY5jQuz230d3eivfRDez XMfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iwP20qBi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 104-v6si17940502qta.58.2018.04.24.09.14.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iwP20qBi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0a1-00044X-6u for patch@linaro.org; Tue, 24 Apr 2018 12:14:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwX-000612-9J for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwW-0001Yj-6F for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:21 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:41572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwV-0001Xe-Tn for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:20 -0400 Received: by mail-wr0-x242.google.com with SMTP id g21-v6so22927859wrb.8 for ; Tue, 24 Apr 2018 08:33:19 -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=pZ2dxzsmLbwkNXgVwN5Vj5ix3tpSpvfBHbFRT38ebsA=; b=iwP20qBijlGo0nHCCoH2A3aACuKjFpah1RrTcanfT9/MvG7+00U4x1HnyKEsww1z4+ 0zJmvHKImb2dTrRwIFHpC0v6SfhPeQRyZxK8eK9Mhk8+jR++hII8foRcqg1TmsUfNJMA 4mPmikwqgY9vc4BjgwPrMEKgbilBW0NdMqX+g= 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=pZ2dxzsmLbwkNXgVwN5Vj5ix3tpSpvfBHbFRT38ebsA=; b=JfvmufWPGDxprW6mV3vjH0/0NC7Pu+qrHEWURO6pulPtggYO4c0P5BM7YFLNhpqSe4 nwkNAtBDOKZJBJFrQZg+MiOB3rEiibTYscNODQLi2Q+h+NPr8W5acaVfG/datYUZFF5i bkuVzYhxD86KQwmbSa9h6LgGkUM8XXWsdjwq+bQDYGpWtghUOOk4bFWZ2PJ66Qgkfizn VcusgLjROXsHbIe7Ylya9VZg1a6eQ9Z9AuSSctj+CGh3AhwWXXoFc2zHWjVkNUwQyrjd +wWj1eF/Ful2LAgh2b1I1Mepw5ILhvMFvUyBlgKGgTR29lYANQWRFARBbLKv9U9qWMBe WcFQ== X-Gm-Message-State: ALQs6tAzgZgLChCdIB/bolKs/XK9daCqnVbpcSGXZ/dGIZEn5GnoZbeS vQDizNYmKj5/8bJYRrnLBczYTQ== X-Received: by 2002:adf:9789:: with SMTP id s9-v6mr21486736wrb.28.1524583998724; Tue, 24 Apr 2018 08:33:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n79sm16548036wmi.20.2018.04.24.08.33.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8C11D3E0A9D; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:34 +0100 Message-Id: <20180424152405.10304-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH v3 15/46] tests/tcg/multiarch: move most output to stdout X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The default test run outputs to stdout so it can be re-directed. Errors are still reported to stderr. Signed-off-by: Alex Bennée --- tests/tcg/multiarch/test-mmap.c | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) -- 2.17.0 Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/multiarch/test-mmap.c b/tests/tcg/multiarch/test-mmap.c index cdefadfa4c..fd6ecc4880 100644 --- a/tests/tcg/multiarch/test-mmap.c +++ b/tests/tcg/multiarch/test-mmap.c @@ -57,7 +57,7 @@ void check_aligned_anonymous_unfixed_mmaps(void) uintptr_t p; int i; - fprintf (stderr, "%s", __func__); + fprintf (stdout, "%s", __func__); for (i = 0; i < 0x1fff; i++) { size_t len; @@ -106,7 +106,7 @@ void check_aligned_anonymous_unfixed_mmaps(void) munmap (p4, len); munmap (p5, len); } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_large_anonymous_unfixed_mmap(void) @@ -115,7 +115,7 @@ void check_large_anonymous_unfixed_mmap(void) uintptr_t p; size_t len; - fprintf (stderr, "%s", __func__); + fprintf (stdout, "%s", __func__); len = 0x02000000; p1 = mmap(NULL, len, PROT_READ, @@ -130,7 +130,7 @@ void check_large_anonymous_unfixed_mmap(void) /* Make sure we can read from the entire area. */ memcpy (dummybuf, p1, pagesize); munmap (p1, len); - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_aligned_anonymous_unfixed_colliding_mmaps(void) @@ -141,7 +141,7 @@ void check_aligned_anonymous_unfixed_colliding_mmaps(void) uintptr_t p; int i; - fprintf (stderr, "%s", __func__); + fprintf (stdout, "%s", __func__); for (i = 0; i < 0x2fff; i++) { int nlen; @@ -180,7 +180,7 @@ void check_aligned_anonymous_unfixed_colliding_mmaps(void) munmap (p2, pagesize); munmap (p3, nlen); } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_aligned_anonymous_fixed_mmaps(void) @@ -194,7 +194,7 @@ void check_aligned_anonymous_fixed_mmaps(void) addr = mmap(NULL, pagesize * 40, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - fprintf (stderr, "%s addr=%p", __func__, addr); + fprintf (stdout, "%s addr=%p", __func__, addr); fail_unless (addr != MAP_FAILED); for (i = 0; i < 40; i++) @@ -212,7 +212,7 @@ void check_aligned_anonymous_fixed_mmaps(void) munmap (p1, pagesize); addr += pagesize; } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_aligned_anonymous_fixed_mmaps_collide_with_host(void) @@ -225,8 +225,8 @@ void check_aligned_anonymous_fixed_mmaps_collide_with_host(void) /* Find a suitable address to start with. Right were the x86 hosts stack is. */ addr = ((void *)0x80000000); - fprintf (stderr, "%s addr=%p", __func__, addr); - fprintf (stderr, "FIXME: QEMU fails to track pages used by the host."); + fprintf (stdout, "%s addr=%p", __func__, addr); + fprintf (stdout, "FIXME: QEMU fails to track pages used by the host."); for (i = 0; i < 20; i++) { @@ -243,7 +243,7 @@ void check_aligned_anonymous_fixed_mmaps_collide_with_host(void) munmap (p1, pagesize); addr += pagesize; } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_file_unfixed_mmaps(void) @@ -252,7 +252,7 @@ void check_file_unfixed_mmaps(void) uintptr_t p; int i; - fprintf (stderr, "%s", __func__); + fprintf (stdout, "%s", __func__); for (i = 0; i < 0x10; i++) { size_t len; @@ -294,7 +294,7 @@ void check_file_unfixed_mmaps(void) munmap (p2, len); munmap (p3, len); } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_file_unfixed_eof_mmaps(void) @@ -304,7 +304,7 @@ void check_file_unfixed_eof_mmaps(void) uintptr_t p; int i; - fprintf (stderr, "%s", __func__); + fprintf (stdout, "%s", __func__); for (i = 0; i < 0x10; i++) { p1 = mmap(NULL, pagesize, PROT_READ, @@ -327,7 +327,7 @@ void check_file_unfixed_eof_mmaps(void) fail_unless (cp[pagesize - 4] == 0); munmap (p1, pagesize); } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_file_fixed_eof_mmaps(void) @@ -343,7 +343,7 @@ void check_file_fixed_eof_mmaps(void) MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - fprintf (stderr, "%s addr=%p", __func__, (void *)addr); + fprintf (stdout, "%s addr=%p", __func__, (void *)addr); fail_unless (addr != MAP_FAILED); for (i = 0; i < 0x10; i++) @@ -371,7 +371,7 @@ void check_file_fixed_eof_mmaps(void) munmap (p1, pagesize); addr += pagesize; } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void check_file_fixed_mmaps(void) @@ -384,7 +384,7 @@ void check_file_fixed_mmaps(void) addr = mmap(NULL, pagesize * 40 * 4, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); - fprintf (stderr, "%s addr=%p", __func__, (void *)addr); + fprintf (stdout, "%s addr=%p", __func__, (void *)addr); fail_unless (addr != MAP_FAILED); for (i = 0; i < 40; i++) @@ -426,7 +426,7 @@ void check_file_fixed_mmaps(void) munmap (p4, pagesize); addr += pagesize * 4; } - fprintf (stderr, " passed\n"); + fprintf (stdout, " passed\n"); } void checked_write(int fd, const void *buf, size_t count) From patchwork Tue Apr 24 15:23:35 2018 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: 134145 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2441382lji; Tue, 24 Apr 2018 09:27:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr2zMeFL9Mhwzpt/RvsIIu6YqsA6PbN9cvCLuiao+3FV/C1gZXJI/P/7scrCZb5nsSQX5Ln X-Received: by 2002:ac8:90b:: with SMTP id t11-v6mr28270972qth.107.1524587242470; Tue, 24 Apr 2018 09:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587242; cv=none; d=google.com; s=arc-20160816; b=vwGy8J4gUP1Myfd2YL7RxKunxhzTqdvlYWX2r1X359Lad7HgXD8vBO/I5QswAxLMcu soMw/rMZMsdmWGgjOaQLzCo9cF4/NiXLopXaINkvt4wODfZFtescbqNA6Q4tHzt3Zai+ CU06QMcqa+BuLcvIo7zeUXQUianRyn21b0Hnp5MiNUYG9bFferwKBbKWPd7BzAxslEJL BuHYjqd3b9BNnSsAss/9qmNKAHTXseOM3YHY/jFfReIL1G5bX0L7UD0rhpN00QGsm+R4 wI0OaEqd/xigoLQ6VFQLaLCdObloKUWRXKBE2leBoi1F8T2Wv8eFg9nErr2SeCu24bDh B4sw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=flypIEKkCYHfJd0HmJGs/yHA6xC+HQqzKclPb3K9yGo=; b=PhE3XIBAOuAMf2fYpyxlLvnsJkJsyMu8Rg4t2v6242ohjEtdFMie5N6Fuw+yKBCEAC ehqGj4lF4yIZuxcx+R+sVRicLPv8HBOWTgpPqH5UN1ZYPoKCTrGTGA8O7pwQaGzDI/4D vF2qyQkjIbBa1JH8OMkyhDbDPHR1g4IdwPHcmEJLB/B+oNTGBbMkAzO6FAsYHpxdTNrB gX1AX5yrY5vPcTEDln0dD/jePMweW8wP89hr+J4+Ir1Rjc9fn/bGPv/cb4cw1Ni94Imy Q2gsx8qZfvg9JbQpVFz/p63pwvTyfCeaIXg+ZpdWnsKbLuOjM9oDtKakGKiRbJhheKjX 0lqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BPhJoZ9W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e12si18259466qkm.60.2018.04.24.09.27.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:27:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BPhJoZ9W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0mn-0006Co-Po for patch@linaro.org; Tue, 24 Apr 2018 12:27:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwV-0005z5-0g for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwT-0001Vu-IQ for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:19 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:37748) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwT-0001UN-97 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: by mail-wm0-x244.google.com with SMTP id l16so1614540wmh.2 for ; Tue, 24 Apr 2018 08:33:17 -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=flypIEKkCYHfJd0HmJGs/yHA6xC+HQqzKclPb3K9yGo=; b=BPhJoZ9WMln3oKctl4ZdYhzDy+KLs/1SSWbDy07FY1NeJPlJPCcIbp4YuAHwxSEswg Meohk0o13rHxD+h95qd0ZG3A11Xu/LYBc7QmOAOc00cbv+c2SXY3Uuo9sgYgrjRbwSv/ fX9+fxbt4dCN0D7lTorGl2MQYkLKez5Xjpbf0= 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=flypIEKkCYHfJd0HmJGs/yHA6xC+HQqzKclPb3K9yGo=; b=jGRrT4/WQT9p95RL5gtkqRlaw7grT3Unle7zrD1yE5NRFhWrQa84K+q48csfXJRtr0 AMIogJBsifR76/DKy/8Mp4UCzJHUeWmkXOpB1Dgbf8FMdSfUmrM3gVNPXg6xQApvgeN2 PpTqhmr5X/v5qPRkAt+XLXatsWESh9SuQ9LAyKJFiY4aC7++mmEo/Twxv1wmTfRdHrG3 rUcZFVPKB9y+NYf8MkmxI+UUQquz3m1LHoD1peobp+54hdxZpAqlwUg4nboHgL5Fv2Pu SkfhzP8vlCbXkpeHRT39dEnD67tXCDmfZF8h/47Ya4pJlQUeLyWuvvaO3go3aNzbM7++ CUYQ== X-Gm-Message-State: ALQs6tAnFw4SgBJTyOHrRu06ZdtOWU1EAQyb9n2RlDYUMImvtKmszng8 6/fVu9IGqzDP3Kh2ikE1N1taGw== X-Received: by 10.28.12.129 with SMTP id 123mr12308933wmm.75.1524583996052; Tue, 24 Apr 2018 08:33:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 80sm15430421wmk.46.2018.04.24.08.33.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A1B9E3E0AC0; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:35 +0100 Message-Id: <20180424152405.10304-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 16/46] tests/tcg: move i386 specific tests into subdir X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These only need to be built for i386 guests. This includes a stub tests/tcg/i386/Makfile.target which absorbs some of what was in tests/tcg/Makefile. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - move VPATH and TESTs setup into i386/Makefile.target - set CFLAGS+=-m32 for cross building --- tests/tcg/README | 39 ------------------------ tests/tcg/i386/Makefile.target | 30 ++++++++++++++++++ tests/tcg/i386/README | 38 +++++++++++++++++++++++ tests/tcg/{ => i386}/hello-i386.c | 0 tests/tcg/{ => i386}/pi_10.com | Bin tests/tcg/{ => i386}/runcom.c | 0 tests/tcg/{ => i386}/test-i386-code16.S | 0 tests/tcg/{ => i386}/test-i386-fprem.c | 0 tests/tcg/{ => i386}/test-i386-muldiv.h | 0 tests/tcg/{ => i386}/test-i386-shift.h | 0 tests/tcg/{ => i386}/test-i386-ssse3.c | 0 tests/tcg/{ => i386}/test-i386-vm86.S | 0 tests/tcg/{ => i386}/test-i386.c | 0 tests/tcg/{ => i386}/test-i386.h | 0 14 files changed, 68 insertions(+), 39 deletions(-) create mode 100644 tests/tcg/i386/Makefile.target create mode 100644 tests/tcg/i386/README rename tests/tcg/{ => i386}/hello-i386.c (100%) rename tests/tcg/{ => i386}/pi_10.com (100%) rename tests/tcg/{ => i386}/runcom.c (100%) rename tests/tcg/{ => i386}/test-i386-code16.S (100%) rename tests/tcg/{ => i386}/test-i386-fprem.c (100%) rename tests/tcg/{ => i386}/test-i386-muldiv.h (100%) rename tests/tcg/{ => i386}/test-i386-shift.h (100%) rename tests/tcg/{ => i386}/test-i386-ssse3.c (100%) rename tests/tcg/{ => i386}/test-i386-vm86.S (100%) rename tests/tcg/{ => i386}/test-i386.c (100%) rename tests/tcg/{ => i386}/test-i386.h (100%) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/tests/tcg/README b/tests/tcg/README index 0890044cf0..469504c4cb 100644 --- a/tests/tcg/README +++ b/tests/tcg/README @@ -3,45 +3,6 @@ regression testing. Tests are either multi-arch, meaning they can be built for all guest architectures that support linux-user executable, or they are architecture specific. -i386 -==== - -test-i386 ---------- - -This program executes most of the 16 bit and 32 bit x86 instructions and -generates a text output, for comparison with the output obtained with -a real CPU or another emulator. - -The Linux system call modify_ldt() is used to create x86 selectors -to test some 16 bit addressing and 32 bit with segmentation cases. - -The Linux system call vm86() is used to test vm86 emulation. - -Various exceptions are raised to test most of the x86 user space -exception reporting. - -linux-test ----------- - -This program tests various Linux system calls. It is used to verify -that the system call parameters are correctly converted between target -and host CPUs. - -test-i386-fprem ---------------- - -runcom ------- - -test-mmap ---------- - -sha1 ----- - -hello-i386 ----------- ARM diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target new file mode 100644 index 0000000000..2f27b65e2d --- /dev/null +++ b/tests/tcg/i386/Makefile.target @@ -0,0 +1,30 @@ +# i386 cross compile notes + +I386_SRC=$(SRC_PATH)/tests/tcg/i386 + +# Set search path for all sources +VPATH += $(I386_SRC) + +I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) +I386_TESTS=$(I386_SRCS:.c=) + +# Update TESTS +TESTS+=$(I386_TESTS) + +ifneq ($(TARGET_NAME),x86_64) +CFLAGS+=-m32 +endif + +# +# hello-i386 is a barebones app +# +hello-i386: CFLAGS+=-ffreestanding +hello-i386: LDFLAGS+=-nostdlib + +# +# test-386 includes a couple of additional objects that need to be linked together +# + +test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ + $( X-Patchwork-Id: 134147 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2444492lji; Tue, 24 Apr 2018 09:30:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoErNpaybpMscnJzpzxUX4pnHDjPnnOKp7lRlSTMXWefr8AFf+yEd7jpGrlt6rxtxshTmDb X-Received: by 2002:ac8:2a37:: with SMTP id k52-v6mr28345988qtk.333.1524587440503; Tue, 24 Apr 2018 09:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587440; cv=none; d=google.com; s=arc-20160816; b=g93r4osEZwmaYbP5ZHwNGXShQnqdr5HG6dcymeS+avUxuiUiNjcqpiRb6Ixud5rKSZ e6QGwLY0Y11AQsbvjtfbD6yDRbp/SdqVlcd0XhxV+A1xxyZDoMO98JICyQmnAs4mntnn 4F7W4K6VfzNUHlKDCnijAjL3Z/2amJ3BtaeBPqSMBRyYcrFof1SLcfZQ26KYBVszDLJW hxiY3AQqG2UtOXYKhkWJGtgq3qdfqyWN0LMLdHDvt5JRygmwQ5a09P4YtmZFKjbUVr21 kji53AQ/TF5JGhsHF8TiowhIHULYx19se/PEum1AbPsMYItJBvxQP8g9pzkZNsOKxIq7 ia1g== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Sp/nWR42wqBHZeJmZ4fe68++pwWrJ8UU+fs/ZWk84p4=; b=fASD6QWzptH0/kAJcFdLMkqG8nBIo27TxH2OP8VUmrQn+1Uqh1ZwO76xyLdZ0UjdnG UUSuzF78XRa/InREWsP4d0NHalGAXTEmX9LCaSHeY2WUIvN55nq5+Wg9eo/9cgnSpQ+3 h6oW4Fd9XNYMQM4QQo4tt9d3DokPsxs++SzSQ34t3HKejF1qso3ruOjbsFO04Kl/yhe4 ezDm1WpmZ201IdhV/Ok31YxoFeTAHhsu8oBgp6ZOmNOlmtlNEupMZy5XbTutIW9Dtpie CrXN5ol40WVkGpV1j8R5ufZ2kcTrCOPmRQibD9Cg1mGHczclIkrHcpl8l1vNGxYEbRMj Fj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U5pnvY62; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e126si4672369qkd.114.2018.04.24.09.30.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=U5pnvY62; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0pz-0001IN-V3 for patch@linaro.org; Tue, 24 Apr 2018 12:30:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwc-00065p-SD for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwb-0001hq-V3 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:26 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:41572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwb-0001ga-PD for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: by mail-wr0-x241.google.com with SMTP id g21-v6so22928191wrb.8 for ; Tue, 24 Apr 2018 08:33: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=Sp/nWR42wqBHZeJmZ4fe68++pwWrJ8UU+fs/ZWk84p4=; b=U5pnvY62Aml1bRzCPwQ3gwIzyQQcXMxwAjOhO1xu7c73x0ncv2jL8hCsLIGoxnhulM ZVmd+gW3HnQzp3ngsjkIOHSp/YFDl2siCngdR5jH1ynCRXd8DDT0sXs1Td8JqJK1ajju SJLzvst/X3WecoGCo5YaYir8li+L+a1L30hyE= 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=Sp/nWR42wqBHZeJmZ4fe68++pwWrJ8UU+fs/ZWk84p4=; b=d28KRJd8X3q+uX/yQQSfJz9OKvbHceiRuQK4pj2i38YnLLErL+HJf80kjJpsvRQ2r3 BTKiEQiGHL8FVTH1ebdtTxiuAixYappvCJvHtwtBWYp4n2XkvZS8e5YUp5D3iFv7x1xi 9G2UPqFK7aNSA/jyk4hFBXk3G+SUluQ5YfO7f5i67gHKPEhO1AFSbr13SOInRcdsxVG0 oYR3QUpjZTdLSsEgQc+aysBvypYDLCiiUFe19LCme5uv2eElCMCyRDH9YNkmbjUgCfwN 1MGFd5VShY3LaDE08SQdfc/KVFiTsf3sOKfeWd1VKHajVCwv2R4TFTEX4Th5Esrzh/Tq RFFQ== X-Gm-Message-State: ALQs6tCFC5vvV/iW8pV7iDjYSCPTtrZNbaGwokYiXAVoPazMGBuaJ+Qm QdHycOwq9Htns2qGw2Fnk1EDiA== X-Received: by 2002:adf:aead:: with SMTP id y42-v6mr2202052wrc.23.1524584004686; Tue, 24 Apr 2018 08:33:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o101-v6sm26578579wrb.44.2018.04.24.08.33.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id B5B853E03EB; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:36 +0100 Message-Id: <20180424152405.10304-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 17/46] docker: Add fedora-i386-cross image X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng It has some basic *-devel.i686 packages to be used with "gcc -m32" as a 32 bit cross build environment. Signed-off-by: Fam Zheng [AJB: add glibc-static] Signed-off-by: Alex Bennée --- v2 - include static glibc package as well --- tests/docker/dockerfiles/fedora-i386-cross.docker | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/docker/dockerfiles/fedora-i386-cross.docker -- 2.17.0 Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/dockerfiles/fedora-i386-cross.docker b/tests/docker/dockerfiles/fedora-i386-cross.docker new file mode 100644 index 0000000000..8fbef2fa53 --- /dev/null +++ b/tests/docker/dockerfiles/fedora-i386-cross.docker @@ -0,0 +1,14 @@ +FROM fedora:latest +ENV PACKAGES \ + gcc \ + glibc-static.i686 \ + glibc-devel.i686 \ + glib2-devel.i686 \ + zlib-devel.i686 \ + glib2-devel.i686 \ + nettle-devel.i686 \ + pixman-devel.i686 \ + gnutls-devel.i686 + +RUN dnf install -y $PACKAGES +RUN rpm -q $PACKAGES | sort > /packages.txt From patchwork Tue Apr 24 15:23:37 2018 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: 134159 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2457233lji; Tue, 24 Apr 2018 09:43:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49XjChLUn5Vt7Jlb0oUxc5Qmj4ToGXjVsqS6CQLED7hl7fKg2wF9vfKbsUJKGT0o5b0rGxM X-Received: by 2002:aed:2962:: with SMTP id s89-v6mr27659751qtd.162.1524588202685; Tue, 24 Apr 2018 09:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588202; cv=none; d=google.com; s=arc-20160816; b=t6Iu4N/m4jzGBVDuMH3VbNpXNC8FUpBysW26mssOPuWaH/VCc40H+jpBRzIjehj7st 6i4S3twEe5icdouVcNJsd5QsTQHRgMtmSA3gU4QQ63WRMCbBghBwGW6qRAvgy5r03a2K /UUeHeYIdqpEZoOnbVZDDhpBU3WxmOawzksfZ2ZKMqKhQHWSkqgNULVYybwFPjAAt6HZ W3qbPdA/CEUMDjPZZLKUeV6JbPRsW9mKY6VT5swHRNez3rgGpuW/f3nqvjWBMIkY7TX0 B3LuqdDYtVw2b1y4HuxrJpAFEJQ+cJqqt2nsBALWY8UvgqIeodg2JDk0y8pIbmgpEZmw 7G7A== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=AVM9J0r6UxskuIlxYR7xgA1r2ppbT/5CQxNMZTkcCtqVWQU3vnjtjL0ZDwAIb8AsOB qq6ak9HLPlZGKdGBw9q4SwLv2tCJ8HTj2a0nOSq+wnvcKJvRrmfurTpLWSKL8uLK2hnN FERSBscGY9Pk5Onyls68IpudAT5+BOKLZoj6Wavrl2qzmLLggv3zSKbdXdpiyOs9DX4X SldAg9C+Fc8NJfLywFXoM5WCN3SdIrLOxJSLUp7XNuVEbb9xas8a5VBz4srmIYOO6Bn+ T0B/itbicHZHj20hIeKSptjErFyMNkUkwMWY0fixgFQSfDzx97KHnudFNRIiPUBUYQ84 QhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XFIFCJVm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w1-v6si2285857qtd.75.2018.04.24.09.43.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=XFIFCJVm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59653 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB12I-0002tY-5i for patch@linaro.org; Tue, 24 Apr 2018 12:43:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06I-0005OF-F6 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06H-0000l0-D1 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:26 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:40270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06H-0000kd-6I for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:25 -0400 Received: by mail-wr0-x241.google.com with SMTP id v60-v6so50428456wrc.7 for ; Tue, 24 Apr 2018 08:43: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=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=XFIFCJVmYyxMt7dYsuh+n/ttKtCkSVrx8zddxh2+S6a2X9XJyIywR/Tc/ZBXJSrr6x RMnt2gMbSKr1l2alv2rW2Vl11mu6g+QHVyzyOukwe92miCTkCk8wKKQ2myRGqOAl0OB2 8NqLZbPr2JByZ1Tr9K5JjcJ3BCvHRc+CoNmYw= 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=VOJWrt8nJRVdmiI9EEW9Jy5GKHaARZenqgm8O8C/IWA=; b=kD/DvxFXScJOcVoJNUmXAOIpeGXN2fTmNK6ag8y536zEiFvmrT/qpnF7lIgA0Sen2p H61kCD/DZGWZH9WKG9Lhar+T4CpfZPL3mM8I0Ao7nDhPwCi8mubYC8il8ebecZJ7tAZz Y+fN3Oqr2Bm9C5hBxP05eVjd305m73pPVQ3eZNdZbmR73L2rqHSP7f1Ey677IxWpbmat aOWtpQfrp47h1ubl4i2fxVy2xg0O5J7HeM5h4UKQJKb7nPsk2WhJoSh2zaq/Qth3330u LGL5XsRNsOxWD9MKtRgN7wrvFCR0rys80bdWbQ0BCCTnb3PvJLFIrjXxCMplAjfNbguS 9SfA== X-Gm-Message-State: ALQs6tD6AxpdHj+WPlf63Knw4DHbx4HfiGihTfAZuw3q43byvoN4oaLW ahnMDGsqrmG8tJLlHfu/vrXpAQ== X-Received: by 2002:adf:88c2:: with SMTP id g2-v6mr21097387wrg.78.1524584604080; Tue, 24 Apr 2018 08:43:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p128sm15473784wmd.45.2018.04.24.08.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C8F833E0ADA; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:37 +0100 Message-Id: <20180424152405.10304-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While you can construct a compile command that does work using the x86_64 host compiler that most people use this is flakey. Different distros handle this is different ways so we default to using a known good i386 compiler via docker. Signed-off-by: Alex Bennée --- v3 - add runner for runcom --- tests/tcg/i386/Makefile.include | 9 +++++++++ tests/tcg/i386/Makefile.target | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/tcg/i386/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/Makefile.include b/tests/tcg/i386/Makefile.include new file mode 100644 index 0000000000..be1c3008dd --- /dev/null +++ b/tests/tcg/i386/Makefile.include @@ -0,0 +1,9 @@ +# +# Makefile.include for all i386 +# +# There is enough brokeness in x86_64 compilers that we don't default +# to using the x86_64 system compiler for i386 binaries. +# + +DOCKER_IMAGE=fedora-i386-cross +DOCKER_CROSS_COMPILER=gcc diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 2f27b65e2d..39a1627650 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -28,3 +28,12 @@ hello-i386: LDFLAGS+=-nostdlib test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ $( runcom.out, "TEST", "$< on $(TARGET_NAME)") + From patchwork Tue Apr 24 15:23:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 134143 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2437642lji; Tue, 24 Apr 2018 09:23:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhrOpjY1l2P4AL0vtd6LkzhqjdFsw1W5D7woZKU0jZx3VNeGoTCIjpZWv9zIkw5lTv4kzE X-Received: by 2002:ac8:fe1:: with SMTP id f30-v6mr26967887qtk.171.1524587026286; Tue, 24 Apr 2018 09:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587026; cv=none; d=google.com; s=arc-20160816; b=e+K9Wtd60sHWwXtz5zJQBnY2lWT78d5NK3RaCYxEhLN7FsK9bFy/Jf6vHvqUOQidkv Til4hLSArqvPjz0LKq+u0YerrCcsKILsCIQTXb0/s28ghkxSwkuBrd0kYDCWMU5w4Ao9 tPzxBTSxXDR3uyPGG4AIdtCjBAnRO6IoR4T8zUKJu1D6VEkny4vA0XLag2MKZqzsn648 gZnh8AjS0brwf6SLcreokqJIHdknw9JtB+Yy8godH9N2X8jgi10wCZdRRU5FURMqooiK bupGTzUWW8yYJwh47YeFldjxJzyNosmSZXJpc09EHaonvf5+yHWwdoC7dJ3tGdmfB8OK dlOg== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=M4knfNziydg8xz3w7OTWFo2qsq6zaTW6DQN1Zbl0wio=; b=mxiAYR/cJvD+G02HN9pxK26e1llFK1LgA3P9gFEY7gzinoEK53gN5f0NFAE53wuMRE bLsCi4ERtobpp08SkdHYODlnl3z9mVvbZdR38xVVogsXmOuZKNUUSQ3Dvb8pKU8zDcw1 /6lYmqM97PxiK3RiTGTvaxqFwL0iyq9Knts7Gp/flgeSBAmutJoOi/jlowPYxwk06lUF tP1ZRINjsvdzoNXw8rtLsgOYpBUfo3fUgCHOVYR5yR8fcT3KtdRctZEi8cr3zLnicy0N KLoLGP7AK7aqHmYb2P6/V6vPg3ErYw8PuROBnNChWiYQikZtFtyn4rEsayBubrUk6XUY Vl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WdVV0m3p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z14si2599820qvi.12.2018.04.24.09.23.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WdVV0m3p; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0jJ-0003ur-Kv for patch@linaro.org; Tue, 24 Apr 2018 12:23:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwb-00064Q-JL for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwa-0001fj-PG for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:38472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwa-0001eE-Ho for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:24 -0400 Received: by mail-wr0-x244.google.com with SMTP id h3-v6so50426354wrh.5 for ; Tue, 24 Apr 2018 08:33: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; bh=M4knfNziydg8xz3w7OTWFo2qsq6zaTW6DQN1Zbl0wio=; b=WdVV0m3p6OekzFkBiWY1hH8EDBh+QrlNlzAmPQifEM7BjBy6FwswMaYCjP3Od39oU2 1AbzCFQk7oU44nEMANmIGN83i/s9OCHskLuANzikJu8eanwT1mdDzHFh3RpnqBbYzccT YPmpZCSjTC5QRRxPijp6Ke8vUDENbCxH/UQbg= 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; bh=M4knfNziydg8xz3w7OTWFo2qsq6zaTW6DQN1Zbl0wio=; b=Peh0oezBHcu27DCAGPf77iZtwWlVC7e+6IDMIHf/quukySNAjLb+L9FnnvtdHG99Em MuNCsMOSfZ1eczvABZzbi2KSTy7ZQxuqkCpmU+KSHi4RRyINTDkRIVq5P1Gf3I8tDEav Xl/fh4R/1J5w2EgHtDDMmk3zxID+giDoWeW/nBi7HwZkfuuDvpwGbWFXiOB1HneiWL/h vI9FqCClQPLRCiqMvS7O55WflSn/wH3mwyqrN0p05mtrswWQpH7zyTQIcHUMWkYwgiWc BoV6g5/dfVzP7M4FrcLeEBsUi/wWzW6gBuPmlTwYPCiRtLS3ikkTbhR5diXAbKlpGrim 9YQQ== X-Gm-Message-State: ALQs6tCEeqR2SQNFxXTDZp+r3a6Q4cz4fUSeyAnifZMXhqYk2jB1df6s 4DAo8C3RiehfLHpiOG3cs+Q+Zw== X-Received: by 2002:adf:86d2:: with SMTP id 18-v6mr22030538wry.232.1524584003403; Tue, 24 Apr 2018 08:33:23 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id h133sm10582567wmf.47.2018.04.24.08.33.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:18 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DA29D3E0B1E; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:38 +0100 Message-Id: <20180424152405.10304-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 19/46] tests/tcg/i386: Build fix for hello-i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Fam Zheng We have -Werror=missing-prototype, add a dummy prototype to avoid that warning. Signed-off-by: Fam Zheng Reviewed-by: Thomas Huth --- tests/tcg/i386/hello-i386.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.0 Reviewed-by: Richard Henderson diff --git a/tests/tcg/i386/hello-i386.c b/tests/tcg/i386/hello-i386.c index fa00380de2..cfeb24b2f5 100644 --- a/tests/tcg/i386/hello-i386.c +++ b/tests/tcg/i386/hello-i386.c @@ -20,6 +20,7 @@ static inline int write(int fd, const char * buf, int len) return status; } +void _start(void); void _start(void) { write(1, "Hello World\n", 12); From patchwork Tue Apr 24 15:23:39 2018 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: 134152 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2452660lji; Tue, 24 Apr 2018 09:38:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48w3ylfm+mQq2NtymnXdfBg1aCzYUHpli0yVevdHligqyUzep+DTcP0OoYgsjcAEEGBjvLV X-Received: by 2002:aed:250d:: with SMTP id v13-v6mr28677133qtc.76.1524587902906; Tue, 24 Apr 2018 09:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587902; cv=none; d=google.com; s=arc-20160816; b=HI6kzIuzwSrR1HkchE9LRey28ijgRC+w9AP8MaZdDcU98MteYu9QwrlPtj9lGHbqqw FYeA1E4MqKBPbvalxeN/gUmAiCFyyOkIR5Pa5R2p3UiiPdUHqu7RICSatty4EbTCRKA9 WozfXhEZHW7Tr2bxSuf8euFjuElkXbleWGgeCmsza7BCMmFcRHi8V5N5fL8iBPBJEaeW ZkKweahEOTWfpopjnztpIIWzgRhMMWZ2eaPd2WxdTeVMBbIFFdr9G4/WxPzOI2Ornue8 Gf3zU0HfQYxMNBA/VeMm2dEx0CNvw9R05fwSj2dVuqCqf4TzMFPPGUk34vwI/qEa+PyM nGow== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=EtehRyUwNjawQM3gLtdr0KHk9B8Ig2xnme5uqZnzUkU=; b=m9fx0Ni4vG/bVyH8OAid3NoVMt/llOIs2dl9s+4bWvfIYFJPIOA1NfgWcdi+osD3ww qnT3fZBYv+DtY00KOKF+fAQzOB2G8+/8TcxeZ6zDRpZAyh+RnImKN0qfuJmrw9qbyaHj vqFiYLGn8lEH76HWkagAzJyqI+V0lDskwNktgKWWBt8HdKtK0f1Zjkvp3sDxso+G3TIm Cs/OYPRTOdwJpOzfOL8NJ3KUbvSYXO0mlqTVVwPL4wgztUH52+WevR1in1Q9pvv+odrk OjLZhN45R8BdIKLE/sQBk7alfuvfIhLF5aem/eM25GCl0E1V5Lrb5NGAVVQMdp9YENwt T3dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jKvernUW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id r8si9014435qkr.151.2018.04.24.09.38.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jKvernUW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0xS-0006jz-Bw for patch@linaro.org; Tue, 24 Apr 2018 12:38:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwj-0006C8-QP for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwf-0001m3-7k for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:33 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:44370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwf-0001lI-0y for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:29 -0400 Received: by mail-wr0-x244.google.com with SMTP id o15-v6so50397381wro.11 for ; Tue, 24 Apr 2018 08:33: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=EtehRyUwNjawQM3gLtdr0KHk9B8Ig2xnme5uqZnzUkU=; b=jKvernUW04C+0qLL8I0xXvbMpF+5eMsrNwTBRBMQTWky5g40CSWbdVFdMpb8dyZ2Kc +ATp4bEYajUoJLJS8ctYEPIdJJ+gUe1lm7Dop7yqxDMqfxjSy0rzGeVnOffMHVg5YnLd GaoUDtKIHCcwidkp6cz7S4yUTqaotv5iIiUwg= 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=EtehRyUwNjawQM3gLtdr0KHk9B8Ig2xnme5uqZnzUkU=; b=kGItRODryJBSW6WRAH0d3pNH9OUusT+qkMQcE80jTr1cEqNwihPLgGfJAvVAv1GyAF GKNtJhnvOyb5LXAmaK0JKdQOb/yID/AMv/2GEHn6yUvp//7nMcCLa+MHC0VERgkbKnJC e3tEdZL7KKyNfiLuthqZgORY4VXzj7iH+deQeIeoUKoC5CKyEc124y6WUoEarbP2PU4q pvH1FPJRQt1F3UKyuU5P6/b4Itk2I9w9sjlJGcUKL62hbKyRDs/3P7SdxKl3EHosmuX/ StYitJEiAkhmJsqDjLr+shnxm7z/7x/OFpstO2bRNYa6z6txHyUByZu4hYsoiyFUjJmX Kd0Q== X-Gm-Message-State: ALQs6tDgGJZ26ibWxrtXjzzSJ+8E+KJ4w/J6LvNZB1C2wjYLDjtACFFQ gUK3/vCe7qC6SURHrc79lBczEw== X-Received: by 2002:adf:ab0a:: with SMTP id q10-v6mr21002513wrc.239.1524584007937; Tue, 24 Apr 2018 08:33:27 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 103-v6sm14823311wrc.57.2018.04.24.08.33.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:26 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EB9C73E0B56; Tue, 24 Apr 2018 16:24:06 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:39 +0100 Message-Id: <20180424152405.10304-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 20/46] tests/tcg/i386: fix test-i386 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The test-i386 test case is a little special as it includes assembler files. Add the additional compile magic to assemble these bits and link them to the final binary. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- tests/tcg/i386/test-i386.c | 1 - 1 file changed, 1 deletion(-) -- 2.17.0 diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index 9599204895..cae6a7773a 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -17,7 +17,6 @@ * along with this program; if not, see . */ #define _GNU_SOURCE -#include "qemu/compiler.h" #include #include #include From patchwork Tue Apr 24 15:23:40 2018 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: 134129 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2405001lji; Tue, 24 Apr 2018 08:55:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqVo8XLayATlrCp0ZeVactak3Mc7e757B9Tmgim0xFK+bg3NpZjRxBBR0P3azmtg5wW6Lrt X-Received: by 10.12.130.225 with SMTP id i88mr4620136qva.34.1524585314267; Tue, 24 Apr 2018 08:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524585314; cv=none; d=google.com; s=arc-20160816; b=up00tobWj2htCOX6syNj+BQ1sXKA7V10N+pURoDa556mUe0mx7w1EdRn5LIvRXoilc F2QXkQOvDGSZYDBQ0mD8rNhDAMQCerhLAEiOinFt7CTrH8gJFV/gjWzABi/TKAbsI2kH Dfsb1mV36C82yjQmbd70blQ3RdHcbovcAh+HWsB92a7AUUs9Ver8YRmgtkj5zd4RLUqp KxR0kO8+hgaTngmrgQoRNtixpvSeG5m3zIK5oqWqOhpbvoJMhye8Xq7lrBXtPfMEo59k G5BYB3nf0YJ9BGl2927letOhYahPXN+XNi3z5XZdPRK729d8P/+d09IMDHnfhsJoA3yE Xy7Q== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=vUipRvnkSMD8n2jt4YPtcr9YXU+GoIKvf8EYreRHLGQ=; b=c1Gjir7GspijxOUPRUDKlXGSGwuijg6ugQlLG0JDPmMXxogPuCbUJzf/od9QRBW91H HA7puxHoGbFCtc/rwJvqg93MuTo6YZCV424hEOzg7akr03IcFpdynxLJq4LMqIlu6QJs jSGpw9q0m1HoysiP//DtWquBXRDdhtCgr1bprt55b5pHSMtG/uXMkQSfl0aGnTrKxzW8 zagmFANnm4/5suabNRmQ1y1Qds5z9AUirtDdTYV0K8JPb29D+fnfXTnjS6ROa4DU+5jo W8l8llhOEvnUWzaPs90WqCHe66osd7m5gxNbLuGlomWvfRD6FBkkjkRiSMdfo2ZtCuTV h4Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VtEh5Fz3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z5si2670144qvz.49.2018.04.24.08.55.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:55:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VtEh5Fz3; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0Hh-0006Be-MO for patch@linaro.org; Tue, 24 Apr 2018 11:55:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwR-0005wl-Fi for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwO-0001N0-QO for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:15 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:51008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwO-0001LU-K8 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:12 -0400 Received: by mail-wm0-x243.google.com with SMTP id t67so1870419wmt.0 for ; Tue, 24 Apr 2018 08:33: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=vUipRvnkSMD8n2jt4YPtcr9YXU+GoIKvf8EYreRHLGQ=; b=VtEh5Fz39KgAmKzmJvvT/rDjICZC4L3SgABTgXijf2zZV8kKd1o32WXBKrCC5f5ZXc J+t/zkVOPa3ml/56XAisGkNwk7VdgqW/Ipewm9y1zVxLqikrS1fIIY92Peupf8uusQDT 44mz6LhSAq8N72JPkSUyn5oK3p3SN9av2Xxcw= 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=vUipRvnkSMD8n2jt4YPtcr9YXU+GoIKvf8EYreRHLGQ=; b=FAIN7v96IceCwFL2Vv5370xps5uBRtQJbzJxiNdVFutJnEw+hOnZjT5arySmWtX777 Fn8rX2Ib6qmFISLuZZgXqRYlO/0V5uraEwYUT5rnlA/bKZ9Ens9Tuh8Xqi9CkjBvJWFl Orh0xdL2QOWOyXmvJqUFFPrafRXtW+3B9I0IWH++OqLMRiXjYu1U2pHSYk3/GAC4x5JV nMcnikE95zo3lcHdu2M4e64afn1mSB8lIK5CSnwAROe37zg38ZbniiRgaEn5yiv/h9Uc hCNLHv77e9IOcb2IrY3sKh3Je8PTap+aNTTNsHD5x5467kqR6DAdN/qjXjDpqAOFTkUF WHHA== X-Gm-Message-State: ALQs6tDpvUfZimic30AGzAAKc0ntxnAlese1AF2Fg9Jxq26nTBxs63z9 q26ZlTDwr6dinhsKduzRzxlIQg== X-Received: by 10.28.84.3 with SMTP id i3mr12866642wmb.37.1524583991544; Tue, 24 Apr 2018 08:33:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w40-v6sm21479365wrc.69.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 099913E0B7C; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:40 +0100 Message-Id: <20180424152405.10304-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 21/46] tests/tcg/i386: fix test-i386-fprem X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Remove dependencies on QEMU's source tree and build directly. Signed-off-by: Alex Bennée --- tests/tcg/i386/test-i386-fprem.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) -- 2.17.0 Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/test-i386-fprem.c b/tests/tcg/i386/test-i386-fprem.c index 1a71623204..66f5a9657d 100644 --- a/tests/tcg/i386/test-i386-fprem.c +++ b/tests/tcg/i386/test-i386-fprem.c @@ -23,7 +23,10 @@ * along with this program; if not, see . */ -#include "qemu/osdep.h" +#include +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* * Inspired by 's union ieee854_long_double, but with single @@ -39,7 +42,7 @@ union float80u { unsigned int exponent:15; unsigned int negative:1; unsigned int empty:16; - } QEMU_PACKED ieee; + } __attribute__((packed)) ieee; /* This is for NaNs in the IEEE 854 double-extended-precision format. */ struct { @@ -49,7 +52,7 @@ union float80u { unsigned int exponent:15; unsigned int negative:1; unsigned int empty:16; - } QEMU_PACKED ieee_nan; + } __attribute__((packed)) ieee_nan; }; #define IEEE854_LONG_DOUBLE_BIAS 0x3fff @@ -229,6 +232,7 @@ static void test_fprem_cases(void) do_fprem_stack_underflow(); printf("= invalid operation =\n"); + do_fprem(q_nan.d, 1.0); do_fprem(s_nan.d, 1.0); do_fprem(1.0, 0.0); do_fprem(pos_inf.d, 1.0); @@ -238,6 +242,8 @@ static void test_fprem_cases(void) do_fprem(pos_denorm.d, 1.0); do_fprem(1.0, pos_denorm.d); + do_fprem(smallest_positive_norm.d, smallest_positive_norm.d); + /* printf("= underflow =\n"); */ /* TODO: Is there a case where FPREM raises underflow? */ } From patchwork Tue Apr 24 15:23:41 2018 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: 134142 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2437163lji; Tue, 24 Apr 2018 09:23:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQ0NY1jvb08IBJeE75ESRLUXAOHoNkKJx8RwlnblA0S6YWrY1ULBlXCIhjbHjF9NS74zTp X-Received: by 10.12.188.145 with SMTP id l17mr4706794qvg.228.1524586994209; Tue, 24 Apr 2018 09:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586994; cv=none; d=google.com; s=arc-20160816; b=e1vUp2q/pKmBLV1rEw0TjCwOJ7rHa2p7ct+CAvz7d5xnz/TN21VLolMfjb8McAd1Ac Z3Czy5ElDWi77wXAzU2EkIBlWATXXHIkpvox410Kf6O4LpX4pGJsfcROh7tPEANvkUAp +qg4mu89hUgzLF6ti9G+mV8AzDBlO0MKg/fUqU5ecQcidYFgyWvnykz5REMrKauQcnyS qPU/3OI1vojNBCSHpbjlJkoUbLBUJhZGb6Oqp2flHMR5BzFLVtDuW+gHGVlaXX4644UZ YhC6TJ19dGaCFUSM8qUjUKyRiDTPZJ2G1l5wUG1ZkUIhqLXF9zrzwalbyXOcpHzL1abv VfKA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Nbv+7gHHIWiMHYs1ErajOvYB/MPW5yzVaMyIBMZHvOQ=; b=Nf6HVcQ0FToV2w52LfsjqoHY451ei0OtFB2FumMHwl48YFqCE9GNOOqmeqfwgJqqmp HVKp4BH7Mk+xSy4GCdgL3FFb/2ncRGwc9cqtCeNxDguHjRpnfeYkfcDaHyBw7ctxDzna d7eiiBEkHAfJQGVM+JuktabPufnTT/adlwbnYexxZbi2GjFbRiD0j/onCxjoh8qDUBHw 65Km9yrETdABs35OoVmlts4FjVjD99/XDi/4asNawiznKc1iZrZgrmEa9qfnd09yab5+ cZPHRkGB7F/NZRwwY/2Y0NQ+GsC/waYcozayXZ6/mODGwzN5sOyM1MOfUZBZpN6fprXq GmxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iNA0e6Y6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i51-v6si36359qta.358.2018.04.24.09.23.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iNA0e6Y6; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0in-0002gg-J6 for patch@linaro.org; Tue, 24 Apr 2018 12:23:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwa-000648-CR for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwY-0001bS-4H for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:24 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:39447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwX-0001aB-T1 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:22 -0400 Received: by mail-wr0-x244.google.com with SMTP id q3-v6so40411812wrj.6 for ; Tue, 24 Apr 2018 08:33:21 -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=Nbv+7gHHIWiMHYs1ErajOvYB/MPW5yzVaMyIBMZHvOQ=; b=iNA0e6Y6jBQ4DnrSuU1yryPoufYjMHCCFGpCe8TgsRqyzVnbqUvsx4xuXzuwI91pFz syIDBgSL2CW3MVU4NooBH1RxPQdkFWTOilgfOcchPLPBqOI88i3YiKOeAMf2yAuxPIbA QkUwhTBVvyp18CZyf1BD+s8VzkH+rqSW4gHRU= 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=Nbv+7gHHIWiMHYs1ErajOvYB/MPW5yzVaMyIBMZHvOQ=; b=LopEUu0tA+p6TqXeDc/ysXBjKQURnBS8jbgNUCU+5wKF5Ls+oC+D9jQEskpkg8TnRM Uzrmi7vO1VZ16tDcUJ2zq96j6h3V3l8OXUa77h8OGJOTaz1hVuDFMDs8sDlzRGa9GwwI YmuzwWKaAjMzhSva21V/G3iy3Xj1/keGeRJku/3Tn8Zpx00ajud3suSU++HPlNFA8r+/ aiC1Eq3hwdjtP9Rj9yDZ9+B9orNB5KGKk2c92UdPcKHlmdcHnyAKYemSxJY0MgLCJozc InAdLoKw6OQI2F6ZI9pRUIiRPPo5jwi5zqnQTgWKqIa9r2wybaCoNplTsITdB+XQ2YAz w85A== X-Gm-Message-State: ALQs6tArgeSyU0bUvTHws6xsQDTbnUYAeqeK3qRdLH08NkCuJfP6PkwU e3uUMiHmjpqTfugUEh/2/QpTDzJ+Xzk= X-Received: by 2002:adf:88e8:: with SMTP id g37-v6mr19148924wrg.62.1524584000786; Tue, 24 Apr 2018 08:33:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l1sm8047123wmh.25.2018.04.24.08.33.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 1C36F3E0B8F; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:41 +0100 Message-Id: <20180424152405.10304-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 22/46] tests/tcg/i386: disable i386 version of test-i386-ssse X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It doesn't build for i386 easily and we probably need a better more methodical test for SSE et all in QEMU. Signed-off-by: Alex Bennée --- tests/tcg/i386/Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 39a1627650..80ccad3d7b 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -9,7 +9,7 @@ I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) I386_TESTS=$(I386_SRCS:.c=) # Update TESTS -TESTS+=$(I386_TESTS) +TESTS+=$(I386_ONLY_TESTS) ifneq ($(TARGET_NAME),x86_64) CFLAGS+=-m32 From patchwork Tue Apr 24 15:23:42 2018 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: 134128 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2404560lji; Tue, 24 Apr 2018 08:54:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHaEa8YYJAKb75WBzRjSecdOP9fHhHb2oISVS0wNlIGRj01kj9lHpC/1TZxt91KaD+VJZO X-Received: by 10.12.177.101 with SMTP id r34mr3081732qvc.48.1524585286143; Tue, 24 Apr 2018 08:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524585286; cv=none; d=google.com; s=arc-20160816; b=i0ddTGzJxvYMWOHw3BhL9ed69fzYNpPwZAfun47pxBY4/MJnNwNtH+EDc8I6vsorrQ jb7LAq9/+sBM8Uz/ZBG063AidA8lBC5Q2PxM32e02PC8VuN1SXPPojd9RM4xXGouRvv2 FTLzvcWxyZyj281wTyC+1N/PD6wgXVq5SQ+UPk/4hQC/PAYZl0qurSEAiz/9DYKHKyIC wmrkRoCmhxuho6P24PF79bxGnLBEhm2/T0g4TW0G3CWBArtKNvGwuWAqSbjdIS5j7CsF 7z9ru9gqf614CxVQkRrN5w4RaiW3I39ezbcnnnLHb8m6Se3/8MZUwQZA4AzL7P5W3KfP vWeg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=yn6/oH6OF0bVQYOKasv/urrHMgLaPPuFArtjCNiDkOkDcSMizqQTZ3JTpXsSZvk8v6 CeJXrbnoD+ixbj5aVnRO/F8kYTClBZHAdZdMZVvc2ofXDU9NfeQfzv5ypzW4yIgCV4d2 wk7WsXX74h3AxomNcByjLHbvINAuQrnUbP2OHUTgX2v7Z4837jYoMvvZhFj41h8RjMqV ISTbrS5NO54lD4RDmCsIxOA4C4WJRYy+pcJnboJTPHNnzuktQZ8dz5BfwGwHFtwoDMUy v/S/XIugstgiAEb/wBYm89/+tqOX5Dn4VdzFRv1nfw3KS5F8wmeGBq5Lp45cDiS72xoV pmFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bD+2YSCT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n8-v6si2661540qtc.341.2018.04.24.08.54.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bD+2YSCT; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0HF-0004x1-Hu for patch@linaro.org; Tue, 24 Apr 2018 11:54:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwR-0005wk-En for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwO-0001Ld-5q for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:15 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:40619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwN-0001Kd-VI for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:12 -0400 Received: by mail-wm0-x243.google.com with SMTP id j5so1609397wme.5 for ; Tue, 24 Apr 2018 08:33: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=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=bD+2YSCTCrdZr5o7jbiwET4g+m/p2kBHAtHonEN9Y6+ydp6wqqKl0kEWVlpDnoKeYj 2ntSSBOD7sZUU1HV1aEUJIPPlYoOzC88NGCJHzD0iKZe8pwDEb4ZHRRttw/tR8wU91Mt uLA0OU6Pcdt0O2Ba9ilOLPkr1jsOCoVV/smdE= 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=dUQ4NYkm1FDSpeJVW1GGWk4eHQ3Ws+KnbwIdcaDrcgo=; b=gvCASnH/luq1lfC1JMwPcGghJj8CGVc6DQkdL999a3OnCq59GuWTaDOoRE4ecgBpX1 2pjZDZEPc1TnimLs76iDmcPXxk0YL4Qw4GxffUwtuVbzuJfaryN4CmVWVRaXrXNGulSt nFpVspWx9xi6FkC90B3MLlL65BL/IlY1fAo3+1zCBJUug1O2vh6T6m7OCT9vv+K2EPwB kzi4I7b2uFyOPO5PCq2bifR1NTlFdeZILVlOHQ0pciiJcyN7VeTswnDBjELaDbm6ej/2 bKPPqvVJzD6Decm8M5inwsCVAWbvODJ3vBo0X72SKH6DO/eUAtJHF1R/qIk/MF6LF8th /Fsw== X-Gm-Message-State: ALQs6tB5QiMwc2XLjmtWuM2YoVhNJGXy4pvPP3kJRjp6aIUC4YAXBc0r cdJ29MR8qcWT+EBc2eM7GGJCUw== X-Received: by 10.28.32.132 with SMTP id g126mr13787717wmg.52.1524583990756; Tue, 24 Apr 2018 08:33:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t46-v6sm16750487wrc.95.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2EA263E0BF4; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:42 +0100 Message-Id: <20180424152405.10304-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 23/46] tests/tcg/x86_64: add Makefile.target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The sources for x86_64 are shared in the i386 directory which will be included thanks to TARGET_BASE_ARCH. However not all sources build so we need to filter out the ones we can't build in the 64 bit world. Signed-off-by: Alex Bennée --- tests/tcg/i386/Makefile.target | 2 +- tests/tcg/x86_64/Makefile.target | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/x86_64/Makefile.target -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 80ccad3d7b..27086c3f2b 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -7,7 +7,7 @@ VPATH += $(I386_SRC) I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) I386_TESTS=$(I386_SRCS:.c=) - +I386_ONLY_TESTS=$(filter-out test-i386-ssse3, $(I386_TESTS)) # Update TESTS TESTS+=$(I386_ONLY_TESTS) diff --git a/tests/tcg/x86_64/Makefile.target b/tests/tcg/x86_64/Makefile.target new file mode 100644 index 0000000000..74f170b9ed --- /dev/null +++ b/tests/tcg/x86_64/Makefile.target @@ -0,0 +1,15 @@ +# -*- Mode: makefile -*- +# +# x86_64 tests - included from tests/tcg/Makefile.target +# +# Currently we only build test-x86_64 and test-i386-ssse3 from +# $(SRC)/tests/tcg/i386/ +# + +X86_64_TESTS=$(filter-out $(I386_ONLY_TESTS), $(TESTS)) +X86_64_TESTS+=test-x86_64 +TESTS:=$(X86_64_TESTS) + +test-x86_64: LDFLAGS+=-lm -lc +test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) From patchwork Tue Apr 24 15:23:43 2018 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: 134154 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2454987lji; Tue, 24 Apr 2018 09:40:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptOc30SGPdJ6+fZfzRvMwDwZrOlDwe+y+MTGHSWL209lwT2hxdYkGJkZVGCPHkRmKQLmMA X-Received: by 10.55.26.102 with SMTP id a99mr27149720qka.383.1524588058108; Tue, 24 Apr 2018 09:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588058; cv=none; d=google.com; s=arc-20160816; b=huBvoepJC6YGFvw2P5BlVKr47JBoRVEkeFeYQIhWj0Z8WTF0Rae2Bs1rAX4wv1SARc CtdIoHVKegyEsdm9gLN4Rq7g0uruApohvjfobioS2LgNNPs3XIfHYZm/32f59YcgAfS7 xcFMMe5KJ/QgFZ+io9+ptIU4zBuUfW2Z9yoirW/EA5zfo/joDD+BppQEN4bTEZD4KxaH n3Yz7I/ORPZjSlS7/2hT4Fm6RRdwXtv9jRYTlVww7GgfYUImCYJPQbwurpGJjSJyVKJ+ XOZLtMzlFHbMAv5keuYt5WdXowxZDnyrLyDkDAuE0nCiVqNDBY8TNWpAfI5NJ6OCFuwx UwEw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=q8y0d/0627aMdVvxs92sxHt4QJgeNenatTcyteyOPn0=; b=nAojrTibzpjmVnsriYhOzyobQvYFl1+Pa1rlnzJJUf3dW5m3kQkb4SJfgMHQAz2xsl 3itV/ljiNSc44Mb1wS2EkJyzwiUJN7DlMzUmnyJQciNVZ0etllopw1HO9r187FMJTNyb ObmPZuT6bQIJdul2yWo4K/HkKJSpY4clAf4YFU50arWBP8cxGdNhj3Nu/L2vunS1dHFo DgZPrA2xBQQZAilt5e2IxlHHU7FUECzRldSBQb62DaxuyGY23kLJh9SQSCjAG5pD/9qu //VidCCqU08xAjTwVvDaFgXflW78hO+zMkoHshI/YK3kSEkkOUmQZlfCH/Bybv17g+VI lhrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hR06ZOWr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f32si2538899qve.285.2018.04.24.09.40.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hR06ZOWr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0zx-0000N9-GU for patch@linaro.org; Tue, 24 Apr 2018 12:40:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB068-0005DC-4k for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB065-0000cP-Ji for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:16 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:35177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB065-0000c6-DT for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:13 -0400 Received: by mail-wr0-x244.google.com with SMTP id w3-v6so50431382wrg.2 for ; Tue, 24 Apr 2018 08:43:13 -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=q8y0d/0627aMdVvxs92sxHt4QJgeNenatTcyteyOPn0=; b=hR06ZOWrJ7S9nIBeH4f7AOs4kVtCIOhbc/QnhPkKf3ZBa7XocsVSFjhI7g/pU+8RtW mIKl8vssblbx8iBSr+Jpdvk6Yz61trbEZwohZP4JPbF1t+KVo+9xBNi06tKxbXCtAtCw UZInsJEK8nMYtaSjQnRGit48aDQjZMBd5fQKs= 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=q8y0d/0627aMdVvxs92sxHt4QJgeNenatTcyteyOPn0=; b=fIq6Pb9ZxAmIfBq7Qn/tp1g1QEInDire241E47UGzwcJXRB8z26jghZaIQiuSBW+kd mzP50R1A24k1u6n0cR3P9jwNPK0AMG9IXYhc0oAUQTYSoFpGtenSLz1BZL/QcrvYyW+X ArnkglJdiakSM6HPiYKbm3MpFQVhJ2pJcdLKx123Khe9pA2dOy8zzJ6r1BU3FKtZFpS1 TBVZUt55rXBPZjsWxKKtcYEpxtuscbYmmiwOCYpniZ4qFPORsYIi3fkiwfj66t+5YCk5 QUCMD08ruCtSE313A9X9lpCaw/bl48FTEPJFYMAKqw0QNcy172NhUeNpPj8C0GkYhjBY sVfg== X-Gm-Message-State: ALQs6tAs6LUAj4Puahjdwu7Hu/CbkJAtSoH6b7hh3OGAsBJ9NSS9BKnL SIKCu2hBG1Ss1wRs+luhHUuqxQ== X-Received: by 2002:adf:a98f:: with SMTP id b15-v6mr20044876wrd.48.1524584592282; Tue, 24 Apr 2018 08:43:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a69sm9918544wma.7.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4046D3E0C74; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:43 +0100 Message-Id: <20180424152405.10304-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 24/46] tests/tcg/i386/test-i386: use modern vector_size attributes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The compiler complains about the old __mode__ style attributes. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/tcg/i386/test-i386.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index cae6a7773a..caef4da176 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -2106,8 +2106,8 @@ static void test_enter(void) #ifdef TEST_SSE -typedef int __m64 __attribute__ ((__mode__ (__V2SI__))); -typedef float __m128 __attribute__ ((__mode__(__V4SF__))); +typedef int __m64 __attribute__ ((vector_size(8))); +typedef float __m128 __attribute__ ((vector_size(16))); typedef union { double d[2]; From patchwork Tue Apr 24 15:23:44 2018 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: 134140 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2431588lji; Tue, 24 Apr 2018 09:17:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48cA/RiHW+jqHn241NUm84pr4cLw2T3TuCGDdNfXY2wuo6aB+kNLokbTEtn4N+EFZMZLIwq X-Received: by 2002:aed:2962:: with SMTP id s89-v6mr27568147qtd.162.1524586667866; Tue, 24 Apr 2018 09:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586667; cv=none; d=google.com; s=arc-20160816; b=lhUCnGSenqDiJYukrF9f+pPYu47XPLlifQ3OuYIhHuKFuRkHto3OGEDGr5oRejOyPT DIAcP3HP03IaMRBvto94j340L1ELxPh3nAkPmBhKhfdz6WPO1k3F5XHrjUMwd41b6eEf S5S8I8C6ICKMFL59A8PRuKIX97kRzw8DQ6JuhDelzU7PcMh1mJlQ8+ylvGxXRYudQXbf +NgnxfiuwRk4VyiDZhxIuej3Rottl6d/aIW8MDO79lvjlCaePcFmDOg1+ZEqcoi83Hej Lye/XQPTsTpYjWcofEkSM4okU9dElspoVL+Oirj1QmrYanv8QrcTUe/k7m9ckeNf8K4W LVqQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=ekjhqvnR95X+jHr1V+i4OxaQLzEJ58BKrFKB0zdZII8=; b=Ym5kGo8sWBF95djx9l60PI87ZZRp4K7cVGZNhr1PzG2rq19DwdXlFThIzs1zbU795I uvxTB4mMv+TbzlOCNd5jnmuwqFetkGfNgZsh0jP18S24qbOxB5uwYT8h1qEpCkNPsRcI z4Rm0LPsOgCCerUOWvzDZj3ErzDjfyqDNI4z1yfHth0TlgW8bmxftBzF9d6GN3owDmfr zuOO8hgxBNeugfQrHoynEhobcPP0aFlZ5uws0vgC2DbBrWAjNL9WrbkT+PzpxKtq26P1 mWk0Farr8XVm0v6O8sl+vV+eXYnQWiB8/U0xn0asHPN0R4H1DbOGaapeAwjdlaqNlj+/ sqQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RAFcDPNg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id f84si4745986qkf.9.2018.04.24.09.17.47 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RAFcDPNg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0dX-0007dE-9c for patch@linaro.org; Tue, 24 Apr 2018 12:17:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwa-000647-CD for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwX-0001a7-AN for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:24 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:33393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwX-0001ZI-40 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:21 -0400 Received: by mail-wr0-x243.google.com with SMTP id o4-v6so141298wrm.0 for ; Tue, 24 Apr 2018 08:33:21 -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=ekjhqvnR95X+jHr1V+i4OxaQLzEJ58BKrFKB0zdZII8=; b=RAFcDPNgaNv+5ZZJVwsV4XfImz4SfCe2hUbjBjOrGDqLg2EoY4iPXT3v0y6Vv8+mhW QnmzzRq80b8iA+5ZwYXrM9t6rHkXsSrn445RBLzB0xI7euWzfT78ZryxoIUWQDGqP4PF rpI6adlj5IOxBX3pxuHB4NNqhOV606uWVR4gE= 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=ekjhqvnR95X+jHr1V+i4OxaQLzEJ58BKrFKB0zdZII8=; b=G0yhi3oc2vc4QbuoqMi0UKfhe/6Jb/O3TrC6qfb+CS3KsiSwSw8hjp95nBgWF79fTc qHQbRR7fKFeaKA9NyWzjPDBoEkrNTABnxYhZn5PbGEAAgVgs43MZTbicpk9YRb8L3uNX OF3r4NhVEyNpxRo/WQGbbW9AuzrVJaflZYqnxVIy+YYDIMwJ+xb9aclo4HQ7zKlxm2lx 3YSwCJSiv5DzN3h6oCt+8RqKUXCOSGENbUI294u5hVu4owrNO4TyQMDNY2ebio/B9Yc2 d13yYg+yaSN2BjSQeH8oc79Pp/o50Fnpt5c+b6WC5MXZ9bnvmMU0D/S0NMDMuR3s/mSC Jhmw== X-Gm-Message-State: ALQs6tBr0YrH180cQbwjxK8WDN1S1DXZGslQt7WIebWs0at1pge/I+Ey 5yMKKje7h5Y/GYm9pcOewcYRgw== X-Received: by 2002:adf:dfcc:: with SMTP id q12-v6mr16038241wrn.68.1524584000029; Tue, 24 Apr 2018 08:33:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 72sm19538643wmu.38.2018.04.24.08.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 515253E0C76; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:44 +0100 Message-Id: <20180424152405.10304-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v3 25/46] tests/tcg/i386/test-i386: fix printf format X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- tests/tcg/i386/test-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index caef4da176..a29b41e764 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -2258,7 +2258,7 @@ SSE_OP(a ## sd); "pop %0\n"\ : "=rm" (eflags)\ : "x" (a.dq), "x" (b.dq));\ - printf("%-9s: a=%f b=%f cc=%04x\n",\ + printf("%-9s: a=%f b=%f cc=%04lx\n",\ #op, a1, b1,\ eflags & (CC_C | CC_P | CC_Z | CC_S | CC_O | CC_A));\ } From patchwork Tue Apr 24 15:23:45 2018 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: 134150 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2448695lji; Tue, 24 Apr 2018 09:34:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8T6jfuLIO4It3HM0eqY5FfvabIZWjpXUj9DSoR1MUuFflpirlR904aqW7sciIaTb66ZLr X-Received: by 2002:aed:3fda:: with SMTP id w26-v6mr18363822qth.15.1524587674018; Tue, 24 Apr 2018 09:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587674; cv=none; d=google.com; s=arc-20160816; b=x7j0bhOrPc9HAGqb/GN/1Agle3ZuikrcWofbsvKRy0m7Z0GzullK9HvX4eTLkd+oSc VO3gMCIBfC5WI+CeFQQCeZv0nJ1JDwfQsL0nRXr75t2ptjG07BQvO2Z+9EMuUM4phSbB BNVHVRyZzzR9XYzs1Q4yqSS2yOLvJlUMQjo8Q9xKqesvLbEn37pmqWPTDlR38HelzOe/ cc1ZJhx+eDMNjkN/QWXX6pHgi70qwVMjlKzSGcWHXXzUM06Km4zsKjOYkmSefG6Y93o8 ztrjJHUw0J34Jq/dqFW29FHy7dKBtryUmmuJiVtDbYVP/3qAkpFX9CfrEePvHtxbTKPd RCqA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=9sYeyk4RFVyWd84TGNAS36fJo3pPsiRFrqPI49kOpUg=; b=ryvkp/VI1PAUmaGADuAdm0Zf+EQ4kQ/SW/No7/q6swJ61RZz/ZFgdufiNm1WM+9GA4 FLioqGfRTtPOkQwD4Oc//e/4ldpjdZ43i5KE0a1piXdgbiLH4BwsBBFy7fv/OXyPdOuG 5dV0uN3uGT5LeBuOTQgH30OY7bbfBLRKqrqsOheE+pJxWZdumdiwp10Sd8clnMD3GcgP wV8nFTiYcsj7If0FFcxuaZt+1QIqjBR0ytFYTwcWCvCxKigMDP4/MCF6WBp/YYFnxr+Q 8QnoA2I56xuZcJZP34aIMdu54m/HQcSqkPB9FTCZUUbNuFrmVBnxDEKlE6hxLj9F8S1m MzAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ce5xMnoK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id s11si2706333qvb.254.2018.04.24.09.34.33 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ce5xMnoK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0tl-0004Fm-Ey for patch@linaro.org; Tue, 24 Apr 2018 12:34:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06D-0005JF-NC for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06C-0000iF-JB for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:21 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:53771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06C-0000hv-Bd for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:20 -0400 Received: by mail-wm0-x242.google.com with SMTP id 66so1921492wmd.3 for ; Tue, 24 Apr 2018 08:43:20 -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=9sYeyk4RFVyWd84TGNAS36fJo3pPsiRFrqPI49kOpUg=; b=Ce5xMnoKMQYyD1885GSXj6RcdJnO12qEObh+X+wc2MANlPuuqXlKl35bPcgp4y1rSI WC/9LIDBwdVgAJqszaxWau9Q4MzPyKDODZLLdAfcJlWgnxI+yMr633yV9l2idm7iRbJr GlxqpLhDll7A93ChtnxuGgdZIBMNEkZpXEVpk= 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=9sYeyk4RFVyWd84TGNAS36fJo3pPsiRFrqPI49kOpUg=; b=Imb4QFYoDuizUK/mYeorm0Y6RD8+jIUPVbHSk9erpXXG+3yZCzYWr4n0wHdRuguGyu T+kk1H0NSK2cGwd5MsfNryrGArrcIRSyLwzqL788Az+2b5Va4PFGFAF6kiyAgLQ+Ev+h wDuvtbK2AT8FPmqPmwXXPCmDDfZmrTkzMvcltDBcOUgw4nbhUK2RgFbN5KSc17OQ4oce oSI5GWgQt05PgxGXUbbFL/aQww+kBUCVO1o/jYZjpMOTwu/XACR48dai6CdlgqqZdONU 6Rt+XqCzCY3OveuzrEcc4+wphJzdJj4ZJmMdGfUzkOaLkqaYqyFfZv26S16R4ribO3rk siHA== X-Gm-Message-State: ALQs6tD1JVyDKnOR6h6Xm1lJFI3J++PAPsfQbsbo2aBKnvvLg4PSsYck zcnEd98cj4QSJN0e3oDhDhzvLQ== X-Received: by 10.28.111.136 with SMTP id c8mr11257219wmi.9.1524584599170; Tue, 24 Apr 2018 08:43:19 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u36-v6sm26709645wrf.87.2018.04.24.08.43.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 65BC13E0CEF; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:45 +0100 Message-Id: <20180424152405.10304-27-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v3 26/46] tests/tcg: move ARM specific tests into subdir X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These only need to be built for ARM guests. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- v2 - do VPATH manipulation in tests/tcg/arm/Makefile.target - merge with fix hello-arm test --- tests/tcg/README | 9 --------- tests/tcg/arm/Makefile.target | 13 +++++++++++++ tests/tcg/arm/README | 11 +++++++++++ tests/tcg/{ => arm}/hello-arm.c | 0 tests/tcg/{ => arm}/test-arm-iwmmxt.s | 0 5 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 tests/tcg/arm/Makefile.target create mode 100644 tests/tcg/arm/README rename tests/tcg/{ => arm}/hello-arm.c (100%) rename tests/tcg/{ => arm}/test-arm-iwmmxt.s (100%) -- 2.17.0 diff --git a/tests/tcg/README b/tests/tcg/README index 469504c4cb..625f2326e6 100644 --- a/tests/tcg/README +++ b/tests/tcg/README @@ -5,15 +5,6 @@ or they are architecture specific. -ARM -=== - -hello-arm ---------- - -test-arm-iwmmxt ---------------- - MIPS ==== diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target new file mode 100644 index 0000000000..bc6962ecc6 --- /dev/null +++ b/tests/tcg/arm/Makefile.target @@ -0,0 +1,13 @@ +# -*- Mode: makefile -*- +# +# ARM - included from tests/tcg/Makefile.target +# + +ARM_SRC=$(SRC_PATH)/tests/tcg/arm + +# Set search path for all sources +VPATH += $(ARM_SRC) + + +hello-arm: CFLAGS+=-marm -ffreestanding +hello-arm: LDFLAGS+=-nostdlib diff --git a/tests/tcg/arm/README b/tests/tcg/arm/README new file mode 100644 index 0000000000..e6307116e2 --- /dev/null +++ b/tests/tcg/arm/README @@ -0,0 +1,11 @@ +These are ARM specific guest programs + +hello-arm +--------- + +A very simple inline assembly, write syscall based hello world + +test-arm-iwmmxt +--------------- + +A simple test case for older iwmmxt extended ARMs diff --git a/tests/tcg/hello-arm.c b/tests/tcg/arm/hello-arm.c similarity index 100% rename from tests/tcg/hello-arm.c rename to tests/tcg/arm/hello-arm.c diff --git a/tests/tcg/test-arm-iwmmxt.s b/tests/tcg/arm/test-arm-iwmmxt.s similarity index 100% rename from tests/tcg/test-arm-iwmmxt.s rename to tests/tcg/arm/test-arm-iwmmxt.s From patchwork Tue Apr 24 15:23:46 2018 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: 134151 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2451336lji; Tue, 24 Apr 2018 09:37:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqxNXWIWAwOUgQlSlHlQXnJwpVGAKpQvqPOiZEnHj5yJvdRHJvcQWkreZ84hYpHcLfgtvpQ X-Received: by 10.55.43.105 with SMTP id r102mr27207937qkh.26.1524587823412; Tue, 24 Apr 2018 09:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587823; cv=none; d=google.com; s=arc-20160816; b=n4eMwJ+dbp9fH46SglkT8zPsn16hN18Chr+IiH0qMnvz/B6WVtuyeSWQEmVx/9a6EX ziPD50PtWZwcjF4sG+Gv8b1gLO2oQhwMuvTBwfD5nZEok2bLrao4v0mI/Kd0h9N4OG0L rrUkilkC2si7VrGW3AG14uOPRcs/K8XxZwLoRyblNX3rbf7zH7ykAe0As7x/b1VfJjsC sRgj5mHm8e8Q8cR+OY+YbQwuE+5XGuWvrSoqLFC/aYsEwFRXvRzN836EalXx3MoI0EUy V7+rOVaKPTxdyBU+O3OWTwq9gZNtNmREX/0wKEBx2ahyI5ijRqsmZrT8drLys2YxmE1U DwIQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=pj18XZhZR/Qc6G0FNDx9yQSp1u3QyGzeTNKFrokJOwc=; b=Xi8CtkSOcsL0mGS9sy7j+dXbJ5YOohas3vhibJe4BBeNUxBwosmDHzr3DYX9GsgJkf v4STRep1VMQtzCfh2Gr9FS/QF8fvBvoQ0qm5wyZ0/z78nbAcxZ5PsvzkM2Y0iZd9zcky k99jaJf8yC+jNZAsuZzClYFUrq3abk/9/qzIvggE0q1aaNJE5WMg7WdVtLsuTrOudy3b 7Dy7/fW5dCCIrwmhea8iEBaiC2WuY8ZRA7p0NmxzzU7loaj4jpMsx3LmOf56CFRwxu3N bdzhmLQoBxRUvqGIw5K7QsmZJt0aQyolbs6/eMRsbb5UQzEID7TRVn9jTD9mI1qALV4B Hgqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RYUqfiu9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p13-v6si2486241qtg.64.2018.04.24.09.37.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:37:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RYUqfiu9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0wA-0006KA-T4 for patch@linaro.org; Tue, 24 Apr 2018 12:37:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06F-0005LP-Id for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06A-0000hH-WD for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:23 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06A-0000gJ-QT for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: by mail-wm0-x243.google.com with SMTP id x12so1063167wmc.0 for ; Tue, 24 Apr 2018 08:43:18 -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=pj18XZhZR/Qc6G0FNDx9yQSp1u3QyGzeTNKFrokJOwc=; b=RYUqfiu9ykeJ/krFyb9+sG600/cVrroTIY5foZbb+cF1aHTZAAsIFGJtFEJezFFL0U hjPv9LWQUQhxw3U3narcO3a3a6XjVIfNqTztUThLb7aiLppF4rI/SjDiiakIOhBZda6R 65J7V1wHhVLzp3UaMoUhj6Lwu25oHazOjx0wo= 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=pj18XZhZR/Qc6G0FNDx9yQSp1u3QyGzeTNKFrokJOwc=; b=UDE1iR83Xjd9Xfehz1scOkC/phKMDj+isOZ0Sd8Flgerjs4TnnWPFdy82dXRb36lQX Il+AV5gEmMAhBwPxN6ga2FDFvYgkQAQ+iHpbz8521R5X33IL4wPlMMemYka0Y3nH9jdl mqXvPZd6rQscBsQ56tPshLGjN1OZ0aPA2aASoWeBIMJ47rFH/0EcJKyVQzSzI+D3YVix zIt/PmmMMRvcYCp5OIy0HIvx1jRL+woeUME0tHmZT9UHrMejfD+uXdzKPdPhYtJXvf4X CdY93Y6MFA8nfTrulN3Yjp5rbVQzcNv0onEdzcrSoEKdiYpD8bhXsx7f7Z7PKchO4tfL iMTA== X-Gm-Message-State: ALQs6tDB1NtoxQXAsUnXMlXzI2wE5UrWb1WCExW72MVT0A7f9+38XtHp gNV+8nJPXDALAJw96gQZgmwSAw== X-Received: by 10.28.6.149 with SMTP id 143mr13059740wmg.61.1524584597641; Tue, 24 Apr 2018 08:43:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v111-v6sm17325551wrb.30.2018.04.24.08.43.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 775CD3E04EC; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:46 +0100 Message-Id: <20180424152405.10304-28-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 27/46] tests/tcg/arm: fix up test-arm-iwmmxt test X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We need to rename the source file to a .S so we can do a single-line assemble and link invocation. We also specify the additional CFLAGS for the compile as it's a non-standard ARM binary. Signed-off-by: Alex Bennée --- tests/tcg/arm/Makefile.target | 5 +++++ tests/tcg/arm/{test-arm-iwmmxt.s => test-arm-iwmmxt.S} | 0 2 files changed, 5 insertions(+) rename tests/tcg/arm/{test-arm-iwmmxt.s => test-arm-iwmmxt.S} (100%) -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index bc6962ecc6..be9d3fb4a1 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -8,6 +8,11 @@ ARM_SRC=$(SRC_PATH)/tests/tcg/arm # Set search path for all sources VPATH += $(ARM_SRC) +TESTS += hello-arm test-arm-iwmmxt hello-arm: CFLAGS+=-marm -ffreestanding hello-arm: LDFLAGS+=-nostdlib + +test-arm-iwmmxt: CFLAGS+=-marm -march=iwmmxt -mabi=aapcs +test-arm-iwmmxt: test-arm-iwmmxt.S + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) diff --git a/tests/tcg/arm/test-arm-iwmmxt.s b/tests/tcg/arm/test-arm-iwmmxt.S similarity index 100% rename from tests/tcg/arm/test-arm-iwmmxt.s rename to tests/tcg/arm/test-arm-iwmmxt.S From patchwork Tue Apr 24 15:23:47 2018 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: 134134 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2425099lji; Tue, 24 Apr 2018 09:12:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrs0gkMQyT8mnxPHSbjQ+oO+d4wztQTO0SdUxzlYad7ZL0U6/g/eGAZZOENsvRr5JOAj8yf X-Received: by 10.55.93.71 with SMTP id r68mr28302710qkb.70.1524586329930; Tue, 24 Apr 2018 09:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586329; cv=none; d=google.com; s=arc-20160816; b=fVe/L9bRk76bZoMCbYDBW8+rx155CzRBBkk1PkhdhQncrim6EWZd82k1r/+BGxQfsb Ntt/ashFt1eGJqQS1uG57YPhCYRUzvUKDJSU0T+7CkfJlXPKhRlw5tmzCm8EBO7c6Kkj pZOHByAnN32Nlu6VJUuzl4pffqqeTaJzZBZgQGn0xlmoiRUBanWbYTVoELVnUcdAKDai pR5P0HKItNtoQNJYSHCYf/5wfi5xKWLEK4JbB8W0sdE7K2SKvXj9zEGosCwYpu7RonWL EFvbmR2sjriJVb8+jjThEggmA0i3Yrh1NQ8QYBmz/1fEb5/h4LO0A7COdtZWETC6tq71 gOkQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=gNLVzucu4VwedbANj/UcP6keX1N6ceHAqN5yFr0ldfs=; b=XZnYkXmcGlN90gHjExchCpZ0apTIYHH38m1Eb8cXd9mn+2J/SQ95QicezvNro/L7zy 1bqS+9HtxXcOngSI+z0JpvgCApxG5EBWHKffsexPR94sKEXCYq93asAwEKtqd24U6sgv CYELNoGIB9sCyZD1doK5qpMLnicJ8DSL65oz4yOZkKrqpbJ1oS8xLeoh75FF3WXTBdV9 v2NO6Z3hX5FMT9ApFnbi1ivScpkCHkXl8bDECWhBpQcbl+J+etpJeXDui8e41hyWpghn EMO/JiTiz6lHbBgNDEdrdLkkNrg6TCdbwH7/ANLjxIy7iZh+Xnec2gmg1idcfako/tYU jp0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YBbl7cYx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 24si2627265qvk.27.2018.04.24.09.12.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YBbl7cYx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0Y5-0002QW-A6 for patch@linaro.org; Tue, 24 Apr 2018 12:12:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwT-0005xR-Gs for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwS-0001Tf-BD for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:37702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwS-0001RL-2m for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:16 -0400 Received: by mail-wr0-x241.google.com with SMTP id c14-v6so10281993wrd.4 for ; Tue, 24 Apr 2018 08:33: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=gNLVzucu4VwedbANj/UcP6keX1N6ceHAqN5yFr0ldfs=; b=YBbl7cYxCyhLcgKA404FgyePxlshMZ+z2sSM6GZoJfdKzyqGeAMEwvi9/JS6bbq20b tMwVWh8p/9Rh8yQELu6Wyp4ZuMNHcfw7bw6xVtp2+Rt/a+iCeWUEqmkY1gd97zw+teiF xqsPu5nPVU2b/nolBrr5gVB5z0mtMfixYpoWo= 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=gNLVzucu4VwedbANj/UcP6keX1N6ceHAqN5yFr0ldfs=; b=S4TNS1W13HqiKm5c8UfHJJPCjx2+09bEfIOlKEHV4YY3LZ4PG66q+/YFcImfOfRhZx 4j+cOEFZXT8/akvM8wPv6E6VTvcT9KLaNKYr830cplimiaZCS6Jl68F6KVSO5mNUUD+o +otbcJFblzuqi6Q0H3mMT9ZL9SOra3WQn8b+HELyJgWqnVwNslhIed1hLNjLcsY7vXLu AGc2Ipc7mfLXBlObU9TEfXvV78x/wDSnSUsuXVgsZvCRu8UzjSzoeNrA3l/wgVnuO297 OnM4AjBjWif5t59/RCHUa9FInL0hou5sE7zZhrMUP0H0Goub9uP9Oe+JVqxhddJBi5G7 9IYA== X-Gm-Message-State: ALQs6tCga7E/085FhqGs0YPPbtSOdhnCVxqcISzEL3WLzw1fXe235cf3 5iJqgGfmBoo0+BitJf9MqF94cQ== X-Received: by 2002:adf:df07:: with SMTP id y7-v6mr15104714wrl.279.1524583995034; Tue, 24 Apr 2018 08:33:15 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y45-v6sm16439498wrd.97.2018.04.24.08.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 8931C3E0D76; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:47 +0100 Message-Id: <20180424152405.10304-29-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 28/46] tests/tcg/aarch64: add Makefile.target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Nothing much here yet. Signed-off-by: Alex Bennée --- tests/tcg/aarch64/Makefile.target | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/tcg/aarch64/Makefile.target -- 2.17.0 diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target new file mode 100644 index 0000000000..4ac8fbe73f --- /dev/null +++ b/tests/tcg/aarch64/Makefile.target @@ -0,0 +1,5 @@ +# -*- Mode: makefile -*- +# +# AArch64 specific tweaks + +fcvt: LDFLAGS+=-lm From patchwork Tue Apr 24 15:23:48 2018 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: 134141 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2432228lji; Tue, 24 Apr 2018 09:18:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoL/EV5m6A3RMTk+4+SIstLA98fcpj+Y6KLcAkMk2YJmOIm3fZCbVivqJsa95ZCM2pR8LVe X-Received: by 2002:ac8:2bce:: with SMTP id n14-v6mr28391326qtn.38.1524586707946; Tue, 24 Apr 2018 09:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586707; cv=none; d=google.com; s=arc-20160816; b=iMV9OFw3Ai+t8hfKq4tlecTyTzBOaTGv3ta7P34DrYH2BwzF3QvpVuWiNx9K/Qphno qxHERiKojHQS2kDV9gOtwE3Fvy4PTJcZHw3i3XwPfv3h4vupJfBVLpjWiYBtZpJIHxq9 t310zbY0XrrOHjaMnoKNKFbCFHKNj6fcLkBBqjC7ekA0pTKXgmZKkuxUmCeFgux7zJsh xMPydu0tWWwbn/VhZbi1vygbRkURgnoh/mfAg+GdFYITTYpys0Kp4c+k2LqbxKgXsXqn Uy1J5+aYpGDLG1dJ6CY4zUlAfb16u+Gu7J64NaOOG5QIFHek5PJDDhLBm7AahrlcXEpL 1bKA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=wDa+1OvPqvIGn3OtE5JrsRTXBLfWbyx5z+QlV4Vb/rM=; b=EtbPiFrunZoL3JaM42AbxTEMIvQqe8y/kkQ+3Uvhq7FxalA7OOD3/s4l3FmV4rawWz +ib+UDQ2+H1Lr5c0lqE1hRAdqiLhorwaTTehm1aQN18VH4emRArURnf3Md0VUrL+y5Jp guHdO1u+gJ8EFoHSmNqSGyxyWezwPFw4pkIMEhPYH4iKiYjazi481MP2W302TSWFusvN menTkUB4q46JLgFb6Gt7hV/MUsNj8Cz5WIBulvhmwBtS2yGkZdTCtVAXDzkjZm1k55uQ enaGpgpIIXslnhKRkiYrdwdGROU39AF+z2e74aQLxc7+g329DydWdwG03gkd8x+tUCme aDlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZXoiZ0a1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p13si2387342qvb.103.2018.04.24.09.18.27 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:18:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZXoiZ0a1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0eB-0007Ew-4r for patch@linaro.org; Tue, 24 Apr 2018 12:18:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwf-000670-Ku for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwW-0001Yq-7c for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:29 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:51867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwV-0001XN-Ls for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:20 -0400 Received: by mail-wm0-x242.google.com with SMTP id j4so1868500wme.1 for ; Tue, 24 Apr 2018 08:33:19 -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=wDa+1OvPqvIGn3OtE5JrsRTXBLfWbyx5z+QlV4Vb/rM=; b=ZXoiZ0a12AOlrMsAcHITUBS76Q4bP/qTj8JmcN1VYfnRjMshNOlacCkxGanW7uK7bH RKLHeS3RhTwQU/n38iX/4uTc8tk6p23GQPcG2vvVxH7bgn1vmq6nyxJG4z8e/lxyviR3 HEH5HcmyinIfz1gJlkdMrSwN44UuAon70GxjU= 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=wDa+1OvPqvIGn3OtE5JrsRTXBLfWbyx5z+QlV4Vb/rM=; b=tcgbq0KC8q8FwagO5jr9eHi2e34/KBcrnWwzTFRK0Fv06/9ZhhGyPqViXGz/rJX/b0 5FSQHaqBOBgbh3txbySRvxaFY5PDPajGrGvkZuCjEPnWks4PWHCHzLmKHGmy3UGZC0Rm bdQO+XxNfDdxS7Le5U3J+YGOInMM8XUip7YJal2Ys8xkRdPSKh5oM1lWXc3XF5YKa0Yz QAAndXcnIkbtPgo12VQNzmdZqM8OSBettVM4q319KqQuL4GaWT+x5V0NCUM7nQ9jB4lM LAT9pjVdXmLadGwus3p03oXOMZuM+s80LqW5HG0kQKyk5ObvxUEGohZKZsTJxVelFkDh wpag== X-Gm-Message-State: ALQs6tDRpfg/VQwdl4HBJS5JYFVz0QY51DF11kRWKzzcX3JVs//A7+S3 ofcThBcL8IovQt3WxOVSHqpTXw== X-Received: by 10.28.43.197 with SMTP id r188mr13222608wmr.132.1524583996851; Tue, 24 Apr 2018 08:33:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 44-v6sm13059954wrl.83.2018.04.24.08.33.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A33F43E0E6D; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:48 +0100 Message-Id: <20180424152405.10304-30-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::242 Subject: [Qemu-devel] [PATCH v3 29/46] tests/tcg/aarch64: add fcvt test cases for AArch64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This runs through the usual float to float conversions and crucially also runs with ARM Alternative Half Precision Format. Signed-off-by: Alex Bennée --- tests/tcg/aarch64/Makefile.target | 8 + tests/tcg/aarch64/fcvt.c | 260 ++++++ tests/tcg/aarch64/fcvt.out | 1305 +++++++++++++++++++++++++++++ tests/tcg/arm/Makefile.target | 4 +- 4 files changed, 1576 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/aarch64/fcvt.c create mode 100644 tests/tcg/aarch64/fcvt.out -- 2.17.0 Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/aarch64/Makefile.target b/tests/tcg/aarch64/Makefile.target index 4ac8fbe73f..26be1c58ef 100644 --- a/tests/tcg/aarch64/Makefile.target +++ b/tests/tcg/aarch64/Makefile.target @@ -2,4 +2,12 @@ # # AArch64 specific tweaks +AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64 +VPATH += $(AARCH64_SRC) + +# we don't build any of the ARM tests +AARCH64_TESTS=$(filter-out $(ARM_TESTS), $(TESTS)) +AARCH64_TESTS+=fcvt +TESTS:=$(AARCH64_TESTS) + fcvt: LDFLAGS+=-lm diff --git a/tests/tcg/aarch64/fcvt.c b/tests/tcg/aarch64/fcvt.c new file mode 100644 index 0000000000..e8d322e0bd --- /dev/null +++ b/tests/tcg/aarch64/fcvt.c @@ -0,0 +1,260 @@ +/* + * Test Floating Point Conversion + */ + +#include +#include +#include +#include +#include + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + +static char flag_str[256]; + +static char *get_flag_state(int flags) +{ + if (flags) { + snprintf(flag_str, sizeof(flag_str), "%s %s %s %s %s", + flags & FE_OVERFLOW ? "OVERFLOW" : "", + flags & FE_UNDERFLOW ? "UNDERFLOW" : "", + flags & FE_DIVBYZERO ? "DIV0" : "", + flags & FE_INEXACT ? "INEXACT" : "", + flags & FE_INVALID ? "INVALID" : ""); + } else { + snprintf(flag_str, sizeof(flag_str), "OK"); + } + + return flag_str; +} + +static void print_double_number(int i, double num) +{ + uint64_t double_as_hex = *(uint64_t *) # + int flags = fetestexcept(FE_ALL_EXCEPT); + char *fstr = get_flag_state(flags); + + printf("%02d DOUBLE: %02.20e / %#020lx (%#x => %s)\n", + i, num, double_as_hex, flags, fstr); +} + +static void print_single_number(int i, float num) +{ + uint32_t single_as_hex = *(uint32_t *) # + int flags = fetestexcept(FE_ALL_EXCEPT); + char *fstr = get_flag_state(flags); + + printf("%02d SINGLE: %02.20e / %#010x (%#x => %s)\n", + i, num, single_as_hex, flags, fstr); +} + +static void print_half_number(int i, uint16_t num) +{ + int flags = fetestexcept(FE_ALL_EXCEPT); + char *fstr = get_flag_state(flags); + + printf("%02d HALF: %#04x (%#x => %s)\n", + i, num, flags, fstr); +} + +float single_numbers[] = { -FLT_MAX, -FLT_MIN, + 0.0, + FLT_MIN, + 1.0, 2.0, + M_E, M_PI, + 0x9EA82A22, + 0xAB98FBA8, + FLT_MAX }; + +static void convert_single_to_half(void) +{ + int i; + + printf("Converting single-precision to half-precision\n"); + + for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { + float input = single_numbers[i]; + uint16_t output; + + feclearexcept(FE_ALL_EXCEPT); + + print_single_number(i, input); + asm("fcvt %h0, %d1" : "=w" (output) : "x" (input)); + print_half_number(i, output); + } +} + +static void convert_single_to_double(void) +{ + int i; + + printf("Converting single-precision to double-precision\n"); + + for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { + float input = single_numbers[i]; + uint64_t output; + + feclearexcept(FE_ALL_EXCEPT); + + print_single_number(i, input); + asm("fcvt %h0, %d1" : "=w" (output) : "x" (input)); + print_double_number(i, output); + } +} + +double double_numbers[] = { -DBL_MAX, + -2.0, -1.0, + -DBL_MIN, + 0.0, + DBL_MIN, + 1.0, 2.0, + M_E, M_PI, + 0x9EA82A2287680UL, + 0xAB98FBA843210UL, + DBL_MAX }; + +static void convert_double_to_half(void) +{ + int i; + + printf("Converting double-precision to half-precision\n"); + + for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { + double input = double_numbers[i]; + uint16_t output; + + feclearexcept(FE_ALL_EXCEPT); + + print_double_number(i, input); + + /* as we don't have _Float16 support */ + asm("fcvt %h0, %d1" : "=w" (output) : "x" (input)); + print_half_number(i, output); + } +} + +static void convert_double_to_single(void) +{ + int i; + + printf("Converting double-precision to single-precision\n"); + + for (i = 0; i < ARRAY_SIZE(single_numbers); ++i) { + double input = double_numbers[i]; + uint32_t output; + + feclearexcept(FE_ALL_EXCEPT); + + print_double_number(i, input); + + asm("fcvt %s0, %d1" : "=w" (output) : "x" (input)); + + print_single_number(i, output); + } +} + +/* no handy defines for these numbers */ +uint16_t half_numbers[] = { + 0xffff, /* -NaN / AHP -Max */ + 0xfcff, /* -NaN / AHP */ + 0xfc01, /* -NaN / AHP */ + 0xfc00, /* -Inf */ + 0xfbff, /* -Max */ + 0xc000, /* -2 */ + 0xbc00, /* -1 */ + 0x8001, /* -MIN subnormal */ + 0x8000, /* -0 */ + 0x0000, /* +0 */ + 0x0001, /* MIN subnormal */ + 0x3c00, /* 1 */ + 0x7bff, /* Max */ + 0x7c00, /* Inf */ + 0x7c01, /* NaN / AHP */ + 0x7cff, /* NaN / AHP */ + 0x7fff, /* NaN / AHP +Max*/ +}; + +static void convert_half_to_double(void) +{ + int i; + + printf("Converting half-precision to double-precision\n"); + + for (i = 0; i < ARRAY_SIZE(half_numbers); ++i) { + uint16_t input = half_numbers[i]; + double output; + + feclearexcept(FE_ALL_EXCEPT); + + print_half_number(i, input); + asm("fcvt %d0, %h1" : "=w" (output) : "x" (input)); + print_double_number(i, output); + } +} + +static void convert_half_to_single(void) +{ + int i; + + printf("Converting half-precision to single-precision\n"); + + for (i = 0; i < ARRAY_SIZE(half_numbers); ++i) { + uint16_t input = half_numbers[i]; + float output; + + feclearexcept(FE_ALL_EXCEPT); + + print_half_number(i, input); + asm("fcvt %s0, %h1" : "=w" (output) : "x" (input)); + print_single_number(i, output); + } +} + +typedef struct { + int flag; + char *desc; +} float_mapping; + +float_mapping round_flags[] = { + { FE_TONEAREST, "to nearest" }, + { FE_UPWARD, "upwards" }, + { FE_DOWNWARD, "downwards" }, + { FE_TOWARDZERO, "to zero" } +}; + +int main(int argc, char *argv[argc]) +{ + int i; + + for (i = 0; i < ARRAY_SIZE(round_flags); ++i) { + fesetround(round_flags[i].flag); + printf("### Rounding %s\n", round_flags[i].desc); + convert_single_to_half(); + convert_single_to_double(); + convert_double_to_half(); + convert_double_to_single(); + convert_half_to_single(); + convert_half_to_double(); + } + + /* And now with ARM alternative FP16 */ + asm("msr fpsr, x1\n\t" + "orr x1, x1, %[flags]\n\t" + "mrs x1, fpsr\n\t" + : /* no output */ : [flags] "n" (1 << 26) : "x1" ); + + printf("#### Enabling ARM Alternative Half Precision\n"); + + for (i = 0; i < ARRAY_SIZE(round_flags); ++i) { + fesetround(round_flags[i].flag); + printf("### Rounding %s\n", round_flags[i].desc); + convert_single_to_half(); + convert_single_to_double(); + convert_double_to_half(); + convert_double_to_single(); + convert_half_to_single(); + convert_half_to_double(); + } + + return 0; +} diff --git a/tests/tcg/aarch64/fcvt.out b/tests/tcg/aarch64/fcvt.out new file mode 100644 index 0000000000..48e62ac955 --- /dev/null +++ b/tests/tcg/aarch64/fcvt.out @@ -0,0 +1,1305 @@ +### Rounding to nearest +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fc00 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x00004170 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007c00 (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding upwards +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fbff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x00004170 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004249 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007c00 (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518144000000000000e+09 / 0x4eb23d51 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding downwards +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fc00 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008001 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x0000416f (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007bff (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding to zero +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fbff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x0000416f (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007bff (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +#### Enabling ARM Alternative Half Precision +### Rounding to nearest +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fc00 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x00004170 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007c00 (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding upwards +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750797e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324219e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859812e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fbff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0x00000001 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x00004170 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004249 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007c00 (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138310e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509080e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675456000000000000e+09 / 0x4e805bf1 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311600e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07853004800000000000e+09 / 0x4e809220 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518144000000000000e+09 / 0x4eb23d51 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding downwards +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859812e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750797e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fc00 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008001 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x0000416f (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007bff (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570815e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657868800000000000e+09 / 0x4f7f8000 (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138310e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +### Rounding to zero +Converting single-precision to half-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 HALF: 0000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +Converting single-precision to double-precision +00 SINGLE: -3.40282346638528859811e+38 / 0xff7fffff (0 => OK) +00 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +01 SINGLE: -1.17549435082228750796e-38 / 0x80800000 (0 => OK) +01 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +02 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +02 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +03 SINGLE: 1.17549435082228750796e-38 / 0x00800000 (0 => OK) +03 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +04 SINGLE: 1.00000000000000000000e+00 / 0x3f800000 (0 => OK) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +05 SINGLE: 2.00000000000000000000e+00 / 0x40000000 (0 => OK) +05 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +06 SINGLE: 2.71828174591064453125e+00 / 0x402df854 (0 => OK) +06 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +07 SINGLE: 3.14159274101257324218e+00 / 0x40490fdb (0 => OK) +07 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +08 SINGLE: 2.66182092800000000000e+09 / 0x4f1ea82a (0 => OK) +08 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +09 SINGLE: 2.87892992000000000000e+09 / 0x4f2b98fc (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +10 SINGLE: 3.40282346638528859811e+38 / 0x7f7fffff (0 => OK) +10 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0x18 => UNDERFLOW INEXACT ) +Converting double-precision to half-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 HALF: 0x0000fbff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 HALF: 0x0000c000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 HALF: 0x0000bc00 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 HALF: 0x00008000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 HALF: 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 HALF: 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 HALF: 0x00003c00 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 HALF: 0x00004000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 HALF: 0x0000416f (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 HALF: 0x00004248 (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 HALF: 0x00007bff (0x14 => OVERFLOW INEXACT ) +Converting double-precision to single-precision +00 DOUBLE: -1.79769313486231570814e+308 / 0x00ffefffffffffffff (0 => OK) +00 SINGLE: 4.28657843200000000000e+09 / 0x4f7f7fff (0x14 => OVERFLOW INEXACT ) +01 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +01 SINGLE: 3.22122547200000000000e+09 / 0x4f400000 (0 => OK) +02 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +02 SINGLE: 3.21283686400000000000e+09 / 0x4f3f8000 (0 => OK) +03 DOUBLE: -2.22507385850720138309e-308 / 0x008010000000000000 (0 => OK) +03 SINGLE: 2.14748364800000000000e+09 / 0x4f000000 (0x18 => UNDERFLOW INEXACT ) +04 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +04 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0 => OK) +05 DOUBLE: 2.22507385850720138309e-308 / 0x000010000000000000 (0 => OK) +05 SINGLE: 0.00000000000000000000e+00 / 0000000000 (0x18 => UNDERFLOW INEXACT ) +06 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +06 SINGLE: 1.06535321600000000000e+09 / 0x4e7e0000 (0 => OK) +07 DOUBLE: 2.00000000000000000000e+00 / 0x004000000000000000 (0 => OK) +07 SINGLE: 1.07374182400000000000e+09 / 0x4e800000 (0 => OK) +08 DOUBLE: 2.71828182845904509079e+00 / 0x004005bf0a8b145769 (0 => OK) +08 SINGLE: 1.07675443200000000000e+09 / 0x4e805bf0 (0x10 => INEXACT ) +09 DOUBLE: 3.14159265358979311599e+00 / 0x00400921fb54442d18 (0 => OK) +09 SINGLE: 1.07852992000000000000e+09 / 0x4e80921f (0x10 => INEXACT ) +10 DOUBLE: 2.79112157760473600000e+15 / 0x004323d5054450ed00 (0 => OK) +10 SINGLE: 1.49518131200000000000e+09 / 0x4eb23d50 (0x10 => INEXACT ) +Converting half-precision to single-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) +Converting half-precision to double-precision +00 HALF: 0x0000ffff (0 => OK) +00 DOUBLE: -nan / 0x00fffffc0000000000 (0 => OK) +01 HALF: 0x0000fcff (0 => OK) +01 DOUBLE: -nan / 0x00fffbfc0000000000 (0x1 => INVALID) +02 HALF: 0x0000fc01 (0 => OK) +02 DOUBLE: -nan / 0x00fff8040000000000 (0x1 => INVALID) +03 HALF: 0x0000fc00 (0 => OK) +03 DOUBLE: -inf / 0x00fff0000000000000 (0 => OK) +04 HALF: 0x0000fbff (0 => OK) +04 DOUBLE: -6.55040000000000000000e+04 / 0x00c0effc0000000000 (0 => OK) +05 HALF: 0x0000c000 (0 => OK) +05 DOUBLE: -2.00000000000000000000e+00 / 0x00c000000000000000 (0 => OK) +06 HALF: 0x0000bc00 (0 => OK) +06 DOUBLE: -1.00000000000000000000e+00 / 0x00bff0000000000000 (0 => OK) +07 HALF: 0x00008001 (0 => OK) +07 DOUBLE: -5.96046447753906250000e-08 / 0x00be70000000000000 (0 => OK) +08 HALF: 0x00008000 (0 => OK) +08 DOUBLE: -0.00000000000000000000e+00 / 0x008000000000000000 (0 => OK) +09 HALF: 0000000000 (0 => OK) +09 DOUBLE: 0.00000000000000000000e+00 / 00000000000000000000 (0 => OK) +10 HALF: 0x00000001 (0 => OK) +10 DOUBLE: 5.96046447753906250000e-08 / 0x003e70000000000000 (0 => OK) +11 HALF: 0x00003c00 (0 => OK) +11 DOUBLE: 1.00000000000000000000e+00 / 0x003ff0000000000000 (0 => OK) +12 HALF: 0x00007bff (0 => OK) +12 DOUBLE: 6.55040000000000000000e+04 / 0x0040effc0000000000 (0 => OK) +13 HALF: 0x00007c00 (0 => OK) +13 DOUBLE: inf / 0x007ff0000000000000 (0 => OK) +14 HALF: 0x00007c01 (0 => OK) +14 DOUBLE: nan / 0x007ff8040000000000 (0x1 => INVALID) +15 HALF: 0x00007cff (0 => OK) +15 DOUBLE: nan / 0x007ffbfc0000000000 (0x1 => INVALID) +16 HALF: 0x00007fff (0 => OK) +16 DOUBLE: nan / 0x007ffffc0000000000 (0 => OK) diff --git a/tests/tcg/arm/Makefile.target b/tests/tcg/arm/Makefile.target index be9d3fb4a1..f1c7ec46b5 100644 --- a/tests/tcg/arm/Makefile.target +++ b/tests/tcg/arm/Makefile.target @@ -8,7 +8,9 @@ ARM_SRC=$(SRC_PATH)/tests/tcg/arm # Set search path for all sources VPATH += $(ARM_SRC) -TESTS += hello-arm test-arm-iwmmxt +ARM_TESTS=hello-arm test-arm-iwmmxt + +TESTS += $(ARM_TESTS) hello-arm: CFLAGS+=-marm -ffreestanding hello-arm: LDFLAGS+=-nostdlib From patchwork Tue Apr 24 15:23:49 2018 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: 134156 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2455321lji; Tue, 24 Apr 2018 09:41:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrGFRnhuOspSU0/jgk5ZD31OA1vlMbRFtLsJbIA4m1a1iW2EixOoNxHSjhgC+jYixhyxktj X-Received: by 2002:aed:2dc5:: with SMTP id i63-v6mr29611780qtd.49.1524588077237; Tue, 24 Apr 2018 09:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588077; cv=none; d=google.com; s=arc-20160816; b=MP/YJPl37ddmAKt2eBXEHiMfgAgxF7nL9/cpzcP0+kUu9EDnsnx/s6i8TUA55Nhz71 m/stEEc9Z/jiwZgOqY4WqMNXpLXsAWqtNGGQHos4tMKb1ZnBVgNBmLBnv0i/vATjw+dD cC1QXB+6SfvNc42CdPnq8P3w0bAfYa3ytx9+XazYNShsvWAz6LJcooGFR6+x5P5WLgdf wpsScMxXBrDKgHxuGRgPJBAPd2zIq6cHD/H8jwAO6+uy4OScOiy8ASXyhHiXyrFKabeb mvTRKW28jR69UMLBz37oq5u2B3RLhRUabpvh8hdSPKEVQA4WwmlG6ysnzHlVTLuWYzum qj0A== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=FYQ82Ou+xEFIXjJj+koAUVqk54LL9OfHKMd9SZja0do=; b=Ed+d1LTZ9VRlk/KijdN9oT1agwi6SgUhoNApx0dnOpioa4UfSOZejwkQIJMLBC5w9H xmpuY86J2osrEDbyrvadixQbHdSGKQPMarLge4yAh+cl9pzLYmwxjqEO+eKbO63U0q80 XAMDqpjDKj/GaAi/F5hfx7SJVtHudSZlEgJuljlw1RFXBuLgAU/lPedbkQi2D4fSXuQT ATlYihlkGPL8ICWciuD4qiRT0Ut9VRjAqbuK+36iy6nf/rk/vj1i6jur4Ega9uv6Lvml y/ze94dEEItwLaH5CSqD5rHQLCnnKxEsIQESNDLI6yhFjXHAvjQzzSREJ5aASng9KHBt 0QMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aUBCT8q8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 14si1192975qvt.175.2018.04.24.09.41.17 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=aUBCT8q8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB10G-0001VA-Ob for patch@linaro.org; Tue, 24 Apr 2018 12:41:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB068-0005DE-56 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB066-0000dV-Ls for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:16 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:52935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB066-0000cZ-ES for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:14 -0400 Received: by mail-wm0-x244.google.com with SMTP id w195so1933406wmw.2 for ; Tue, 24 Apr 2018 08:43: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=FYQ82Ou+xEFIXjJj+koAUVqk54LL9OfHKMd9SZja0do=; b=aUBCT8q8JzrRos7a+s1mEXmf/ztMuNGkiE4OM8T1v2u7R2sGhTfdjYTyHt/mIkHOiw 9PKRYIwZcRht2oxkVRCXHOSS1RVDBHR/SnNpIBvWeEvV5LSbSZvBr2L1WYI7+LZCT3ub qk++pDSTTeM3i7jWdoYemMG6Uxev8JKpsipA4= 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=FYQ82Ou+xEFIXjJj+koAUVqk54LL9OfHKMd9SZja0do=; b=tLg/nIsqeABwCXf8UbToEP1hx5aFd5KiC3mANWRaRio3AN4MD7GEnBlpWGHlT/kXvj ki6WawsGr0/k3F/uYexB98EKaCm/jwG/13OfzVJFpm1YdPSSsD+N3FKT6Cz8NRkxxZwO SLYTbEmAYXBa+2VoPei0xL9umwXW11DlBzbOv7tlfqmmg9onASJfikif+AuYWDCiziBj bztWr0boLode7qk8EenxcpXHo6o97kZpKafnVhB/5NuPnC5gJu64AT3g4Sq/OjCwlNeR 1p9QEMgkatRmOXy0LDYIgh+BQPrcM9zV9R1pl9MrRSJHZqTbWgBWDQKRrDd4oXo2Ls/K fmJw== X-Gm-Message-State: ALQs6tCTa+3LsdVe7RZFNqSl6cWT9lJMWR5KkLGR72R7jr5+yqHVB/C/ jJt4U2USPRMAfkbTQYMLKqyx/w== X-Received: by 10.28.135.149 with SMTP id j143mr3555183wmd.149.1524584593312; Tue, 24 Apr 2018 08:43:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u8sm7435488wmf.3.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BE5023E0ED1; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:49 +0100 Message-Id: <20180424152405.10304-31-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 30/46] tests/tcg: move MIPS specific tests into subdir X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yongbok Kim , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These only need to be built for MIPS guests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/README | 11 ----------- tests/tcg/mips/README | 7 +++++++ tests/tcg/{ => mips}/hello-mips.c | 0 3 files changed, 7 insertions(+), 11 deletions(-) create mode 100644 tests/tcg/mips/README rename tests/tcg/{ => mips}/hello-mips.c (100%) -- 2.17.0 diff --git a/tests/tcg/README b/tests/tcg/README index 625f2326e6..a5643d33e7 100644 --- a/tests/tcg/README +++ b/tests/tcg/README @@ -3,17 +3,6 @@ regression testing. Tests are either multi-arch, meaning they can be built for all guest architectures that support linux-user executable, or they are architecture specific. - - -MIPS -==== - -hello-mips ----------- - -hello-mipsel ------------- - CRIS ==== The testsuite for CRIS is in tests/tcg/cris. You can run it diff --git a/tests/tcg/mips/README b/tests/tcg/mips/README new file mode 100644 index 0000000000..e5bbc58ec5 --- /dev/null +++ b/tests/tcg/mips/README @@ -0,0 +1,7 @@ +MIPS +==== + +hello-mips +---------- + +A very simple inline assembly, write syscall based hello world diff --git a/tests/tcg/hello-mips.c b/tests/tcg/mips/hello-mips.c similarity index 100% rename from tests/tcg/hello-mips.c rename to tests/tcg/mips/hello-mips.c From patchwork Tue Apr 24 15:23:50 2018 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: 134144 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2440535lji; Tue, 24 Apr 2018 09:26:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrAcft+swSEN4FEu5EFLFIVHzG7ax+k+Enqfx2r98JvtEn7uFIQbjizol5eVT2Px7Wp6fVQ X-Received: by 10.55.143.131 with SMTP id r125mr3626953qkd.163.1524587189834; Tue, 24 Apr 2018 09:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587189; cv=none; d=google.com; s=arc-20160816; b=xD/Xt+quWMc1t4uXJRi96l+kSeeFRs2zRZFhfqUDcCYyXRztlRLmi8OnsR+y69A0Ly O8kjHZPzR/lJQEbRKiFTLUvZ6n35AfcvipFVQpHAXbJwZeDVRn7aM4SZGMjljsIAdXDD amI7neG6Mjs0crT1bwy4eLwxLtxSS0+Nr+3zTUgYHLSzj4hBG8KR5imx4gmPKbEr/ur5 lo0mptLGjJ/GkzyV6fZotG1XfbIzS3BJ1BsJpa+Z3532W3S5AKZA8xoFaaq44zUpkAeo +CyAcFD5kWesXFTcLf/uVX6a27w1/aGd7xDKhm5VN47rqzGyKUfgW3QMNoGKMSSazBbN bKwQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=X8Xbwhum6dlx4ntqNogPKvG9PhdVzE/Q/GNWe2E0KL0=; b=i3qNzbH3DLbqt+gJXPzcJilnsChoaG24NbvOYgComeqFJu1O9JV0sDx9swsMSU3umk QI2/RMxMu3d5KhpPDJR+JuL40lafB1Go/lKax0hhXPlgh+QJFLyNmyQdwncKBmVeNG2B AhLKlrquu2vjR7YreeHBvdgv5Ha94BSVOVGUN8tQKNISnv/3rW9pQ/FChY4pahEdTaKj leRa24U0gklcuwEsym6QMqecqoFaDZvTNL97wF4MWFk0emFZz1Z6YJyAgsxaJ5hac+Ja fFkDD+JYcqMStQYXdQQCp5sEFjxOfp87GC8kDo97teSCRr8I2s0JLgM6KEfWYl3GwaKn Rjwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NkkLs493; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g123si935496qkd.214.2018.04.24.09.26.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NkkLs493; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0lx-0006In-6t for patch@linaro.org; Tue, 24 Apr 2018 12:26:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwd-00066b-Lk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwc-0001jM-T1 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:27 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:51012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwc-0001i7-Mg for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:26 -0400 Received: by mail-wm0-x244.google.com with SMTP id t67so1872053wmt.0 for ; Tue, 24 Apr 2018 08:33: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=X8Xbwhum6dlx4ntqNogPKvG9PhdVzE/Q/GNWe2E0KL0=; b=NkkLs493ULXl+8RNN+jwtIL56nfLsuKypwptmgXImkXlSaKPzOxWd/qmwLPbxGIEtB zXjAM66WCnlazmXusBQPfelABWBlZ0eh98FlPmBg5BAX7MJLRbx8881HvYIkP7XXOpJF kAOekGtelN69R4goVDyizkBb9uhWwBluusPCo= 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=X8Xbwhum6dlx4ntqNogPKvG9PhdVzE/Q/GNWe2E0KL0=; b=WyiMcbnX40p/6yRMyTDK6iUtJTHHJP9zbll4m9LqguhNp+U/KxMDyTBlwJt9uqHyVi SObeQNBEHfBPV4D4raF4ARNnxaf7PVV0oAv6/yLxTqQaU5gy2k+aJHUoQqgP/8h6/Bx4 OhSOzVjx8Tou659BkTeiWU1M77b+Yg04sEAtEHZOZI20KCGJX0MhNQ++lDG6HPsRp1ND 3akBgf+asHFdvdqB0ErbnM/g2VG2X3BgvUvkJX00wQulDKAa0todZSt+YgHo0OCZ+6KS GJQhCUgIjBnAJjM/R4AmwAnQJn3cmzQNgHryQkQFnojSFOT5PLLnQtOJzGYWU1UsxAjs zWow== X-Gm-Message-State: ALQs6tArDwqGe6+7O8vbXbWpHRVnX57S07gP4ynfDsfLYNdCbBdrSzvd B6euOg7AgGRbmTnCocvStKDdzA== X-Received: by 10.28.235.3 with SMTP id j3mr13134995wmh.146.1524584005547; Tue, 24 Apr 2018 08:33:25 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t130sm10386226wmt.0.2018.04.24.08.33.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D09D73E0F65; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:50 +0100 Message-Id: <20180424152405.10304-32-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 31/46] tests/tcg: enable building for MIPS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yongbok Kim , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This doesn't add any additional tests but enables building the multiarch tests for MIPS using docker cross compilers. We don't have a cross compiler for mips64 big endian though. Signed-off-by: Alex Bennée --- tests/tcg/mips/Makefile.include | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/tcg/mips/Makefile.include -- 2.17.0 diff --git a/tests/tcg/mips/Makefile.include b/tests/tcg/mips/Makefile.include new file mode 100644 index 0000000000..a9beceb623 --- /dev/null +++ b/tests/tcg/mips/Makefile.include @@ -0,0 +1,17 @@ +# +# Makefile.include for all MIPs targets +# +# As Debian doesn't support mip64 in big endian mode the only way to +# build BE is to pass a working cross compiler to ./configure +# + +ifeq ($(TARGET_NAME),mips64el) +DOCKER_IMAGE=debian-mips64el-cross +DOCKER_CROSS_COMPILER=mips64el-linux-gnuabi64-gcc +else ifeq ($(TARGET_NAME),mipsel) +DOCKER_IMAGE=debian-mipsel-cross +DOCKER_CROSS_COMPILER=mipsel-linux-gnu-gcc +else ifeq ($(TARGET_NAME),mips) +DOCKER_IMAGE=debian-mips-cross +DOCKER_CROSS_COMPILER=mips-linux-gnu-gcc +endif From patchwork Tue Apr 24 15:23:51 2018 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: 134160 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2467442lji; Tue, 24 Apr 2018 09:54:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/1SlF42KDeFU1kOM0c2NiiEIZWH/mVGoLDKVnNvTHTUF0T7TsRnTQF3E6q5QN3z03nfQ/Y X-Received: by 10.55.214.204 with SMTP id p73mr27421132qkl.341.1524588895359; Tue, 24 Apr 2018 09:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588895; cv=none; d=google.com; s=arc-20160816; b=lCqDUIJ1LthyK2588y0+9l8dFj0imKyHY35aTWxiezcxyxoBCx/lV+7JyEjUSU9ey/ rDZQ4Sbhfu2j+mWQb/7yZXNTn8OO27PPC5joIJEHOVG51kcMVsGDzpt+TdLKMc9Uda+N 6o035C4vmg9/AqCxBqq9yTXrnRaTPZ0GtizHbxNVdfgvsEyWK+1TgrhGiNCvI5D6ZfC7 XEqTbRNF6xmNBdyOR7JGJ3asP3Ff7pkjR/BOVODU2KVfny2Nh/wkt/UAo2s6QAvMGnPS R0rl4YTq7LnDDbbWpkN3Bd7YK/e9xo/amp57IOrkEZvpEbLhhpdyid71t4bSwqfeWM0U fD6g== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=nx//1SQIIgve3wOxKqmziA6EGm0HC/aHdmx0NchGyQE=; b=WgN4cIQMlXJGp+HipUih9JHmoNrejr4XGPvnkXYYeWgXnK4/MWXt//+TGcCKeVXg7W IeznPeYIx2hoGT8j8cQU+IVBuxAJc/UhboOZcuxaY8OQh68GpWVE4442j/W74R/MV2YB qWMGGZcLdzF2bQsAY+39iKF/+o0/KPcmIM5Eumg5DEGwziPorPYsk0cXEwoR5jYJcE9Z ai7MhG1or4FUYWvex0rQWGbCIVN1ponfmyEvp1hoDxUbg0FvI0SjBX31MggbU9Cwxsih xhxFUETh9Mf4XDw6O9zSAPzqcaq4w3bbYZ+riga9NjhgKqktIb4D9FrkH3Fw3C90AkLZ oUWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bNTBaF7h; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l32-v6si2555137qtd.355.2018.04.24.09.54.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bNTBaF7h; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB1DS-00027S-RX for patch@linaro.org; Tue, 24 Apr 2018 12:54:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0PU-0004wl-KY for qemu-devel@nongnu.org; Tue, 24 Apr 2018 12:03:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB0PQ-0005UJ-N8 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 12:03:16 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:55199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB0PQ-0005Rd-Gt for qemu-devel@nongnu.org; Tue, 24 Apr 2018 12:03:12 -0400 Received: by mail-wm0-x243.google.com with SMTP id f6so2059064wmc.4 for ; Tue, 24 Apr 2018 09:03: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=nx//1SQIIgve3wOxKqmziA6EGm0HC/aHdmx0NchGyQE=; b=bNTBaF7hhpy+hOCvFFAAPT2Bmi62cCXh+hBWzt37sXJtTnjEHBNvIEDgRl1FzwiVX7 wNQRDvMe0J3O3JmOXWcA5hb+u3NZzkCIwP/medMKd+j/JAuO0pGHmVj/YC0bNxGGpOFP 5vREWdSwXD9fbMJznG/567FMUNRuXqMC3i20U= 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=nx//1SQIIgve3wOxKqmziA6EGm0HC/aHdmx0NchGyQE=; b=kXpnH1BmsmPTbSQuP49+UGE94xcq4/g4Dilie0rSR1SKgd1b35JLFCXA9VDlKnMXlL 9eP9FuK43QiroKy4j+Bd2XRDaP9ltiAHHr96lw1lhs13vzD/LGG8uNLeCBt4/oQRTTIZ ETDS0m5jyakxINsoSWkrNRPfwDaEnAZ4HizDFTAAMTH8l5yOR9VNkBGV4VDGJk26QIpI fXann1PQzlGxlaVdwCy4RfZ1l30e09Ch32FqB3iIam5o9066JqcRUyE2CJTZVEQIlBTy BjLAdiTdfy18OVAD5/rD+X+IJBxOF/eGGAxzTfJI3ymYeqbfctgDwKuDI9kaCo+A9sba tfTQ== X-Gm-Message-State: ALQs6tBK8msErkpB4uSPB7RcdH/7vRzoe3abVRlTKCSCCzYl1/P6G1sM FzcprpQCLQ7/vP3MTt0T1gKmkA== X-Received: by 10.28.41.133 with SMTP id p127mr13883091wmp.0.1524585791273; Tue, 24 Apr 2018 09:03:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 58-v6sm32456574wrv.41.2018.04.24.09.03.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 09:03:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E30613E0F6C; Tue, 24 Apr 2018 16:24:07 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:51 +0100 Message-Id: <20180424152405.10304-33-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 32/46] tests/tcg/mips: include common mips hello-mips X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yongbok Kim , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- tests/tcg/mips/Makefile.target | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/tcg/mips/Makefile.target -- 2.17.0 diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target new file mode 100644 index 0000000000..71f0c2dd53 --- /dev/null +++ b/tests/tcg/mips/Makefile.target @@ -0,0 +1,19 @@ +# -*- Mode: makefile -*- +# +# MIPS - included from tests/tcg/Makefile.target +# + +MIPS_SRC=$(SRC_PATH)/tests/tcg/mips + +# Set search path for all sources +VPATH += $(MIPS_SRC) + +MIPS_TESTS=hello-mips + +TESTS += $(MIPS_TESTS) + +hello-mips: CFLAGS+=-ffreestanding +hello-mips: LDFLAGS+=-nostdlib + +# For MIPS32 and 64 we have a bunch of extra tests in sub-directories +# however they are intended for system tests. From patchwork Tue Apr 24 15:23:52 2018 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: 134123 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2392175lji; Tue, 24 Apr 2018 08:43:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Cog1bJWdBwSTnsvN5AJek9TzagHRFGpIJtceVIu3oec0IFu2iG+uKC+RJWmJnS25UHCDr X-Received: by 2002:ac8:1e81:: with SMTP id c1-v6mr28125287qtm.359.1524584620043; Tue, 24 Apr 2018 08:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584620; cv=none; d=google.com; s=arc-20160816; b=y3XR7aevzx2R5jcboqImEMQ6FQDDgbWhT8+j6uST6L9WD4VF6bRXt88RuiCWy4dwO/ grQF61rqT9/F9sRsTjG77VScxRUSzHKDZ25RcX/tAdC0UzUINECWK9GUPVBMo9XkwVQs AImR1euRg8O0i4Q+mr1pmg+F7muyam8dZyxech4U5JTvgnkdO4CTPMkE/5j8L7Wuji3J jdXVCNdH268E+ZngwFQFF/ph2bZBYcG1EfnsEGndxHWHSZ0Oxdje+AZ617TE2to+K2SN Bc7hEKQLoJaiU4hRv+5a0DKtofc+J5QJWV7geZlFPVtgLhPAZUb3BqGxmyTfZbwRZlN/ yqnw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=uOpW0Ygoe3u1mvLzDgI/DRDAABZc8Psn+CJhL4W8FQg=; b=sDLXl/VRI+ocUM1/FeuIXEQOmU2hlz1KBX1SxIEvhCusouP5I9Iz2k2ns5dHCUoUwv lhYY3PhF9NLfiRR0a16pgoIexnxDqrpyDOMrFAIgX8IifNK9rXGS6qSM7IYN93YgS0gD WbSpWxoAMXZhILHC0iVFhKFGZzcXx03MVQQpP2jaqXWizRzG/bzn3QCvB+AU2+hI42Et 37ISs1ULdD43v0iPt14CE3dU6Blw+tBGAw4aycQ80lq6yItMmmxKsKTb7trIgQfVd8Gh DiCN7PVzlNMWknGPpe6Bnpw1w02Cz9vMdO62/aPfr+xcIs/pH5Teu7yBSzb12EM1sMk/ GdpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WE4x3s42; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a42-v6si1311880qtk.103.2018.04.24.08.43.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:43:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WE4x3s42; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06V-0004PK-Dy for patch@linaro.org; Tue, 24 Apr 2018 11:43:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAznr-0006g4-Om for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAznr-0005hN-25 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:23 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:38214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznq-0005fV-Qv for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:22 -0400 Received: by mail-wm0-x241.google.com with SMTP id i3so1553549wmf.3 for ; Tue, 24 Apr 2018 08:24:22 -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=uOpW0Ygoe3u1mvLzDgI/DRDAABZc8Psn+CJhL4W8FQg=; b=WE4x3s42GeD/4qPmj3IiLY7RB+hu6Fz1TC2v+IB6uB5HIfzKA9pw1G5b/RqezCz7xA q3wl70vfhJBT9oPpFRblQRUU4S8WUXG37sMW2TbZWLQXAacVVlK1en0YefqSQhwRNvBJ iG+1u6EL2QeqlkVKsDLEhDkpFXo0ZXNyjpyhw= 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=uOpW0Ygoe3u1mvLzDgI/DRDAABZc8Psn+CJhL4W8FQg=; b=ijbE5KEP+rB1NnZx3PUxXGGg2/3NY195i/ApSLW6j9TsaOxsOT3Oj/L+dQ6Pi8ICmN wQnpr93n6wL3mOfWN8cbbEKS4ekMvYabKRLfRe/cleMcLRtwekMm2GPvq++teU6Dq9Ug ha+0rcE11UWAliOUDFmp5RqUuPaGHpki2ws6LHKpSSSCqDSkJCxZurIe0lBFSjoAPkp/ iJfJ8niuGtMGC+OVNnFnftRgINoigru3FrCvssdXgKZvN1BXp0pHpPao6a/00vm+UIIo VU6vyhEO1lkHtcsKEizYG+b6Lg+5xipmCVafM5PQaayun/wVIFZAKmhXRt+NXdfQKfd4 EF6g== X-Gm-Message-State: ALQs6tA6dI1cxmt/obifv/Qkbfg5SbgtvDX3IFxpM4pOB3SEEzCshsKq 5qyZ7qhuyOZlhlZFK/d8GDb5LA== X-Received: by 10.28.6.8 with SMTP id 8mr13668798wmg.39.1524583461785; Tue, 24 Apr 2018 08:24:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w186sm10559975wmw.27.2018.04.24.08.24.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:16 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 00C353E141C; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:52 +0100 Message-Id: <20180424152405.10304-34-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 33/46] tests/tcg: enable building for s390x X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:S390" , Cornelia Huck , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This doesn't add any additional tests but enables building the multiarch tests for s390x. Signed-off-by: Alex Bennée Acked-by: Cornelia Huck Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/s390x/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/tcg/s390x/Makefile.include -- 2.17.0 diff --git a/tests/tcg/s390x/Makefile.include b/tests/tcg/s390x/Makefile.include new file mode 100644 index 0000000000..1f58115d96 --- /dev/null +++ b/tests/tcg/s390x/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-s390x-cross +DOCKER_CROSS_COMPILER=s390x-linux-gnu-gcc From patchwork Tue Apr 24 15:23:53 2018 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: 134124 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2395498lji; Tue, 24 Apr 2018 08:46:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpaxkFGyR9nK8dLc0HXFgj3sep8y5kb7dGlBJ6//jahFhQRuNyZMIRlihC5O1hRzy9HTvq3 X-Received: by 2002:ac8:2246:: with SMTP id p6-v6mr29455785qtp.260.1524584796816; Tue, 24 Apr 2018 08:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524584796; cv=none; d=google.com; s=arc-20160816; b=XT/AGbSXMg3pcq8cLl4JSAEZM2pobV7/cxKzQ585rTvtK67TubjNFwy+Ske+SFmXRK CzAQVWcHgPzDykF5L1ssxUWV7KaLDmoqgo7m9tL/CKKHyXM/EdOHHZzPH6cQKJ3g/HuV 6Re26X3Vhdfmi/xBRYIEnXAmro9/dZY77pN8Z713pdZOJ1Zz+P9C83SR26ZsJM/x1Sgp rvGyeeWJ4h0xGHHItgDVKqOlE0bBrYD2Up9G6zuSrmA/EmP3wZusnAH0Cu5kjzlQTCZT /cM8oWCYrAwcK9LB7aP2b2sLMXcFHHbUPOvfTpRwM7y9hGdk/IYSGkh+1CMwJd5c0Jva /iTA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=N+Yt0V8P8ncsq0xlCoJleeiWA+dT2h31z2H2F2pLSIk=; b=lIW3+exe0KVM+zSxt8qmgpk949tgNAGH0fVgdNLf3TIGkObB8gkNBQCNF86wzQpSMq rZebFJU2Jr23WN9+6ZJUOSEfKs+BIni9wIX83ACHMx09kfe44QetaMKYILgNHX4nrZSn M+/o3RQI3nQ6q7yWA05zC2+BernHW0lufBzbFV5PfG3qqcTzu2pHc+E6Ll/B2dc0g/y2 kbJmqu1CEhunxuIyMkdk9lJuVqyksVgDEVBMruPPOpVU8W/tQFnH7MV30ppz0s89aHe/ yBwRAeODv5ULc5vkrAvdj8xalWJSreA+EN+VCDb+SIdd0PYz77qbIljePxWtukXUH7Kp qBGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cCfD9iuU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d1si655273qvj.190.2018.04.24.08.46.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 08:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cCfD9iuU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB09M-0006sx-9M for patch@linaro.org; Tue, 24 Apr 2018 11:46:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzns-0006hT-Ql for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzns-0005k4-2s for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:24 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:37636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAznr-0005i4-Tr for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:24:24 -0400 Received: by mail-wm0-x244.google.com with SMTP id l16so1564190wmh.2 for ; Tue, 24 Apr 2018 08:24:23 -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=N+Yt0V8P8ncsq0xlCoJleeiWA+dT2h31z2H2F2pLSIk=; b=cCfD9iuUPkZY92LOX5I/DZd9uw5Tw2J2fz/5Xo4rcMU5tppWYcjqDRryHBrmPAl0A2 owYjypfFLiIGRNNTWvqOaHSYv/MM/k4BXrJa/TqZTFJ94TdLsghVhJQWGg7dpk2+NW7G ogwjrOXt7lnJyv/4LiTVKhdaQ/cJFyZSiACPE= 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=N+Yt0V8P8ncsq0xlCoJleeiWA+dT2h31z2H2F2pLSIk=; b=l8l2rx6EcWHGGDK+bz5wtieP8gY5s+SsKvnMrLfOLVPO1qyBX2qr1fvnKNXF8pjZRS r/zKOEXmOyo2w/6hEyxZsXyvVZLggu4ZgKwY7pySAy4dDAVW5JfGvzLsrYUICmVXp9pX GinSduY+2J/OuCs4f7i9eF/HCg8hSoB5T+yAATHn+v2efwwMFMDxRSyk+4H23/qZOww4 SwpKgPSRNHoJjA4dd3uNTKF+am/NHf4N4xuWTiMANywQIitfZK2jDtJ8G9V69nl1klPx 0rX6x9/qk3jqhjJHP8YGMpVkmvFyC+6QGlUMBEOsGq13y8lvwpUWh0IXCD1k1SBZlCbx tKLA== X-Gm-Message-State: ALQs6tAzZe1pvaWlCE9NocBo4cxD8np/VbVSDSJ4q4AvtZpH/q9FVCbd 6bsMGP4eF7jLLQ2rNekruedKsQ== X-Received: by 10.28.193.11 with SMTP id r11mr12992242wmf.120.1524583462859; Tue, 24 Apr 2018 08:24:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b10-v6sm19038173wrn.42.2018.04.24.08.24.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:24:16 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 121583E1435; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:53 +0100 Message-Id: <20180424152405.10304-35-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 34/46] tests/tcg: enable building for ppc64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Currently this just enables building the multiarch tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/ppc64le/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/tcg/ppc64le/Makefile.include -- 2.17.0 diff --git a/tests/tcg/ppc64le/Makefile.include b/tests/tcg/ppc64le/Makefile.include new file mode 100644 index 0000000000..d71cfc9aa7 --- /dev/null +++ b/tests/tcg/ppc64le/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-ppc64el-cross +DOCKER_CROSS_COMPILER=powerpc64le-linux-gnu-gcc From patchwork Tue Apr 24 15:23:54 2018 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: 134146 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2443959lji; Tue, 24 Apr 2018 09:30:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoaATWyAYzp2n4Eu0TCC+WQpQzl7PrRlrsCqYsjVMJ0cptKIqIhO83nWNiI8pHHyashJl3i X-Received: by 10.12.133.161 with SMTP id o30mr3224664qva.103.1524587411162; Tue, 24 Apr 2018 09:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587411; cv=none; d=google.com; s=arc-20160816; b=YwbbSdwHBoUYkqrJ2xYnM0gykXi4KscckPpt3e8UWFb0Vz8EP1loylzXH8ntlA7ieK DGGXdBbwDzPSVtums5TjoRad1fMf/Q2EY+Sh2sGOIIZRkW2W6rDV19DhN0lXJqVIkbaI H1b0qO7vpXaaLm5ylSk87vNTTfnIulSZ6tvjUdcj+oZRPl5TdIaUMLnm6gnkxFndn5FE wwcbI0HNgn82Rb5ZTkb+sZwspO3I9WjoWkkwUVzlji9OjvedyX0VPvbOJ/qpEQ+HgqLS 8w2PCq7z3a+uT0wuuz7zgDyI3b3pA1y2wemzbdg+onPcii/GdNbTJM+S2K49l15pSh3P RKGA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=t3F8dUmfp8UBhDjbGo2x2WTsJhRyxDGxS3uS7iAHgqeSqIkGo8dFYTq4xyqNIsB0u0 YNAGQZloWLrasci3CO+9hrH97+AN5zcw8c2IY3iy9i/2Bu0cmx21iH2gSa+eBE5UAuW8 dln5mazJZkHpmTWOx6rEvK84kbg57QiqU0BGfLQcLWhebRgYHUjTsWSg9E+SymFefCd/ cmjK2ptc1T+6HRP70P+mnTqaG5SfqwOJqJsN0dlcJzNowvhnhuLPZtYoDMJywQY1BnIV TdPopGAtoo1BxwTlCp4CMJBWVim000TtXSbZCWn0Hal/72durY5et6DzLrhAcAs5RhFZ aCKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ap7gX+UB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v1si15771639qkd.135.2018.04.24.09.30.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ap7gX+UB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0pW-00005a-Cc for patch@linaro.org; Tue, 24 Apr 2018 12:30:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwR-0005wm-GR for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwQ-0001Og-0M for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:15 -0400 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]:52605) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwP-0001NE-MV for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:13 -0400 Received: by mail-wm0-x22e.google.com with SMTP id w195so1868047wmw.2 for ; Tue, 24 Apr 2018 08:33:13 -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=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=ap7gX+UBGmD7C86yggR4uQoUMT1FBxecKuZhKnz0iW1WP8iO9QZblchKPNl/u0uEM8 Owb0WKPqudKySEUSpOq8t3r688LnXnNVMa+MomRwsbOdrUINviALaFT//sOtWouMl832 WhVrxj000bMjeTdgOSc7xS7YEX0T8LIoPTbFo= 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=UUIcHZP39zG+ZkCDFCwsNqo26oXic/8QrqGp1tS/MQ8=; b=OgQceRAnulASyp2638DeEj95wnccAEt9+P029J7SFczpxfugl1//UGIcDROidN20n1 VWshqR/60KEORGB+pJ+wDZuLADKGR7QL76Jj5Tc0gjp/p5SvTfNYQg/DHX/qx2JJYPtK tWgDlq8WnHr2FNEOwXIeoorXfPWlib3Ash23gJMESm5zpDfnpXy5WwsfLyim92zHQCOJ Lciqn9PEjPaFZ/dlyXDrCbZbpZRUI6cUxMhmpdGF0PHvgum2K7IcsgcszeKU9LYwKpfG fpDmKyaiwni4RTk7cBECtXH1yYNavHsJaPZQ8IbInzH3gMGqc1VU84SdtcIZJqRbc1pC JHVQ== X-Gm-Message-State: ALQs6tCCB2gEWfa/AHMj/KEFO24QZBuyaa24ewXmSlyPRbioMUd5+czA JumHDD2bBeH6UIE0J0nnjiDi/Q== X-Received: by 10.28.46.208 with SMTP id u199mr11841183wmu.99.1524583992502; Tue, 24 Apr 2018 08:33:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z18-v6sm9127285wrc.36.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2A4783E1502; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:54 +0100 Message-Id: <20180424152405.10304-36-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22e Subject: [Qemu-devel] [PATCH v3 35/46] tests/tcg: enable building for Alpha X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We can't use our normal Debian based compilers as Alpha isn't an officially supported architecture. However it is available as a port and fortunately cross compilers for all these targets are included in Debian Sid, the perpetual rolling/unstable/testing version of Debian. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + .../dockerfiles/debian-alpha-cross.docker | 12 +++++++ .../dockerfiles/debian-cross-build.docker | 36 +++++++++++++++++++ tests/docker/dockerfiles/debian-sid.docker | 23 ++++++++++++ tests/tcg/alpha/Makefile.include | 2 ++ 5 files changed, 74 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-alpha-cross.docker create mode 100644 tests/docker/dockerfiles/debian-cross-build.docker create mode 100644 tests/docker/dockerfiles/debian-sid.docker create mode 100644 tests/tcg/alpha/Makefile.include -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 6a5aa9ec71..bcf44e80c4 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -62,6 +62,7 @@ docker-image-debian-ppc64el-cross: docker-image-debian9 docker-image-debian-s390x-cross: docker-image-debian9 docker-image-debian-win32-cross: docker-image-debian8-mxe docker-image-debian-win64-cross: docker-image-debian8-mxe +docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-alpha-cross.docker b/tests/docker/dockerfiles/debian-alpha-cross.docker new file mode 100644 index 0000000000..e446f7af3f --- /dev/null +++ b/tests/docker/dockerfiles/debian-alpha-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-alpha-linux-gnu \ + libc6.1-dev-alpha-cross diff --git a/tests/docker/dockerfiles/debian-cross-build.docker b/tests/docker/dockerfiles/debian-cross-build.docker new file mode 100644 index 0000000000..c3611a7d3a --- /dev/null +++ b/tests/docker/dockerfiles/debian-cross-build.docker @@ -0,0 +1,36 @@ +# +# Docker multiarch cross-compiler target +# +# This docker target is builds on Debian cross compiler targets to build distro +# with a selection of cross compilers for building test binaries. +# +# On its own you can't build much but the docker-foo-cross targets +# build on top of the base debian image. +# +FROM debian:stretch + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update +RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + flex \ + gettext \ + git \ + libgmp-dev \ + libmpfr-dev \ + libmpc-dev \ + pkg-config \ + psmisc \ + python \ + texinfo \ + wget \ + $(apt-get -s build-dep binutils | egrep ^Inst | cut -d\ -f2) \ + $(apt-get -s build-dep gcc | egrep ^Inst | cut -d\ -f2) \ + $(apt-get -s build-dep glibc | egrep ^Inst | cut -d\ -f2) diff --git a/tests/docker/dockerfiles/debian-sid.docker b/tests/docker/dockerfiles/debian-sid.docker new file mode 100644 index 0000000000..adeb7134ca --- /dev/null +++ b/tests/docker/dockerfiles/debian-sid.docker @@ -0,0 +1,23 @@ +# +# A number of our guests exist as ports only. We can either use the ports repo or get everything from SID +# + +FROM debian:sid-slim + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update +RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + flex \ + git \ + pkg-config \ + psmisc \ + python \ + texinfo diff --git a/tests/tcg/alpha/Makefile.include b/tests/tcg/alpha/Makefile.include new file mode 100644 index 0000000000..c7dc48eadb --- /dev/null +++ b/tests/tcg/alpha/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-alpha-cross +DOCKER_CROSS_COMPILER=alpha-linux-gnu-gcc From patchwork Tue Apr 24 15:23:55 2018 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: 134148 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2445528lji; Tue, 24 Apr 2018 09:31:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrw/BhxWweB+HHO2cPkZoKYlVVBfhYevNl2TcpYPcmZkPzcyeHk0YlYvyZOgWMeKROHgyMo X-Received: by 10.12.249.77 with SMTP id i13mr3283932qvo.93.1524587492078; Tue, 24 Apr 2018 09:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587492; cv=none; d=google.com; s=arc-20160816; b=bH7QIkki7W5f8ySfjj/ChzqTusjgVfobR1wJ1ophfc9tjh+LB1MBrX/HRK6jUS5v1l 0SjfGIGNxpdtfCux3afNWZ98XiBhXsl7aOjPzk/6le8uswwOtGBJWSCZ5Fe7HNpzpoBI 8QoOQK8tUQ4lm9NoHv3ae2nFgU87Iw+06XfM0QY4jgei63VGJqQjKFLAiH0JMQr+OqNy FJ6TSS2T6EmlxHdgIz1tBulay327XpZftPyFidQFnMl6USMfsAf0TsIIBQujqOBehGEs xL7FDKjSRe/ywcCJJ5FetHGFN9T9LayhvOHxS+Ag1aP/d9FwZkTwjdbx0tdY1nBzPdIY doSw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=fY1QPK2mCZI5wd+F/w+Wl5m1ppEYZKQTUgIpFLviYpM3f9ePoXyg0zXY9Z8g/WDQWZ VhXZDESMvjC+FWIVfTxdY8Hw+FBaMBiP3lrvec5GmM+hdM8X/ovZ/2G6yE9SMD/8T0Ie TtbYwBVbNE8cpn3sg7yYqzR6fywaIOaXQIFC37MvpxKfbSz+qZbfsYTZokuIJuh2LCld K/eKCjib1waLnbn+1KYP/1WmjNr2dXi52XBNEsV9SOuK//wBToZ889GcofjaH8W1dg7h 1IeGdtl2HBxU1D1eT5uQzp1rHFW4zXAeOqZfbzUD3vJQeccH/N1Gp9wSqZFBWSCUPebB 2jvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZFbHeEj/; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e6si1702424qvh.196.2018.04.24.09.31.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZFbHeEj/; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0qp-0001v5-CC for patch@linaro.org; Tue, 24 Apr 2018 12:31:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06A-0005Fx-Og for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB064-0000cB-Uk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:55561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB064-0000bn-Is for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:12 -0400 Received: by mail-wm0-x241.google.com with SMTP id a8so1933016wmg.5 for ; Tue, 24 Apr 2018 08:43: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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=ZFbHeEj/pW3TegroEs7uFX1Ij3/7EVMSJL00LNUcTgeh9yJct9PV5Yfk71LlgmEeJI k/oQnhziPKe/794Xu5CvLc1zjm4IJr+vpzQ866D+jEGLcE8/t7PwYfibjGWAQkFAiMZl R3+r5IYASTQfFClwH2BTfWZtgEQqtyGbinmCw= 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=rf0ei8V3A5rxkJwm6mG1f92eVz8GOA74iaEbajY8R+k=; b=SKcKIx4hWrI0Y5edU+aMaGYzuyK3y0aABE7FuuSxVkF8pB3fHzG87iBjUA8krPggWz bc0LKhk1PVsL/NA0UH8Z843uegIVYDB6ZGKvq6aH4oROGVsk8w44ZCl+XRzjLLuE3F8m 3yDA8mtguzQpSSd6/IiSdyoocu6mFoXt+gP+Y6dX7uehqVxKj1co6lWjsmsxE+6Rwmjw PfiER2R3uZcZEKxfWJiSOkdOfpjkV50iXDO5lAXKX/P2jyctHVH6k013a4Rou05bSZNu QayfiURgEagle/WohSWdCAILLHU4aTVtD1eimKxCVYxOuKZRqzV/q+5hMPC/nPFtMDVo AG3Q== X-Gm-Message-State: ALQs6tAePDp3Ld3w4AXoqECqblJDDYjS4EdJe/59azSKxG8btT6T6T28 Ed1/vOJ+msTNSkWsQ+ms+1vdxw== X-Received: by 10.28.16.18 with SMTP id 18mr12962161wmq.81.1524584591397; Tue, 24 Apr 2018 08:43:11 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o16sm10382800wmi.14.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3DBEA3E1506; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:55 +0100 Message-Id: <20180424152405.10304-37-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 36/46] tests/tcg/alpha: add Alpha specific tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These tests are a little strange as they use their own crt.o stub instead of the system supplied one. We also disable the multiarch testthread test as that requires a dynamically linked build. Signed-off-by: Alex Bennée --- tests/tcg/alpha/Makefile | 35 -------------------------------- tests/tcg/alpha/Makefile.target | 32 +++++++++++++++++++++++++++++ tests/tcg/alpha/{crt.s => crt.S} | 0 3 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 tests/tcg/alpha/Makefile create mode 100644 tests/tcg/alpha/Makefile.target rename tests/tcg/alpha/{crt.s => crt.S} (100%) -- 2.17.0 diff --git a/tests/tcg/alpha/Makefile b/tests/tcg/alpha/Makefile deleted file mode 100644 index 2b1f03d048..0000000000 --- a/tests/tcg/alpha/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -CROSS=alpha-linux-gnu- -CC=$(CROSS)gcc -AS=$(CROSS)as - -SIM=../../alpha-linux-user/qemu-alpha - -CFLAGS=-O -LINK=$(CC) -o $@ crt.o $< -nostdlib - -TESTS=test-cond test-cmov - -all: hello-alpha $(TESTS) - -hello-alpha: hello-alpha.o crt.o - $(LINK) - -test-cond: test-cond.o crt.o - $(LINK) - -test-cmov.o: test-cond.c - $(CC) -c $(CFLAGS) -DTEST_CMOV -o $@ $< - -test-cmov: test-cmov.o crt.o - $(LINK) - -test-ovf: test-ovf.o crt.o - $(LINK) - -check: $(TESTS) - for f in $(TESTS); do $(SIM) $$f || exit 1; done - -clean: - $(RM) *.o *~ hello-alpha $(TESTS) - -.PHONY: clean all check diff --git a/tests/tcg/alpha/Makefile.target b/tests/tcg/alpha/Makefile.target new file mode 100644 index 0000000000..5b573f145e --- /dev/null +++ b/tests/tcg/alpha/Makefile.target @@ -0,0 +1,32 @@ +# -*- Mode: makefile -*- +# +# Alpha specific tweaks + +ALPHA_SRC=$(SRC_PATH)/tests/tcg/alpha +VPATH+=$(ALPHA_SRC) + +ALPHA_TESTS=hello-alpha test-cond test-cmov test-ovf +TESTS+=$(ALPHA_TESTS) + +# Our own minimal crt.o, bypassing gcc's version +crt.o: CFLAGS+=-ffreestanding +crt.o: crt.S + $(CC) $(CFLAGS) -c $< -o $@ + +# Alternative build, linking against local crt.o +ALPHA_BUILD=$(CC) -o $@ crt.o $< -nostdlib + +hello-alpha: hello-alpha.c crt.o + $(ALPHA_BUILD) + +test-cond: test-cond.c crt.o + $(ALPHA_BUILD) + +test-cmov.o: test-cond.c + $(CC) $(CFLAGS) -DTEST_CMOV -c $< -o $@ + +test-cmov: test-cmov.o crt.o + $(ALPHA_BUILD) + +test-ovf: test-ovf.c crt.o + $(ALPHA_BUILD) diff --git a/tests/tcg/alpha/crt.s b/tests/tcg/alpha/crt.S similarity index 100% rename from tests/tcg/alpha/crt.s rename to tests/tcg/alpha/crt.S From patchwork Tue Apr 24 15:23:56 2018 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: 134131 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2420244lji; Tue, 24 Apr 2018 09:07:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpYdg9mbkkIktrEFb7CAgA3nttrmb7d/d6I+LCn3xP26kLp3gf/8ZvmF4bxTwIW9FaVpytS X-Received: by 10.12.246.77 with SMTP id s13mr349267qvm.105.1524586066501; Tue, 24 Apr 2018 09:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586066; cv=none; d=google.com; s=arc-20160816; b=OIH453og/4DB7ZBLPn5w/GzzQQyaMiukPraelB1jl3LJoYo2iHqifS06DimVXSC86z 03i8U4uJaKw2gNnUgMbsWy5oru7Hb3L+Xkiy5QCGjicpcY5B+94CPnqyQXcr9Optbeg+ 5+19rWXPaB912T7IorlSykv9wOnJA4j5LNSZRQRLZhnwJ49n1ztjIL+Dd+SGZkOkE1Ae GhxOZ4o0hdFeXX+eU0a9qwbtoWEzd7FqvjaT/6t7lemlPyauU6eGnpv+uE28wc53IJRq I/+HakFNujH+fJ8WJVdX/o5ZXevfxxSnlts/KNvAlh1lsZ+YpP+yS7Co93fxm4ugNoNP x8Aw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=1heQrYdnxVPIkKHw1IORbYKNdqJxInChIPATN/MXcP0=; b=xVBMjTkS/fezWRrfbD+eqmgcrUDq1NBKt70q/KYb0Hb9KOJfm4A9tk3HdK5PobLF5G gPcOVufiKskmPjjQ+12Hn5cxJ805tcFA/s2jDnMq2+CtVBMM+kiRpky/7o5qaahctXrb TpiNwHxEnKq/JXmbItUcpzn5117zVZ79ZXp1Jq5ZrWH7WO5Pwv2TXdEz6fz6CXaZU8qd /UMCzvt0OxhuIRCLm94Yj+c5Ir/qs4of4sOlLrcyZL/JWsv5pzmkIjF9Y/1HC6YSVzVy o6FGoVnu2OGn0Cq0yik6FbmsBgRsFNcpeVWSiqWJMtz6I64X32SBa89P7Zk0Wla20lZ8 Kp/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KpmvGzrf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a7si644305qvf.94.2018.04.24.09.07.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KpmvGzrf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0Tq-0007KC-0V for patch@linaro.org; Tue, 24 Apr 2018 12:07:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB068-0005DS-Br for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB067-0000eg-L7 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:16 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:37770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB067-0000dh-EQ for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:15 -0400 Received: by mail-wr0-x244.google.com with SMTP id c14-v6so10315751wrd.4 for ; Tue, 24 Apr 2018 08:43: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=1heQrYdnxVPIkKHw1IORbYKNdqJxInChIPATN/MXcP0=; b=KpmvGzrfV95yNBQ8Dxfu7rVSGQNu6GoxyYgaqLK3SttUeGN9rsIwWKrZrkzYgHGlpq jPncmvQGfXo0HSrAWdhrYuORclTkJPOldoGqC12X4SuUZe8Pv/LXuTIfu5DASQHifj3u cbv9naGX/P719zUnG/gSGYBNXR2hZxErzSJgY= 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=1heQrYdnxVPIkKHw1IORbYKNdqJxInChIPATN/MXcP0=; b=D3kt7XUBypuJtZTB12S9z9bsHCpcI4W9cWhDMdnBJ9S25lY7dS9XfZpYlOt+rIrjFI PGinTjv7PQR9Yh6USNfgZBv5L8LtccP/5+tAOwP5JimktTbSEHRDQHDnRkyeCUkxgNky EN5WNvSchXOxtIgZBaIKOxGyCmq6agRd3tlv4TCvNVr8jRzN55k8rqOFaxpZ/wvxO4Mj SNxs1P8c84/WErwNXsBgFqfTfrjvDMnLIw3A3GyLAqOR5gUpDCx0kY2MNsqiR9HMtfKr 6arOjw/2/Y/4Utj5m4/HJCqfTZC2vRj13fCuBsFC3OoOZvaSQFStiEHaqeIr8U9JMT15 XIYw== X-Gm-Message-State: ALQs6tALNTDISC6GIVysYwSlAWXFmG4WznsxBRy8z20LurAR/wvKTNqH +Fn83f/RyeZSOl7rwXhftSMQkQ== X-Received: by 2002:adf:c6c7:: with SMTP id c7-v6mr19941357wrh.104.1524584594360; Tue, 24 Apr 2018 08:43:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m15-v6sm4346219wri.8.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 530703E1551; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:56 +0100 Message-Id: <20180424152405.10304-38-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 37/46] tests/tcg/alpha: fix warnings about write() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Although we are not linking to libc we still need a function prototype for the write we have defined in crt.S. Signed-off-by: Alex Bennée --- tests/tcg/alpha/hello-alpha.c | 2 ++ tests/tcg/alpha/test-cond.c | 1 + tests/tcg/alpha/test-ovf.c | 2 ++ 3 files changed, 5 insertions(+) -- 2.17.0 diff --git a/tests/tcg/alpha/hello-alpha.c b/tests/tcg/alpha/hello-alpha.c index 79892e6522..f1207a2411 100644 --- a/tests/tcg/alpha/hello-alpha.c +++ b/tests/tcg/alpha/hello-alpha.c @@ -1,3 +1,5 @@ +void write(int, char*, int); + int main (void) { write (1, "hello\n", 6); diff --git a/tests/tcg/alpha/test-cond.c b/tests/tcg/alpha/test-cond.c index 74adffaa69..b5774e4d6d 100644 --- a/tests/tcg/alpha/test-cond.c +++ b/tests/tcg/alpha/test-cond.c @@ -1,3 +1,4 @@ +void write(int, char*, int); #ifdef TEST_CMOV diff --git a/tests/tcg/alpha/test-ovf.c b/tests/tcg/alpha/test-ovf.c index 01c80e7525..7ecf7e4bce 100644 --- a/tests/tcg/alpha/test-ovf.c +++ b/tests/tcg/alpha/test-ovf.c @@ -1,3 +1,5 @@ +void write(int, char*, int); + static long test_subqv (long a, long b) { long res; From patchwork Tue Apr 24 15:23:57 2018 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: 134155 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2455264lji; Tue, 24 Apr 2018 09:41:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFLPCQFUDiRFtqiPEXRfoamSQi3vgMESEf6IQAQ43qU8KFHIQssjlO7A3yaOZn5XhWahWu X-Received: by 10.55.43.105 with SMTP id r102mr27222271qkh.26.1524588074824; Tue, 24 Apr 2018 09:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588074; cv=none; d=google.com; s=arc-20160816; b=sZLSwzbeaSdhDlEer085HutgHUHHZ2yVEmZOGcFqSq5qQ8ndvGKbBGJW1sAl9UGzHt co8Q/mckVEi8Xs5n+FDWNsmEZtmF/lTCROzlJ6R6GgL/WV9V2LLo/S+FA6JeeoVXvPVm sqG9PCvp39EwnhnB6GndlIDbQTaPNVpjRRan/2IJozz/V0LOf1sM7nKseoWr8xoeX5nC /IeRj6FF5b6IBpVjZdvQwVHeOpPs5Ge+QaPfnYIWgjaW3OALbpahIgvhEetBSbzWALR/ 8E2TlFQXIyNtJoTLxv7oLd+zDWxPzoVyDPV3Yc1jTn5+7QqZSnaqnpQ2idMOEj8pxb9v EKGQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=cBiazNML4TiN+V5eDK4B5skJ7wqiHLIoMnOgv4kSugM=; b=FHbqyrKyUTDBLLDW7+CSls8ZHodbC3XOswflzLpLpNXSsQTPjwaYrnoeZnPPgSj0Z8 AtTAI0/D+5n2bNCskjQ4iqkbEOX+hxjBgnZTZD6Li0FaC+HJhWeRj3e8PkN5aohYfVI8 VSKbqgW7avP0HmRHM+mRqNgCT4wxGlTm1UJrwX66I7jt3m5E2P70TtMXF/YLC07p6Kyb kHlLWKVQeElG1LDo1fhEPH5PJug1OFG5xGZY0BEsrqJTBRY7Dhb9q0nL5cbHZaJP4btw xpFDXbusfRCe/03iyESZcN9Iq8sAbvgv/RsdWJ1RhkLRr78pyksUK4fnY7OlZi9Mbbxp EeQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GV9Ej7ui; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l3si1525206qvk.134.2018.04.24.09.41.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GV9Ej7ui; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB10E-0000k0-BE for patch@linaro.org; Tue, 24 Apr 2018 12:41:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06E-0005Jy-7j for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06D-0000iW-9S for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:22 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:54892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06D-0000iB-2X for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:21 -0400 Received: by mail-wm0-x244.google.com with SMTP id f6so1929151wmc.4 for ; Tue, 24 Apr 2018 08:43:20 -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=cBiazNML4TiN+V5eDK4B5skJ7wqiHLIoMnOgv4kSugM=; b=GV9Ej7uipi2sy2xFiUChNGsbl20yM0tZtY86u97hbhYozzGBT7kuIi/D9jsrVi+mCB oFKBe880dt3VszI6zPab5/YFpwHJlYaDrgdqnKEZqdOqSF3219Ha3UopHg3l3e8Aqy2W XVtFsTlruxsJvcuLCT4suk3wsEKPbn6Pj0488= 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=cBiazNML4TiN+V5eDK4B5skJ7wqiHLIoMnOgv4kSugM=; b=nZO1mDugZTYLFVoZ/kM9hEOkly9Brv58HFaTcSxRf/xU4SuJ5INJxm79iZs+Z/ncwK 4zGd+HiBbFE40iI6wGm3XXLmKS3AJWwotVEnhGXeDG0QgNfVf2ooPcP/nqZVc8KBvxdQ EfEh0uZ5ZCJIzcIAusuUu8eFsBbsQ67Efx7G7laiabJrGCNzRm6G1SZiq6KId+hx8Ify KvJJUdfSWlcrZCZC6lQgCo/MN7CC5undCQjfMj+JEHGYxxRFJu57q9YoqSRqaKOM9Lnv PDdAs0YEZN9nsLHuW9bPaaueZ7/XN82OtDTVDRuM9gtfRMDD35W0dV+Ma1mi9hh8fPF5 Mfgg== X-Gm-Message-State: ALQs6tA4gFdIDP6YTsh8KuNTauqeTvA3SOYTNo2v5FVN+UOZpw9n9QwI 8Ve3k8TtMDnlTjUu16W0vJtu2g== X-Received: by 10.28.177.197 with SMTP id a188mr11846376wmf.121.1524584599954; Tue, 24 Apr 2018 08:43:19 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f2-v6sm12007291wre.76.2018.04.24.08.43.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 694553E1582; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:57 +0100 Message-Id: <20180424152405.10304-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 38/46] tests/tcg: enable building for HPPA X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-hppa-cross.docker | 12 ++++++++++++ tests/tcg/hppa/Makefile.include | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-hppa-cross.docker create mode 100644 tests/tcg/hppa/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index bcf44e80c4..2471c4f30a 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -63,6 +63,7 @@ docker-image-debian-s390x-cross: docker-image-debian9 docker-image-debian-win32-cross: docker-image-debian8-mxe docker-image-debian-win64-cross: docker-image-debian8-mxe docker-image-debian-alpha-cross: docker-image-debian-sid +docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-hppa-cross.docker b/tests/docker/dockerfiles/debian-hppa-cross.docker new file mode 100644 index 0000000000..ad443defac --- /dev/null +++ b/tests/docker/dockerfiles/debian-hppa-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-hppa-linux-gnu \ + libc6-dev-hppa-cross diff --git a/tests/tcg/hppa/Makefile.include b/tests/tcg/hppa/Makefile.include new file mode 100644 index 0000000000..da2353430e --- /dev/null +++ b/tests/tcg/hppa/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-hppa-cross +DOCKER_CROSS_COMPILER=hppa-linux-gnu-gcc From patchwork Tue Apr 24 15:23:58 2018 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: 134158 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2456964lji; Tue, 24 Apr 2018 09:43:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZouzcDo9dcmgPPIyReuTMTg1xVlfByE1t82IemidMAT8MYk7FFFvvPoClv8dIKuDNz97Fy+ X-Received: by 2002:aed:226d:: with SMTP id o42-v6mr2204016qtc.258.1524588185339; Tue, 24 Apr 2018 09:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588185; cv=none; d=google.com; s=arc-20160816; b=r3vb+vOFyC3vOE5/WBJtY2K2jvUoaXlUobAQkmzAUWcc3pOVir1x3GqqzcaAMsVyD+ GT3Tp5XdaNAvYb1XgckNBU9OfEfdQh6MctxfFYH6GBE3+VdKVO4wQMHPXDc9IDjBQd3r aWXb7d4X9OZ92SOp+ETU6PkDvxc9IsIBWTfNusDPRwBbc6gqNn9VGVApGjsPDIa0m5BH 0ioLgQesejbDZ+1BQEbyMMxQSgipftK8oa/OPclKCsrDlR1RvW8p4V40ebhcBS7zgWbc AsnSviFcfsVgo1KUxC0SQnFyKsduHQNx9DYuYANH9s3oLL39HiMPig0sgI+ANTtzddJn bxGQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=KTU1XtHAjN9QlTO8+wDpL9GSEYNvqI7jmT7I3Lct1Y0=; b=TlaanI34wJYFEtwewe1I3T9A1S/eSQ0ZABnTS/aRG9cP9FN/cjcqZlZmxFv8w6dafd 0R8RUYW3mvlSPp3gZlcwKhEh+JvaaEEQQrNchPzVebfbhbvOE2UCOC5xr80MTExtPqlX G3az8dC2jgWqf4e5Kw5uEZkWqfEmrKEQ8n9B524uVGOIxCVQzi9wvH+3b4Ylco9JQ3xA WzlGi+uwaIcmU1kiK9vIQiI5nBrx5XzX2anNvtWl0Kdfygc7E3zu6uIanvvE3ljhNsY3 5IQifsrdfOL3cQuHykVETjeVfjMGrm9ABDaCDrkpjujI0u4vHOeCI4v37VcIsqOKrYbW 2E0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=apqn0jJs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b22si2655818qvf.110.2018.04.24.09.43.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=apqn0jJs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB120-0002go-SG for patch@linaro.org; Tue, 24 Apr 2018 12:43:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06E-0005Jv-61 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06A-0000gF-69 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:22 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:44427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB069-0000fp-Vk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: by mail-wr0-x243.google.com with SMTP id o15-v6so50430528wro.11 for ; Tue, 24 Apr 2018 08:43:17 -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=KTU1XtHAjN9QlTO8+wDpL9GSEYNvqI7jmT7I3Lct1Y0=; b=apqn0jJs/z2O5zGz6rUSN7W8PdfoUPqn1z0TOxl6QEs2ZSRRvgzVg6OCnZj0FBTnm7 7ITfZZfFRkRmysbUgrj9WeCAQBWvSdT9tfQ7csnCQ57iqYfTcFs4JoU0CgYdTLus7sb0 XfaQQjZi+387M0bwU222QHNcU1a49LcKu4R/8= 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=KTU1XtHAjN9QlTO8+wDpL9GSEYNvqI7jmT7I3Lct1Y0=; b=COP6TPQydtypnR0trTQgRGBVn38AZLg9pr73tFU2Nx2ff/DLBUAkWSR6uId05g21WB PiM/jbOXvXr/ZZfxq7Aw4RUjwC2yR8oMbRzcyioNnff/DuzXtDIXVX8nNQ+gE+dzhwFl YejPWA6Tu/nAJcmtjly1zdq78qSKWBojgRZLC+qJ2B59gwbuMlsBYzWDg4fgQtMkk9WO zLZwcWrw8rmDbtCD1QoM+gyqprW+8yb3oRpx8QBZTJFU/j1aJm4Fc75e2/rW1qefBNSv QJochBzIbrKkJTmDrWsoAXvZLL9WYWN2tWV/7CdszsGnT1Fd8LG+ZMKvy3zTS0DkFkCD WzMQ== X-Gm-Message-State: ALQs6tCpE97cgs+xyvn+CviaFJPwRIrm2g+d9pJcdapkzVFUIXxRznuu xvJCMHIFOzfL46yZIhs/e2v/sQ== X-Received: by 2002:adf:8628:: with SMTP id 37-v6mr21025422wrv.255.1524584596840; Tue, 24 Apr 2018 08:43:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z18-v6sm9152947wrc.36.2018.04.24.08.43.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 7D8343E1584; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:58 +0100 Message-Id: <20180424152405.10304-40-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v3 39/46] tests/tcg: enable building for m68k X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-m68k-cross.docker | 12 ++++++++++++ tests/tcg/m68k/Makefile.include | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-m68k-cross.docker create mode 100644 tests/tcg/m68k/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 2471c4f30a..15c52127c7 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -64,6 +64,7 @@ docker-image-debian-win32-cross: docker-image-debian8-mxe docker-image-debian-win64-cross: docker-image-debian8-mxe docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid +docker-image-debian-m68k-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-m68k-cross.docker b/tests/docker/dockerfiles/debian-m68k-cross.docker new file mode 100644 index 0000000000..21ba3b0132 --- /dev/null +++ b/tests/docker/dockerfiles/debian-m68k-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-m68k-linux-gnu \ + libc6-dev-m68k-cross diff --git a/tests/tcg/m68k/Makefile.include b/tests/tcg/m68k/Makefile.include new file mode 100644 index 0000000000..cd7c6bf50d --- /dev/null +++ b/tests/tcg/m68k/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-m68k-cross +DOCKER_CROSS_COMPILER=m68k-linux-gnu-gcc From patchwork Tue Apr 24 15:23:59 2018 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: 134157 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2455574lji; Tue, 24 Apr 2018 09:41:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo1pronxMxEVE3eqkpJpXCZfQN/FIaBbq0Jbe8fB2AeXhNRUiHmUbjVc3RgToAt4WWPYlRZ X-Received: by 10.55.163.203 with SMTP id m194mr27328258qke.339.1524588094864; Tue, 24 Apr 2018 09:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524588094; cv=none; d=google.com; s=arc-20160816; b=becOe293sXOc5Lix+sSW7k78emduCWEPdroNRwS149xCyGEx92r4cNJGfkhaTicooY 26dYjtdCUnUoWaEYEiJRoY3hYz0naglRuqG6Zv9Ljr9vsZXJGwb/QRSXI++aBK+EQgVa VvzOZgv/JCHducNVQoTCKkE8Ozry4Drv4saoouG6ys9rV8x9Bs9/0MWWutxsBX3C/66D 7C2vk3Xo/B4I536sXp+BU+5LbybEBlnQccFHq7TlaL0nIGjqsgljrrlnzXG3Mf91T5CU aGuHMID+J8YMm1pYKHA/MBcbvRY/rdp8uPv8ld9ixXEsg/mn1MDgO1ExNcU/cjTUyzWA h+XQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=eYRUQ6gKCetmKgWP20Psl1bsqRZ3OZvvTIfejIfh0kk=; b=ri4NFiX3rrZuFprYQ2GZeoYWTfO9+jUhKZ3lum2qYW49f4M/QulvlO+sPCZ7NH2+N3 lXynIM546xeJXws9S+m8yGeHZXnsm+7bryMPZYY4ZHEBE5pOuz5nnsotIlubYFZr367S j6u3j50S3x+6JhaLiD16MRar76KravRX9NqyfFzBA+MbwXBQ8hBSWlRLFKizZKIc9FCC S3ruM5xi7G2Bm6z9QaVE4eeSz+U5jITIk9QiwrWj4eo/S4fAZsLfcjjWGf/IMRu75W3I XQvlQaxXcciTJfH8u7hyeoaI7gpSQLyQGV9vLH+C6e6n3+ZN+BDsWSKo/DBC6cwJGCmP pxVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RzQBReBQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h89-v6si468383qtd.54.2018.04.24.09.41.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:41:34 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RzQBReBQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB10Y-0001i6-Cl for patch@linaro.org; Tue, 24 Apr 2018 12:41:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06M-0005SA-1N for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06G-0000kQ-Dg for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:30 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:52938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06G-0000jl-71 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:24 -0400 Received: by mail-wm0-x244.google.com with SMTP id w195so1934458wmw.2 for ; Tue, 24 Apr 2018 08:43: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=eYRUQ6gKCetmKgWP20Psl1bsqRZ3OZvvTIfejIfh0kk=; b=RzQBReBQ+Nk1xHh/XlkONrbbLx7Ef55XLXvMLgsicLo0mJalKZYettAx6xV54sqT5s SVXgYAwgU0vK3rElEIqzYvYcR58MZ58GkoyfXUKpHK+2rBh+8JaIQkWU54XiDmXlNcVS 1KoyFd1nETUfbCT7xc59IFCOVYM/UeET7vL4s= 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=eYRUQ6gKCetmKgWP20Psl1bsqRZ3OZvvTIfejIfh0kk=; b=svX2/YJFDWIloijs+WBuWMy13TO22DNfqbdVXt1/WHBnJUBJ9rObkXJUESaeDXLdQq LKj07hqPv3RSoIN39AjOqS52bqEs0BFimRKR6LO1yl+OILph/w+Vz1ulqrzCuZaYojs8 g67EgfStAZO5oCuq/SDDP6cP015iUwAB0zNOBzvgeDGHANtRkD7jbVGnYiNgx+YNsJG+ Ot7yfWZCwy1A90aAbZeTB1EPE27K/qhjWw3YeXitlot7WI2cw/eKr973uXs2R/BhoFrt dUYTCbWSC9PiL+fu7GFDqJ8kG1vAmUwwuu23KB3E6UYjKXGyayFcjrQsfG8lg39l8xYM 9DaQ== X-Gm-Message-State: ALQs6tCDN85sD6ef6/pxBjZxFK2oVD7APWpvX4T12Xs1rvZ9XCf3mY9P 0MXJiTUbdO1B0xK4R2r1M7ES9A== X-Received: by 10.28.71.77 with SMTP id u74mr13357232wma.149.1524584603035; Tue, 24 Apr 2018 08:43:23 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id u196sm8652678wmf.30.2018.04.24.08.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 921D63E15FD; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:23:59 +0100 Message-Id: <20180424152405.10304-41-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH v3 40/46] tests/tcg: enable building for sh4 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. While the compiler can be coerced into generating big-endian code it seems the linker can't deal with it so we only enable the building for little endian SH4. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-sh4-cross.docker | 12 ++++++++++++ tests/tcg/sh4/Makefile.include | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-sh4-cross.docker create mode 100644 tests/tcg/sh4/Makefile.include -- 2.17.0 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 15c52127c7..c08f32ca58 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -65,6 +65,7 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-debian-m68k-cross: docker-image-debian-sid +docker-image-debian-sh4-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker b/tests/docker/dockerfiles/debian-sh4-cross.docker new file mode 100644 index 0000000000..88a2423094 --- /dev/null +++ b/tests/docker/dockerfiles/debian-sh4-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-sh4-linux-gnu \ + libc6-dev-sh4-cross diff --git a/tests/tcg/sh4/Makefile.include b/tests/tcg/sh4/Makefile.include new file mode 100644 index 0000000000..ad21594d9d --- /dev/null +++ b/tests/tcg/sh4/Makefile.include @@ -0,0 +1,4 @@ +ifneq ($(TARGET_NAME), sh4eb) +DOCKER_IMAGE=debian-sh4-cross +DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc +endif From patchwork Tue Apr 24 15:24:00 2018 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: 134139 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2430885lji; Tue, 24 Apr 2018 09:17:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LmY54NtFddQLTc+dCSMFjFv8M3JEX57+BNTLRAZ24ZmRNMz9o1nRXHEvneVsWHyZxyF08 X-Received: by 10.55.191.131 with SMTP id p125mr25822818qkf.99.1524586629757; Tue, 24 Apr 2018 09:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586629; cv=none; d=google.com; s=arc-20160816; b=kvu8qBBUlfWUMsE3mgGUe5n908kLu998btOz4S/gQhei/Tsdlk82hqIT+hxqWrqVx2 NhVPfYgRFFy7a64Y9N96HMxGMCwBmOEUNKlp4pk9/qjyuje7PnFrKJMkuHvb0fqV9XVK 7L7QGZbNikLfSNsgG2QjrPfpt2Uy2KMSbi+hesf63ftB6aW41CbHeRLl/1rP5NvF+yv3 mwFJP1hwp2fYbHFDHkj4YICl2sDVGLjfeBMR6/gMVMxr3EpozRbDoc0+Kzi3Lm7cnOFc 11dcSssds50VFfYmLkY4DCWjxtRXe+qA2IN3oEHlNM09s2Tt2UQHjKfnISWqjlsmoZu1 IZng== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=T3ZbpXoixNm/vlT54qPwb9JEP2Bdb4yOQ2LifTvn+2Y=; b=vUcNycKu3ngPCGUkKW9ce9N/GT49X6Z5q7wALxmB4arR0VRY4VnOq/2uXFubXQ2mSP xvPw383k+0P9OUsDsVCs1c6P9/2EqQ66qyBxusb9y9tLQCRTBXJmDLFw2bnu7vJb5miO 7JKJlCGtaWCoVoZq73VfPpdNNWb+uSpTPHv9/NDAF2PVZICkZjDQkMxxjilXEz1cKnXB 9bw5wPRDybmJ5sKgQQJJRRggyPNrb+Yz9I6sRLC0PgBPr9va1SXUEQG7arWx2I/sTar4 pLaCI6DW8o1oyFVCJZ2AndFTQF90fCaB/w+vc76v/gN/splgWScZjJtbHd0MBbaRG8W1 U/6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=REJN0SWR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p27-v6si757134qte.207.2018.04.24.09.17.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=REJN0SWR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0cv-0006T0-5U for patch@linaro.org; Tue, 24 Apr 2018 12:17:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwZ-00063i-T5 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwV-0001Xl-BG for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:23 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:34460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwV-0001Wy-4y for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:19 -0400 Received: by mail-wr0-x243.google.com with SMTP id p18-v6so31210223wrm.1 for ; Tue, 24 Apr 2018 08:33:19 -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=T3ZbpXoixNm/vlT54qPwb9JEP2Bdb4yOQ2LifTvn+2Y=; b=REJN0SWRngklEB7TNVe8XYULaU8qu063ZBgMP/Xqjtk+fJ0G2/fV7FXGjOPmKQceGu NThKYucrTPd2QSI7O4Hsejw7DBuGRlu5mpg30ezAl8YQit/miJWYCBPPdBWqy9UrOY2C WRqRLINROae0wZR6PLg+Um6rbC8KGIP2QRPpk= 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=T3ZbpXoixNm/vlT54qPwb9JEP2Bdb4yOQ2LifTvn+2Y=; b=iKqQhKLPI/3Wlnmk2GxrYxu2TCN48FqtOVfYjBb4eHMyM9FOXGV8gMZwvYG86lgZv+ cA5V63ARHbBiI1Z/xd8ZL7Y1jNT11FVL6Ri1Njm+ZQtrCf3+eQtDKE7PpTX4VRHTQZhN IO3ua3Is77azFcLQ35U3MLKXmvo0IiloBLtcSlYbnM2XCFz+9Re1Av11cMmX1fqd7OUZ I3O15avZQCUZHNjWRkg9waFHse85KkC+NtJePUDb8eOGmZU0SbENzFQKRF9QUclFE384 MngepQPN2YUfXduBlQaQ/5adXJsOtUkFyedGjKIAe5I0Snfmi0eTX4j/TPLBoUtqhmbD pEKA== X-Gm-Message-State: ALQs6tBB91eHQRL8Uv0/xkgiolJh+OLSCqgPAvVG5U0YyiXgxLN3VGd8 bFWgyeI4k7f9oE5znm5431GR4A== X-Received: by 2002:adf:a6f8:: with SMTP id t111-v6mr21432580wrc.161.1524583998006; Tue, 24 Apr 2018 08:33:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g7-v6sm12603406wrb.60.2018.04.24.08.33.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:14 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id A61383E1640; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:00 +0100 Message-Id: <20180424152405.10304-42-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v3 41/46] tests/tcg: enable building for sparc64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-sparc64-cross.docker | 12 ++++++++++++ tests/tcg/sparc64/Makefile.include | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-sparc64-cross.docker create mode 100644 tests/tcg/sparc64/Makefile.include -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index c08f32ca58..62d1f4dec0 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -66,6 +66,7 @@ docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-debian-m68k-cross: docker-image-debian-sid docker-image-debian-sh4-cross: docker-image-debian-sid +docker-image-debian-sparc64-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-sparc64-cross.docker b/tests/docker/dockerfiles/debian-sparc64-cross.docker new file mode 100644 index 0000000000..1e2c809274 --- /dev/null +++ b/tests/docker/dockerfiles/debian-sparc64-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-sparc64-linux-gnu \ + libc6-dev-sparc64-cross diff --git a/tests/tcg/sparc64/Makefile.include b/tests/tcg/sparc64/Makefile.include new file mode 100644 index 0000000000..95fc8dee9f --- /dev/null +++ b/tests/tcg/sparc64/Makefile.include @@ -0,0 +1,2 @@ +DOCKER_IMAGE=debian-sparc64-cross +DOCKER_CROSS_COMPILER=sparc64-linux-gnu-gcc From patchwork Tue Apr 24 15:24:01 2018 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: 134136 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2425704lji; Tue, 24 Apr 2018 09:12:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tVUxIPTrsoaAyETmw/sMOimPOMa4uKThqTJVc7n5NG0TAaJZJR/W9XpsHa+ySkXydZNAu X-Received: by 10.55.33.17 with SMTP id h17mr27167667qkh.427.1524586359219; Tue, 24 Apr 2018 09:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586359; cv=none; d=google.com; s=arc-20160816; b=tPqin9KxCG+FVdGkRVG4sAMZjWnHtG/Dl0AdP9PiIJqEsKwqpMJ6KTb4SF1AV23jQN EtLrBXmxBVAkBCAWn6M6j9hoEftGG9ZzITnkgHroLJ5y4lQzOc5nm7PJ2lAXJTOiZv06 Bk3cLs2/VhH1YYpNGu7ZkRDFomcyRYoBKRwn7j2hziD/PUljhyoCwDztdgf+d0m5z5mJ gcb3AH2xCRNnqDZPg99sXrlHfWKd+e6SRukn/16mnNEcV7pFjP2GXcC3ryjbAXHA6aMw WKPLxwSiBSALd63vt3Nvn9QVWMgYRrATLs//67ZQW2XwXMpq1UIgLVZ/Nd5oC/TVPOTd KhoA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=eAQ3luGPSIEFULeEFh4q8NIcFvtZLiXMM1SHLCzt1LQ=; b=nihB5ol351VQn/f7AbuFhx6U2pVrxfAkj8mkm9FmhItEcehtEmUaClmFXZ+e+q2+QO T4veypeCDSFOXgNxMxx4hS2uoZSZ0icUtRr5OzPhe2TaIHGNqw2+lvTpDBzc/rHYp1CL np1S2kOIVy2ATEeUENE3q3rcXGRd5Gpp7dRpRYtyPKzCJMLw5zyejB6Ggy8jjKbqIlLk VF2zwiDNM95Bb5I0t/ACGlxogeLoJjxpIHV7BB2XXkot33l6aG1DcwH0Wpip2TGmhn0O vdy6LSIN7UwdZpU+Q214QzYT/99aCjJ3q9PynqKJMEUn67xiwzTrGJWr9zmdwOP5ryId 382w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=j8wX2ZTd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 93si4845826qks.350.2018.04.24.09.12.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=j8wX2ZTd; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0YY-0003dG-Ig for patch@linaro.org; Tue, 24 Apr 2018 12:12:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwa-00064N-Pf for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwZ-0001eB-Um for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:24 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:53634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwZ-0001cw-OH for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:23 -0400 Received: by mail-wm0-x243.google.com with SMTP id 66so1857803wmd.3 for ; Tue, 24 Apr 2018 08:33:23 -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=eAQ3luGPSIEFULeEFh4q8NIcFvtZLiXMM1SHLCzt1LQ=; b=j8wX2ZTd+qlaGjDkPTaByx11KxOfZZ5xRwyqyIdtKbzK8CealfA9RJTPJawFiKn+fX mto5rTRxMXz9CmmNnWF1cr3k44mb2UFgzRXa1N8NFwIlwaPE0blRyWBrC4nqM/yUCylk Y/DfjQGxkSZK/UkLTyWdIh6+PBOJpssgDZLLg= 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=eAQ3luGPSIEFULeEFh4q8NIcFvtZLiXMM1SHLCzt1LQ=; b=m4G4OMPCreDoYi8QMvJ0DbF253sWxZNg22CqVxJfNt0kr8WZOtCL30Dyer+C41Ulwi fh7KvV9d/Xrfrvb2DkwWViZvVBkMNbcghxrA8bO2kP4f2JU7nPg/vlYzISoaCXvYjq2T yMZnLLb6c7u8qa66jENGClpfjjBTHEuBYFqtoqNLPnbt9QTsJOleppL1JFVkLfcbhH/9 PcKL8UQHFndtHZudM1TqCL3hWyBi6zt+OrEbaosfdbmTHIdt16irJ8CKkfKNk7biYfoc QhmnrGbNm5JQS81ffDLI7SLMWUOudx3lOsjD5A192tRrpu3AoOaqVbpJwxfT5azpj2YE ZBzw== X-Gm-Message-State: ALQs6tBkyPfod1FRuz3De4jsAMrFr9yHCm/pOROPgq5P+L3mv5njbQLI /+m3szezCvtzX3ZfklmABscyEw== X-Received: by 10.28.182.70 with SMTP id g67mr13038059wmf.88.1524584002632; Tue, 24 Apr 2018 08:33:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d9sm17586942wmh.38.2018.04.24.08.33.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:17 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BF79A3E1689; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:01 +0100 Message-Id: <20180424152405.10304-43-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH v3 42/46] tests/tcg: enable building for mips64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yongbok Kim , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As before, using Debian SID compilers. Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-mips64-cross.docker | 12 ++++++++++++ tests/tcg/mips/Makefile.include | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 tests/docker/dockerfiles/debian-mips64-cross.docker -- 2.17.0 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 62d1f4dec0..f58afb8c5d 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -67,6 +67,7 @@ docker-image-debian-hppa-cross: docker-image-debian-sid docker-image-debian-m68k-cross: docker-image-debian-sid docker-image-debian-sh4-cross: docker-image-debian-sid docker-image-debian-sparc64-cross: docker-image-debian-sid +docker-image-debian-mips64-cross: docker-image-debian-sid docker-image-travis: NOUSER=1 # Expand all the pre-requistes for each docker image and test combination diff --git a/tests/docker/dockerfiles/debian-mips64-cross.docker b/tests/docker/dockerfiles/debian-mips64-cross.docker new file mode 100644 index 0000000000..ed1ce0e919 --- /dev/null +++ b/tests/docker/dockerfiles/debian-mips64-cross.docker @@ -0,0 +1,12 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian sid base image which +# contains cross compilers for Debian "ports" targets. +# +FROM qemu:debian-sid + +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + gcc-mips64-linux-gnuabi64 \ + libc6-dev-mips64-cross diff --git a/tests/tcg/mips/Makefile.include b/tests/tcg/mips/Makefile.include index a9beceb623..4a14fc078d 100644 --- a/tests/tcg/mips/Makefile.include +++ b/tests/tcg/mips/Makefile.include @@ -8,6 +8,9 @@ ifeq ($(TARGET_NAME),mips64el) DOCKER_IMAGE=debian-mips64el-cross DOCKER_CROSS_COMPILER=mips64el-linux-gnuabi64-gcc +else ifeq ($(TARGET_NAME),mips64) +DOCKER_IMAGE=debian-mips64-cross +DOCKER_CROSS_COMPILER=mips64-linux-gnuabi64-gcc else ifeq ($(TARGET_NAME),mipsel) DOCKER_IMAGE=debian-mipsel-cross DOCKER_CROSS_COMPILER=mipsel-linux-gnu-gcc From patchwork Tue Apr 24 15:24:02 2018 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: 134132 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2422078lji; Tue, 24 Apr 2018 09:09:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx490Ae/Eplkzc9VopKXhPB4OUIfpYpDViVaJpmTr5Mfdfo+YL+CqZ//rx1yHg6rPopf2d7RC X-Received: by 2002:ac8:415e:: with SMTP id e30-v6mr29124575qtm.178.1524586166425; Tue, 24 Apr 2018 09:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586166; cv=none; d=google.com; s=arc-20160816; b=LvzZWLoQPr2cQRkm+az/d8HNYjtN1mmdFKJ63leLxWkiTjB4UV3WIZGIjOQfm5nYJk C/tP9k/MxzkPaqwoMufiWxl+SQzE4pZ2rW1t/+gHggjBEvgWoDgduOSXFijVCmBT8/Ue +rWtSQ/aqlEk3OQqeQRl7xAMRge7M15ym0yZQz+FVRxZDaiROnZdFVq1UJU6IpqRdR4W p25j+pliCJeNjrH86U2YxMm8RnIhMqtLHgsqhY7mhqH6XSte0HT1eyAT9JDBRmAXpMYS VI3MjMhjeg8IMCbGccvlq+erLyIQWoqXt1hVrEHf1L1L0fv8bAmSpFvc6IKoi5M/MrDB 1prA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=dbx/faZ49xEAzRN2NdeQ3TygqJgGoIoe2honmKQce6E=; b=mUvc3ZszVvMrNse+gy4sGFUxrgqVzcO6uFvnxUI8iGnv98yuT9i7pYtSo6Va3tdKxn Ahf0z/hnEQR4Y+W+uu6DDgVwYbmgmmZvgMy3eq0QqAP8ItYxR3BmyuvtCJD3vYpIeAQK cxjuaJ6kdM16ljMFdxPCW5Xztoht/Jv2ISX/oSuHdH3wRAN948aG45iWzvoecchBmW1j 4XJxCY4vaC2FQHhIxB8qxeQwLY7zyiTnuHP+BYLOWkvHVyRLatNsFrUBIp3wbXLBWNJo 07KNdJIgzT+K2p+aOv1bz9Z9oJOKRZ8YhfpMYWyu3KkNZXc+PgPSR0XMmsHnSIkupWEp KEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=i9M8dIl0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id p13si2635250qki.371.2018.04.24.09.09.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=i9M8dIl0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0VR-0000uX-Ni for patch@linaro.org; Tue, 24 Apr 2018 12:09:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06A-0005FZ-G2 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB068-0000fY-SQ for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:18 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:34522) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB068-0000eq-Iy for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:16 -0400 Received: by mail-wr0-x241.google.com with SMTP id p18-v6so31244385wrm.1 for ; Tue, 24 Apr 2018 08:43:16 -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=dbx/faZ49xEAzRN2NdeQ3TygqJgGoIoe2honmKQce6E=; b=i9M8dIl0h3xCLz6XDlEnhfpQW368FCSbm9MSXhd9YcSGXanBp2UJUDELrf1pzkzvPW CQHxjvS18qaTMZBj0SFZjO4Vt96VYQBbWrBaP+GQIR3Mz7wuDL4SMOshU2zt8GCE/40G h1eWssu1TjP/BhArkptwghMx+W2IROyL7JZC0= 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=dbx/faZ49xEAzRN2NdeQ3TygqJgGoIoe2honmKQce6E=; b=hEn+aUOgld0hkWSWfI8n5ikMhdJcTHLBlBQsOKBiMh4TQRnY0Q3bnpPIz60KinrvLF Rdxv1Pjdkn9j5C44I/fTohqhlNXaMk9+7iMqg77zL3WmLqzO5cbYH5J0oIuQA8PAg4Rr 366mULSNKieVTqPbHw4icQTFXJRoQcu4ag7oJxIvNvLvsagDaPT5B4juoD8JIlXfloj7 cSzQad6fbuGawWH5bScD8EGskDUsEC/BvVJHZAIzXNX1HPm5TxphnG4uuvg7sPxW8j6+ iBIMdM7popua9G7d8xIh/yOWCzu2Fo0FuwGKarzmLXOji28jF8Mxf2uX749mFPHlXEUF iB0Q== X-Gm-Message-State: ALQs6tDIZQGpqsTWgtfGrBaGLf9sH7PgUE9LzPfjRujJe2BQ1XIkJo9U E5x3oOOVqbbAkqUA39pwRNokjw== X-Received: by 2002:adf:9787:: with SMTP id s7-v6mr21308533wrb.61.1524584595379; Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v75-v6sm30043312wrc.65.2018.04.24.08.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:11 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D1F0C3E1714; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:02 +0100 Message-Id: <20180424152405.10304-44-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 43/46] tests/tcg/Makefile: update to be called from Makefile.target X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This make is now invoked from each individual target make with the appropriate CC and EXTRA_CFLAGS set for each guest. It then includes additional Makefile.targets from: - tests/tcg/multiarch (always) - tests/tcg/$(TARGET_BASE_ARCH) (if available) - tests/tcg/$(TARGET_NAME) The order is important as the later Makefile's may want to suppress TESTS from it's base arch profile. Each included Makefile.target is responsible for adding TESTS as well as defining any special build instructions for individual tests. Signed-off-by: Alex Bennée --- v2 - cleaner approach to include sub makefiles - move TESTS/VPATH manipulation into sub-makefile - avoid double inclusion when TARGET_BASE_ARCH==TARGET_NAME --- tests/tcg/Makefile | 162 +++++++++++++++------------------------------ 1 file changed, 53 insertions(+), 109 deletions(-) -- 2.17.0 diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index e12395117a..2116fea915 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -1,125 +1,69 @@ +# -*- Mode: makefile -*- +# +# TCG tests +# +# These are complicated by the fact we want to build them for guest +# systems. This requires knowing what guests we are building and which +# ones we have cross-compilers for or docker images with +# cross-compilers. +# +# The tests themselves should be as minimal as possible as +# cross-compilers don't always have a large amount of libraries +# available. +# +# We only include the host build system for SRC_PATH and we don't +# bother with the common rules.mk. We expect CC/LD to have been set for +# us from the parent make as well as being passed EXTRA_CFLAGS. +# +# We also expect to be in the tests build dir for the FOO-linux-user. +# + -include ../../config-host.mak --include $(SRC_PATH)/rules.mak +-include ../config-target.mak -$(call set-vpath, $(SRC_PATH)/tests/tcg) +quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) -QEMU=../../i386-linux-user/qemu-i386 -QEMU_X86_64=../../x86_64-linux-user/qemu-x86_64 -CC_X86_64=$(CC_I386) -m64 +# Tests we are building +TESTS= -QEMU_INCLUDES += -I../.. -CFLAGS=-Wall -O2 -g -fno-strict-aliasing -#CFLAGS+=-msse2 +# Start with a blank slate, the build targets get to add stuff first +CFLAGS= +QEMU_CFLAGS= LDFLAGS= -# TODO: automatically detect ARM and MIPS compilers, and run those too - -# runcom maps page 0, so it requires root privileges -# also, pi_10.com runs indefinitely +# The QEMU for this TARGET +QEMU=../qemu-$(TARGET_NAME) -I386_TESTS=hello-i386 \ - sha1-i386 \ - test-i386 \ - test-i386-fprem \ - # runcom - -# native i386 compilers sometimes are not biarch. assume cross-compilers are -ifneq ($(ARCH),i386) -I386_TESTS+=run-test-x86_64 +# The order we include is important. We include multiarch, base arch and finally arch +-include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target +-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.target +ifneq ($(TARGET_BASE_ARCH),$(TARGET_NAME)) +-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target endif -TESTS = test_path -ifneq ($(call find-in-path, $(CC_I386)),) -TESTS += $(I386_TESTS) -endif - -all: $(patsubst %,run-%,$(TESTS)) -test: all - -# rules to run tests - -.PHONY: $(patsubst %,run-%,$(TESTS)) - -run-%: % - -$(QEMU) ./$* - -run-hello-i386: hello-i386 -run-sha1-i386: sha1-i386 - -run-test-i386: test-i386 - ./test-i386 > test-i386.ref - -$(QEMU) test-i386 > test-i386.out - @if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi - -run-test-i386-fprem: test-i386-fprem - ./test-i386-fprem > test-i386-fprem.ref - -$(QEMU) test-i386-fprem > test-i386-fprem.out - @if diff -u test-i386-fprem.ref test-i386-fprem.out ; then echo "Auto Test OK"; fi - -run-test-x86_64: test-x86_64 - ./test-x86_64 > test-x86_64.ref - -$(QEMU_X86_64) test-x86_64 > test-x86_64.out - @if diff -u test-x86_64.ref test-x86_64.out ; then echo "Auto Test OK"; fi +# Add the common build options +CFLAGS+=-Wall -O0 -g -fno-strict-aliasing +LDFLAGS+=-static +%: %.c + $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -run-runcom: runcom - -$(QEMU) ./runcom $(SRC_PATH)/tests/pi_10.com +all: $(TESTS) -run-test_path: test_path - ./test_path +# +# Test Runners +# +# By default we just run the test with the appropriate QEMU for the +# target. More advanced tests may want to override the runner in their +# specific make rules. +# -# rules to compile tests +RUN_TESTS=$(patsubst %,run-%, $(TESTS)) -hello-i386: hello-i386.c - $(CC_I386) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $< - strip $@ - -# i386/x86_64 emulation test (test various opcodes) */ -test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ - test-i386.h test-i386-shift.h test-i386-muldiv.h - $(CC_I386) $(QEMU_INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@ \ - $( $<.out, "TEST", "$< on $(TARGET_NAME)") -# testsuite for the LM32 port. -test-lm32: - $(MAKE) -C lm32 check +.PHONY: run +run: $(RUN_TESTS) -clean: - rm -f *~ *.o test-i386.out test-i386.ref \ - test-x86_64.log test-x86_64.ref qruncom $(TESTS) +# There is no clean target, the calling make just rm's the tests build dir From patchwork Tue Apr 24 15:24:03 2018 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: 134135 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2425368lji; Tue, 24 Apr 2018 09:12:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49vF7eLAdLsOPSgCD2hjlOyTvaSKvRURFswU85JkLaaOyU7mqG0nUMJrGb11EQjDIXr3bL+ X-Received: by 2002:ac8:1766:: with SMTP id u35-v6mr28314488qtk.209.1524586344244; Tue, 24 Apr 2018 09:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586344; cv=none; d=google.com; s=arc-20160816; b=MkUDgREXqwjKEg6Lv5AdlKnZERjVFo7OQklJmYbJ0l7LbV/UAmJbwXThJNzWjjy/DT yCxZaG7q02wTFjvtkwx/ql5Sf1nClK5L/xCV3U+lOXl27gpFjItkctqzdE4tGKCCVRih ZwlyDDf5Z7/CTUN/ZByBpAnh2K4SzW/CvCx5YOQFQxBz7rHuE21r8Mboi5cyJtohZ7mj CYcqztvMZxqrdadjP5zvguMMVTnVl0AYPvyEyV5iKIyTtAq2rAUP9GfB2EiK6LGZeFl4 hrojVklNbHQFX/mgr8dvSao3YIccmmBU4kwGvx2MaRQOq+6I9V74i2ECzAKnGQ2jQYO/ FuIA== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=8sTsQiWizzrwf7qM4i18PQWMiCuOPDmGd5KJ55R6e78=; b=ZAnOusV0z+VAEceBG4Bx8kwgzretESl9vJdVmCOgXMT09Atn+dRyPEAhcR/6PYxv7b gKMFiFhTKZpfEGCyRanloKJK/vhD5LUAiIJDbVWfkabHogzcxtLezawEKDLmtDyYbxYQ F8+T+/Ogxn7AX+ptdCO56wg0yCaQHrmdtk+GCNV93hXbnLTPs82RX5lcq8cjS5Mz5OIl apL74CuuepKByPT3F7IIRSAJU1FrMlkjcmxniyjiSd5jH5yfdXDsQv6HLtzk8CQ9RmtH D3zrz8X8bFd9xX5U0m+NLkTks9YQJHSJpzsPdzK43LxcRpePF6SDN3ACcp8L35KFkrpS 5PyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=E+BGJ1kJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 50-v6si9854682qtn.237.2018.04.24.09.12.24 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=E+BGJ1kJ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0YJ-0003Nn-Jn for patch@linaro.org; Tue, 24 Apr 2018 12:12:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB06H-0005Mv-BN for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fB06F-0000jV-Cm for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:25 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:46881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fB06F-0000jA-6F for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:43:23 -0400 Received: by mail-wr0-x241.google.com with SMTP id d1-v6so50408956wrj.13 for ; Tue, 24 Apr 2018 08:43:23 -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=8sTsQiWizzrwf7qM4i18PQWMiCuOPDmGd5KJ55R6e78=; b=E+BGJ1kJuI5PTsmx2UaJfTEmZ7Nt+j5XmbDHpslIgCNrSbZylt9sW90iIvGE2zSNuS PHKY3ZCSNnTQPRbAMBWPnZqlAhmumIXCtA7t2DWkm7cp603FQTHGPeF8Sv7Sxm/RAuTv /a0kvQAIyr57TTSIXylO4231i6YP8baNmfA0g= 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=8sTsQiWizzrwf7qM4i18PQWMiCuOPDmGd5KJ55R6e78=; b=LEMqcdZ078ObvBQ+8sno+hmArYiAgmUh2I5rPhLRvip1cbUjupDj2jSwnl52qrWp18 e2STxRvnwn4H1OttQ/UGMhkriD/RpCQJVVXzeA6y53hFOmPdGnTpnTgLVNDvR3IwSJE5 V74T2uXycIDiSPklI5XOxV2dsWRziRIk7IftkXUjNCZW4NQRfWTcnxE1JVh7moy9rbro 8yP4NgR3p6JqU2vuhfl+YBdga2fzDFXwll6dOIJUuLBCJedgultkI7lZihIQr9r+r0ie MvEx6iIgaR/G7XRUlPOOFrKBneUbUTTihLfxTHF8gC7CzthIiPVTjwUyf9oPi+BzrMZH WKOg== X-Gm-Message-State: ALQs6tABZFRu1g+dgOq87OBfh49XRpbVpehltajYzShx0Dcdk5ZlImgh VEjDrI4Zej6PYpEP1BTa8wtypw== X-Received: by 2002:adf:96c2:: with SMTP id u60-v6mr21029527wrb.204.1524584602030; Tue, 24 Apr 2018 08:43:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b18-v6sm19852284wrb.55.2018.04.24.08.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:43:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E60703E0550; Tue, 24 Apr 2018 16:24:08 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:03 +0100 Message-Id: <20180424152405.10304-45-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PATCH v3 44/46] Makefile.target: add (clean-)guest-tests targets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now all the build infrastructure is in place we can build tests for each guest that we support. That support mainly depends on having cross compilers installed or docker setup. To keep all the logic for that together we put the rules in tests/tcg/Makefile.include and include it from the main Makefile.target. Signed-off-by: Alex Bennée --- Makefile.target | 5 +++ tests/tcg/Makefile.include | 79 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 tests/tcg/Makefile.include -- 2.17.0 diff --git a/Makefile.target b/Makefile.target index d0ec77a307..a30fd40257 100644 --- a/Makefile.target +++ b/Makefile.target @@ -36,6 +36,11 @@ endif PROGS=$(QEMU_PROG) $(QEMU_PROGW) STPFILES= +# Makefile Tests +ifdef CONFIG_USER_ONLY +include $(SRC_PATH)/tests/tcg/Makefile.include +endif + config-target.h: config-target.h-timestamp config-target.h-timestamp: config-target.mak diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include new file mode 100644 index 0000000000..cb8bb36026 --- /dev/null +++ b/tests/tcg/Makefile.include @@ -0,0 +1,79 @@ +# -*- Mode: makefile -*- +# +# TCG tests (per-target rules) +# +# This Makefile fragement is included from the per-target +# Makefile.target so will be invoked for each linux-user program we +# build. We have two options for compiling, either using a configured +# guest compiler or calling one of our docker images to do it for us. +# + +# The per ARCH makefile, if it exists holds extra information about +# useful docker images or alternative compiler flags. Include it if it +# exists + +ARCH_MAKEFILE=$(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.include +CHECK_INCLUDE=$(wildcard $(ARCH_MAKEFILE)) + +ifeq ($(ARCH_MAKEFILE),$(CHECK_INCLUDE)) +include $(ARCH_MAKEFILE) +endif + +GUEST_BUILD= + +# Support installed Cross Compilers + +ifdef CROSS_CC_GUEST + +.PHONY: cross-build-guest-tests +cross-build-guest-tests: + $(call quiet-command, \ + (mkdir -p tests && cd tests && \ + make -f $(SRC_PATH)/tests/tcg/Makefile ARCH=$(TARGET_NAME) CC=$(CROSS_CC_GUEST)), \ + "CROSS-BUILD","$(TARGET_NAME) guest-tests with $(CROSS_CC_GUEST)") + + +GUEST_BUILD=cross-build-guest-tests + +endif + +# Support building with Docker + +ifeq ($(HAVE_USER_DOCKER)$(GUEST_BUILD),y) +ifneq ($(DOCKER_IMAGE),) + +# We also need the Docker make rules to depend on +include $(SRC_PATH)/tests/docker/Makefile.include + +DOCKER_COMPILE_CMD="$(DOCKER_SCRIPT) cc --user $(shell id -u) \ + --cc $(DOCKER_CROSS_COMPILER) \ + -i qemu:$(DOCKER_IMAGE) \ + -s $(SRC_PATH) -- " +DOCKER_PREREQ=docker-image-$(DOCKER_IMAGE) + +.PHONY: docker-build-guest-tests +docker-build-guest-tests: $(DOCKER_PREREQ) + $(call quiet-command, \ + (mkdir -p tests && cd tests && \ + make -f $(SRC_PATH)/tests/tcg/Makefile ARCH=$(TARGET_NAME) CC=$(DOCKER_COMPILE_CMD)), \ + "CROSS-BUILD","$(TARGET_NAME) guest-tests with docker qemu:$(DOCKER_IMAGE)") + +GUEST_BUILD=docker-build-guest-tests + +endif +endif + +# Final targets +.PHONY: guest-tests + +ifneq ($(GUEST_BUILD),) +guest-tests: $(GUEST_BUILD) +else +guest-tests: + $(call quiet-command, /bin/true, "CROSS-BUILD", "$(TARGET_NAME) guest-tests SKIPPED") +endif + +# It doesn't mater if these don't exits +.PHONY: clean-guest-tests +clean-guest-tests: + rm -rf tests || echo "no $(TARGET_NAME) tests to remove" From patchwork Tue Apr 24 15:24:04 2018 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: 134130 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2409727lji; Tue, 24 Apr 2018 09:00:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kxVXliGwKWcERCHANf0Kh4Uq5d1hZOhirzFiBWwzp9EnHAYIk4kPstO6rlZSIoGMt1XBs X-Received: by 2002:ac8:1e83:: with SMTP id c3-v6mr29504806qtm.410.1524585609337; Tue, 24 Apr 2018 09:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524585609; cv=none; d=google.com; s=arc-20160816; b=XDc+ZVJH/LKNZ9JPPgmmcsSFHBIA+W8K9mkBI3ybpvT/BuC6T0AKw8EwXNB+YLsMkW itf5z887fH/29L8GixY27e3ixU10zgR7CKzkG9Axxdox69GysTfCZ7Jopf2OOKThEqrt Z56vrxBcG3UoVyA0ygLykQONPhb2ERKT0Cv8SP3C/t6xbezXLB0wYYvlvbf86s8BbEuB 5eIziELox1BsXVsvfeBx7zhRkgVO+hrvODHESD5YzGO8CmwoUfQkwW+nmGM9/YOKAJEk mMTAv2ozXZNOjJ/WgWUUYwIwMJKEg97n1oCAifncHID3pZYYRA9fwf6W4XTpvNW9954g tKJw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=jy+H1q0HHs7pa8fbMkJC45FeCYR1rX9VAPVX3Kc1s+o=; b=sWZxST5uNANT0B6N+GI+mb7djHmHDx/h3lPi4nMaZKZoPs5eYIzudCy9E09WOHumzP HVff6NqgoEarRHsSVAWNY3coHDXOUGN2pQsS+ql24cNmsGREXoEf0/HYWB9X7QNVYVOr ohmAbjxlNPxWHFbq3SlVe6N0OKHlNtNwa7q55ZQ7FkxILl5iIHoiGPYFEZ0xkbPrSIwC t5mp1HmdEyzRXJskdrqRkanlnGUpIe1Ylwq0ptHMwa1rVVbSaWSVVXDPx23LX2vJqEtg McEletcoE4ulx/F3Y7T/MtoS8ISw2Hm9Ih6OolE1KJ6IbR5eyNaAD1mGf4y9Z+U85xcl b9gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=I6SYklXb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 6si4093117qku.370.2018.04.24.09.00.09 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:00:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=I6SYklXb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0MS-0001Gd-OG for patch@linaro.org; Tue, 24 Apr 2018 12:00:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwW-00060L-83 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwQ-0001Po-Tw for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:20 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:38322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwQ-0001Oa-Ix for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:14 -0400 Received: by mail-wm0-x241.google.com with SMTP id i3so1602402wmf.3 for ; Tue, 24 Apr 2018 08:33: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=jy+H1q0HHs7pa8fbMkJC45FeCYR1rX9VAPVX3Kc1s+o=; b=I6SYklXbzg2Vozh5O0b1dOyidw2I9mi26vp/eMZECMunzDdxB/4XCFfODBLqZ0SR2Y RjIX0Mc6qu6jCodHnFnQB7/FDWf6Gd4onxxrwao0cWjWhYhoyKV6XLVZO9kRVYYlqFok 5EmNGOvGgGkL2ZpUj+5oDj6KJf9A8K12byQPs= 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=jy+H1q0HHs7pa8fbMkJC45FeCYR1rX9VAPVX3Kc1s+o=; b=UG023xc6KoKcrGVWUC8sgoyT0sMg7qQUWKVTKvN60wgbcIzeQCn7sDk9+YnjCke8e+ Fim5fpt0PqL1ntU8Z/fMCaDmKvm6hm+RUXl3P7xggAFJmjsRNK72ibTh7e5l88n/97z+ fZP81CFswDo7R6IDz/0fUJcvJasCPhjS2qz+2Fu9g4ESKkBadIQnwsEz5sctFOaNaKI2 Z5EXBe5t/RWzrUnOZg08yzNZBPBnv6/aQzzwI56bMtrJyQn2EbX2vsKX3CF5VpIHUIMT 8EUYwWhAMubKTzvIuWj4dHKtiI3GGTuYVdMmcnNar1jso2N0VNC8s6rxbINvXrt8Q7pj hn+g== X-Gm-Message-State: ALQs6tCkwaU3khBI1CSxSvfz+VETjA/dQLrk1uA20kwbyGPgwHu1ISLP 1WNEkcFXfJXPrWPjjRHbUGQPaw== X-Received: by 10.28.66.148 with SMTP id k20mr1563909wmi.7.1524583993447; Tue, 24 Apr 2018 08:33:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 78sm13513901wmm.19.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 049CF3E1833; Tue, 24 Apr 2018 16:24:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:04 +0100 Message-Id: <20180424152405.10304-46-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH v3 45/46] tests/Makefile.include: add [build|clean|check]-tcg targets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will ensure all linux-user targets build their guest test programs and ensure check-tcg will run the respective tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - use -include instead of complex macro stuff - also include TARGET_BASE_ARCH/Makefile v3 - add build-tcg, make check-tcg actually run tests --- tests/Makefile.include | 26 ++++++++++++++++++++++- tests/tcg/Makefile.include | 43 ++++++++++++++++++++++---------------- 2 files changed, 50 insertions(+), 19 deletions(-) -- 2.17.0 diff --git a/tests/Makefile.include b/tests/Makefile.include index 3d2f0458ab..310ccefdd9 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -10,6 +10,7 @@ check-help: @echo " $(MAKE) check-speed Run qobject speed tests" @echo " $(MAKE) check-qapi-schema Run QAPI schema tests" @echo " $(MAKE) check-block Run block tests" + @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-report.html Generates an HTML test report" @echo " $(MAKE) check-clean Clean the tests" @echo @@ -916,6 +917,30 @@ check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check check-report.html: check-report.xml $(call quiet-command,gtester-report $< > $@,"GEN","$@") +# Per guest TCG tests + +LINUX_USER_TARGETS=$(filter %-linux-user,$(TARGET_LIST)) +BUILD_TCG_TARGET_RULES=$(patsubst %,build-tcg-tests-%, $(LINUX_USER_TARGETS)) +CLEAN_TCG_TARGET_RULES=$(patsubst %,clean-tcg-tests-%, $(LINUX_USER_TARGETS)) +RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(LINUX_USER_TARGETS)) + +build-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" guest-tests,) + +run-tcg-tests-%: build-tcg-tests-% + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" run-guest-tests,) + +clean-tcg-tests-%: + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" clean-guest-tests,) + +.PHONY: build-tcg +build-tcg: $(BUILD_TCG_TARGET_RULES) + +.PHONY: check-tcg +check-tcg: $(RUN_TCG_TARGET_RULES) + +.PHONY: clean-tcg +clean-tcg: $(CLEAN_TCG_TARGET_RULES) # Other tests @@ -958,7 +983,6 @@ check-speed: $(patsubst %,check-%, $(check-speed-y)) check-block: $(patsubst %,check-%, $(check-block-y)) check: check-qapi-schema check-unit check-qtest check-decodetree check-clean: - $(MAKE) -C tests/tcg clean rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)) $(check-qtest-generic-y)) rm -f tests/test-qapi-gen-timestamp diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include index cb8bb36026..67e89ecb67 100644 --- a/tests/tcg/Makefile.include +++ b/tests/tcg/Makefile.include @@ -8,19 +8,14 @@ # guest compiler or calling one of our docker images to do it for us. # -# The per ARCH makefile, if it exists holds extra information about -# useful docker images or alternative compiler flags. Include it if it -# exists +# The per ARCH makefile, if it exists, holds extra information about +# useful docker images or alternative compiler flags. -ARCH_MAKEFILE=$(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.include -CHECK_INCLUDE=$(wildcard $(ARCH_MAKEFILE)) - -ifeq ($(ARCH_MAKEFILE),$(CHECK_INCLUDE)) -include $(ARCH_MAKEFILE) -endif +-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.include +-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.include GUEST_BUILD= - +TCG_MAKE=$(SRC_PATH)/tests/tcg/Makefile # Support installed Cross Compilers ifdef CROSS_CC_GUEST @@ -28,10 +23,10 @@ ifdef CROSS_CC_GUEST .PHONY: cross-build-guest-tests cross-build-guest-tests: $(call quiet-command, \ - (mkdir -p tests && cd tests && \ - make -f $(SRC_PATH)/tests/tcg/Makefile ARCH=$(TARGET_NAME) CC=$(CROSS_CC_GUEST)), \ - "CROSS-BUILD","$(TARGET_NAME) guest-tests with $(CROSS_CC_GUEST)") - + (mkdir -p tests && cd tests && \ + make -f $(TCG_MAKE) CC=$(CROSS_CC_GUEST) \ + EXTRA_CFLAGS=$(CROSS_CC_GUEST_CFLAGS)), \ + "CROSS-BUILD","$(TARGET_NAME) guest-tests with $(CROSS_CC_GUEST)") GUEST_BUILD=cross-build-guest-tests @@ -54,9 +49,10 @@ DOCKER_PREREQ=docker-image-$(DOCKER_IMAGE) .PHONY: docker-build-guest-tests docker-build-guest-tests: $(DOCKER_PREREQ) $(call quiet-command, \ - (mkdir -p tests && cd tests && \ - make -f $(SRC_PATH)/tests/tcg/Makefile ARCH=$(TARGET_NAME) CC=$(DOCKER_COMPILE_CMD)), \ - "CROSS-BUILD","$(TARGET_NAME) guest-tests with docker qemu:$(DOCKER_IMAGE)") + (mkdir -p tests && cd tests && \ + make -f $(TCG_MAKE) CC=$(DOCKER_COMPILE_CMD) \ + EXTRA_CFLAGS=$(DOCKER_CROSS_COMPILER_CFLAGS)), \ + "CROSS-BUILD","$(TARGET_NAME) guest-tests with docker qemu:$(DOCKER_IMAGE)") GUEST_BUILD=docker-build-guest-tests @@ -68,9 +64,20 @@ endif ifneq ($(GUEST_BUILD),) guest-tests: $(GUEST_BUILD) + +run-guest-tests: guest-tests + $(call quiet-command, \ + (cd tests && make -f $(TCG_MAKE) run), \ + "RUN-TESTS", "for $(TARGET_NAME)") + else guest-tests: - $(call quiet-command, /bin/true, "CROSS-BUILD", "$(TARGET_NAME) guest-tests SKIPPED") + $(call quiet-command, /bin/true, "CROSS-BUILD", \ + "$(TARGET_NAME) guest-tests SKIPPED") + +run-guest-tests: + $(call quiet-command, /bin/true, "RUN-TESTS", \ + "for $(TARGET_NAME) SKIPPED") endif # It doesn't mater if these don't exits From patchwork Tue Apr 24 15:24:05 2018 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: 134133 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2424156lji; Tue, 24 Apr 2018 09:11:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr5sWNZ4EZ6z2dUpnoSqtXJ2mxGTK48KpxrbvjDX6w+1HU5UWgPoyBcvDyG3O5M25NxHOlt X-Received: by 10.55.79.129 with SMTP id d123mr3290889qkb.50.1524586281130; Tue, 24 Apr 2018 09:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524586281; cv=none; d=google.com; s=arc-20160816; b=tJuzAnczbL0F0FBxtplf+LHC2oBSTqqah5cd53jdXgBGxLV6RIJymPX3i9b5vMuAOe 0yXFqybrDy/NuhXheucCYlGWN9xOmaU2c/NOoTqdV95AmYKiWHnc1osMQG5QhWmf/DGa l4W+tZsp4vnVgd0XAvgaIUtu30QZAGTgtaWqDVrKINdx1xAOv6SZ0Lb9+XX51+E8KLtU QfWlRUClBalUpC6FTdFqtd1vnSjBIBreseF5zCmwXmU9Iu6OTYvguNEAzCMkOb+wKT1h E2YcWDS7s71PO2dA1xhiUbyZ4h14rlyU7er0D7jgb3y4E9Op2hHwfI6PXQTXmyrMn/0u 7ZYg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=VIOwvT8J208RMetQ0t+oj2i0GB5zJ5E8ymN9vRfv9do=; b=aNWM/xFtS4npomyzw4VigugwSAA44v5DjEzodoZlICXp1a/ZY+ZS0fUun9F3MI128h 6/S2FtCmqea7sPtENiDsKYVWcMLtE5IMAFrD80bozKuuYdi5gc9hn3oUSAmgsdfmZeid u+1dsemSsJ2rrSSnA9p8LYgyuECh4C50+Zx4/KHt4elDQGTMA8H953/LhHukjL0GKeXu xQuXhIA0ap82ymRHroQt9xB9qEJ5axJk09CdY8IXcq5ehFvHCGJRR5DPd4Cws5uxWvV0 vVqDi1kkH+onDoQkkpHteKeRCm/XItF4aEkOKrqPnvkpYFH6H5iaAVgV7ujQCvEnNnfS S6Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NOXmhecP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e13si2653682qvb.235.2018.04.24.09.11.20 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 24 Apr 2018 09:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NOXmhecP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:59373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fB0XI-0001cQ-Fx for patch@linaro.org; Tue, 24 Apr 2018 12:11:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAzwT-0005xn-SB for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAzwR-0001Sk-W2 for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:17 -0400 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]:37704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAzwR-0001Pw-Jk for qemu-devel@nongnu.org; Tue, 24 Apr 2018 11:33:15 -0400 Received: by mail-wr0-x244.google.com with SMTP id c14-v6so10281961wrd.4 for ; Tue, 24 Apr 2018 08:33: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=VIOwvT8J208RMetQ0t+oj2i0GB5zJ5E8ymN9vRfv9do=; b=NOXmhecPLxtPuWZK/XddWefMb/tH1auTYmxqaagnYmMrJxPgc9Cgl7bwtRNf4aCmay XvtnJCjOhOLFSJ20FrLbxnKfBqqPoIaLn+Tf+1EZTryaatN0lm9RV+O9hPFHn+G1c7LW xkhsDaLHHtvK/DoHnORPJFvZxSwZNkvGWDdOg= 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=VIOwvT8J208RMetQ0t+oj2i0GB5zJ5E8ymN9vRfv9do=; b=EumkAyUgcVZlSQ78OiNHaJhXQSeCOjJf/+E9zvOJOUI+E/lqS1Mq4qMdHWqC8n16FA UT39gmlHlE+ZbAVEpg00EUUg2/3tAkAFUCw7q9pjNgggVoDwHvHQKs3UO3E62iwdv6QO QZF1wQs3dKJCIy96i2Ou4aR2rWROhqhtVxpft92Hbx+DePgVp3eql0iO3AqhdmVQ/GhW WEzJLdlv7RullxAaOQeAUpPO6YWRiYYkC+RAbm+es413jDkiOcL6lRbXs6R+nKNoTVkH WfaB4ganF0NlRfhmmLRGERu1tbT2mYhJOaPnYW1sXPWcSuj20pBs9YwH32PTNH8T2rxV Ru6w== X-Gm-Message-State: ALQs6tAKtBbr6V0ezm9QT+hbGjY42NGnEEGTUzN7HsMFNSG6Qi6s4718 AeGxheizUSzmj0UAIE2ixT/zYA== X-Received: by 2002:adf:cd8e:: with SMTP id q14-v6mr12517152wrj.277.1524583994434; Tue, 24 Apr 2018 08:33:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o133sm9896085wmo.15.2018.04.24.08.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 08:33:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 215E53E1843; Tue, 24 Apr 2018 16:24:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Tue, 24 Apr 2018 16:24:05 +0100 Message-Id: <20180424152405.10304-47-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424152405.10304-1-alex.bennee@linaro.org> References: <20180424152405.10304-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::244 Subject: [Qemu-devel] [PATCH v3 46/46] tests/tcg: override runners for broken tests (!UPSTREAM) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yongbok Kim , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" To get a clean run of check-tcg these tests are currently skipped. Signed-off-by: Alex Bennée --- tests/tcg/alpha/Makefile.target | 4 ++++ tests/tcg/hppa/Makefile.target | 10 ++++++++++ tests/tcg/i386/Makefile.target | 13 +++++++++++++ tests/tcg/m68k/Makefile.target | 11 +++++++++++ tests/tcg/mips/Makefile.target | 10 ++++++++++ tests/tcg/s390x/Makefile.target | 6 ++++++ tests/tcg/sh4/Makefile.target | 6 ++++++ tests/tcg/sparc64/Makefile.target | 8 ++++++++ 8 files changed, 68 insertions(+) create mode 100644 tests/tcg/hppa/Makefile.target create mode 100644 tests/tcg/m68k/Makefile.target create mode 100644 tests/tcg/s390x/Makefile.target create mode 100644 tests/tcg/sh4/Makefile.target create mode 100644 tests/tcg/sparc64/Makefile.target -- 2.17.0 diff --git a/tests/tcg/alpha/Makefile.target b/tests/tcg/alpha/Makefile.target index 5b573f145e..a075b0e25e 100644 --- a/tests/tcg/alpha/Makefile.target +++ b/tests/tcg/alpha/Makefile.target @@ -30,3 +30,7 @@ test-cmov: test-cmov.o crt.o test-ovf: test-ovf.c crt.o $(ALPHA_BUILD) + +# Currently broken +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") diff --git a/tests/tcg/hppa/Makefile.target b/tests/tcg/hppa/Makefile.target new file mode 100644 index 0000000000..25b6b5d819 --- /dev/null +++ b/tests/tcg/hppa/Makefile.target @@ -0,0 +1,10 @@ +# -*- Mode: makefile -*- +# +# HPPA specific tweaks - specifically masking out broken tests + +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") + +# Currently broken for -p +run-test-mmap: test-mmap + $(call quiet-command, $(QEMU) $< > test-mmap.out, "TEST", "$< (default) on $(TARGET_NAME)") diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 27086c3f2b..a01309d5f4 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -37,3 +37,16 @@ pi_10.com: run-runcom: runcom pi_10.com $(call quiet-command, $(QEMU) ./runcom ./pi_10.com > runcom.out, "TEST", "$< on $(TARGET_NAME)") +# Currently broken tests on i386 +ifeq ($(TARGET_NAME), i386) +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") + +run-test-i386-fprem: test-i386-fprem + $(call quiet-command, /bin/true, "SLOW TEST", "$< SKIPPED on $(TARGET_NAME)") + +# Currently broken for -p +run-test-mmap: test-mmap + $(call quiet-command, $(QEMU) $< > test-mmap.out, "TEST", "$< (default) on $(TARGET_NAME)") + +endif diff --git a/tests/tcg/m68k/Makefile.target b/tests/tcg/m68k/Makefile.target new file mode 100644 index 0000000000..97bc0c9d07 --- /dev/null +++ b/tests/tcg/m68k/Makefile.target @@ -0,0 +1,11 @@ +# -*- Mode: makefile -*- +# +# m68k specific tweaks - specifically masking out broken tests +# + +# Currently broken for -p +run-test-mmap: test-mmap + $(call quiet-command, $(QEMU) $< > test-mmap.out, "TEST", "$< (default) on $(TARGET_NAME)") + +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target index 71f0c2dd53..1f673fce2e 100644 --- a/tests/tcg/mips/Makefile.target +++ b/tests/tcg/mips/Makefile.target @@ -17,3 +17,13 @@ hello-mips: LDFLAGS+=-nostdlib # For MIPS32 and 64 we have a bunch of extra tests in sub-directories # however they are intended for system tests. + +run-hello-mips: hello-mips + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") + +ifeq ($(TARGET_NAME), mips64) + +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") + +endif diff --git a/tests/tcg/s390x/Makefile.target b/tests/tcg/s390x/Makefile.target new file mode 100644 index 0000000000..10e61c422b --- /dev/null +++ b/tests/tcg/s390x/Makefile.target @@ -0,0 +1,6 @@ +# -*- Mode: makefile -*- +# +# s390x specific tweaks - specifically masking out broken tests + +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target new file mode 100644 index 0000000000..c57f398017 --- /dev/null +++ b/tests/tcg/sh4/Makefile.target @@ -0,0 +1,6 @@ +# -*- Mode: makefile -*- +# +# SH4 specific tweaks - specifically masking out broken tests + +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)") diff --git a/tests/tcg/sparc64/Makefile.target b/tests/tcg/sparc64/Makefile.target new file mode 100644 index 0000000000..e971a5c818 --- /dev/null +++ b/tests/tcg/sparc64/Makefile.target @@ -0,0 +1,8 @@ +# -*- Mode: makefile -*- +# +# sparc specific tweaks - specifically masking out broken tests + +# different from the other hangs +# /home/alex/lsrc/qemu/qemu.git/tests/tcg/multiarch/linux-test.c:264: Value too large for defined data type (ret=-1, errno=92/Value too large for defined data type) +run-linux-test: linux-test + $(call quiet-command, /bin/true, "BROKEN TEST", "$< SKIPPED on $(TARGET_NAME)")