From patchwork Tue Apr 6 15:00:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415921 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4410342ejm; Tue, 6 Apr 2021 08:08:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8g6QgLNsa7hUhoxzJzZpW+wjVqB3l4e39u22eXxIIwpk6YloM0SFDfyB99qQH4/TxMMWc X-Received: by 2002:a05:6e02:1c21:: with SMTP id m1mr25207725ilh.204.1617721717148; Tue, 06 Apr 2021 08:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721717; cv=none; d=google.com; s=arc-20160816; b=U/ETk4A+0FAmnR92Bjh7Qq6JRBDl5lVxKe6uB7JYw2T6Iyc7Cn4XRDF+zf7Yc9ErvB VaH9FsYwgAl8A7BGr0hKCaxGXJ2TffZFAYjJz2ZFcEd0mSsxhoTUrY5kO4SXtgHoYO57 dbfCXypGST/GZVYVi4YYpw/8+G/kDc9n3ZECprhV4XWu5zDgM9XN/LjoHBbFHU59QrdH ThJRAi87Ldy5Tvzn2XiY/tdvmuOu4C7fAJdrxNFkcYULBIP4dYnKvd0KsbhyVwDaWSpE eTPgGUrgp2njiTfJmCAtojCnn/sx3N90LuREywqrXup/N2k2sat0psjP/ppG2uUcdyv5 fKuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=tP8/moLF8HqczbFq/OlKK/AmKp0m7nQgiXxa02a46ak=; b=k8GtY4JC8JKSACXfWWKtfjp3zxWYug4Wr27zXHCywOzOaV5SYotexGjXx2ga3JdU3r Fn/n+y2LAeICPKUkba1X690VYo0w+MPC3GaJyJomaU13vBJeoSWeLIkhWkjsx8Fv6lXw SQG4Unykp6GQcjsOewOC6eAotuKA6uqF+heCp/jyVs0LiWAR5zEGL/3t/Ev+LBXVmaaR g6+BhqAg9JreBmjsWkJ0CKHwnf2FioiPia+UkqIUXABkN+4fBeRsbIx85qydXwUPnNcU gSd3XSGVBufh9sy8TvelLDkiV/qRZIy7LpLQ7iqXvY536cF8nXZIVXp0yM/3t0q4npRG qtlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SolX26N1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c4si18060687ioa.65.2021.04.06.08.08.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SolX26N1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnJk-0005aT-F1 for patch@linaro.org; Tue, 06 Apr 2021 11:08:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCO-0006SI-Ui for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:01 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:35655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCF-00051u-Ei for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:00 -0400 Received: by mail-wr1-x435.google.com with SMTP id j18so14573374wra.2 for ; Tue, 06 Apr 2021 08:00:48 -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=tP8/moLF8HqczbFq/OlKK/AmKp0m7nQgiXxa02a46ak=; b=SolX26N1+4miHmBDsbp2pBvGvgh7jeiMrXA0MjOPQ5pPToYHdAVXO54qSlD0rr521m 9qUiCFkKLvKDbPnPO8dSRUmhHX7w7iH+fjPaJjSf2u1kpHPJXbxZUuExyXJrjPTriJnb HteKWhxE0vAVMJgPxXtkMMwDRvoTnhfJbi6bQwTiOfwD8PDWNIKHu5MpmfqpN6HWQw2X uj25caAcFnhLrBD7rjoElmyyO7S5oAMwncUmvqh3SewK/dnpXP/XQMl0JEc7MQPHJ9+k sywGuhhKSYThLlx6iOzHA3v7rVRAclcGRUWB1BSHmLlHxsjzcCGGRGMvJBbbaAl62qRG f2lQ== 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=tP8/moLF8HqczbFq/OlKK/AmKp0m7nQgiXxa02a46ak=; b=G2NxMrJBu1Hcwt2UeUe4/gQKXub6JP5WzdvDWSycZAzxDhqwpF0yR8ym84t9x/Pisq N72rImdFUe4ZsjO4lA4ha9mnaI1/pf11x6573liMH8Gh8Wdq9TplDYV34fspvy4yqPaz DV6fzhI3PTeWuS6u+/+eTUfs7/3zo4LlA1PO+6PedDdktK6ResKTKPy2MRVDyn0dlc/6 S+g4hxbkEsyW9aabHJESLHjAcQc37pOohh+IpiEDy0tgQDkz5pJr/pc1L3IIrfRT2vBL bkHklFkH4HTFx9dsu13SO0qKSKLZ2oqDBMpqt6dPq/g9XO4z+LzLKNeWDt8rtZxnGkgI 6wrw== X-Gm-Message-State: AOAM531xEUyzZb3pVGCJjJiR+awsXHzfvR7WB8MiyDuZjp0MlFSYQEtM iqU/ru04y6/7gLcVxKgvwS4Rhw== X-Received: by 2002:a5d:5402:: with SMTP id g2mr1038219wrv.25.1617721247946; Tue, 06 Apr 2021 08:00:47 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i8sm33727755wrx.43.2021.04.06.08.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1AB751FF87; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 01/11] tests/tcg: update the defaults for x86 compilers Date: Tue, 6 Apr 2021 16:00:31 +0100 Message-Id: <20210406150041.28753-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" You don't usually notice this is broken on developer system on x86 as we use the normal host compiler. However on other systems the -pc was extraneous. Also for 32 bit only i686 packages exist now so we should use those when available. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210401102530.12030-2-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index ce304f4933..af4aecf14e 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -52,7 +52,7 @@ fi : ${cross_cc_hexagon="hexagon-unknown-linux-musl-clang"} : ${cross_cc_cflags_hexagon="-mv67 -O2 -static"} : ${cross_cc_hppa="hppa-linux-gnu-gcc"} -: ${cross_cc_i386="i386-pc-linux-gnu-gcc"} +: ${cross_cc_i386="i686-linux-gnu-gcc"} : ${cross_cc_cflags_i386="-m32"} : ${cross_cc_m68k="m68k-linux-gnu-gcc"} : $(cross_cc_mips64el="mips64el-linux-gnuabi64-gcc") @@ -69,7 +69,7 @@ fi : ${cross_cc_cflags_sparc="-m32 -mv8plus -mcpu=ultrasparc"} : ${cross_cc_sparc64="sparc64-linux-gnu-gcc"} : ${cross_cc_cflags_sparc64="-m64 -mcpu=ultrasparc"} -: ${cross_cc_x86_64="x86_64-pc-linux-gnu-gcc"} +: ${cross_cc_x86_64="x86_64-linux-gnu-gcc"} : ${cross_cc_cflags_x86_64="-m64"} for target in $target_list; do From patchwork Tue Apr 6 15:00:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415917 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4651790jai; Tue, 6 Apr 2021 08:04:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1GP1lZnu8MXRwQvWVomSf2DbOz4CAvnXJ3tr0lWH0rTt9NKJ27DcEkcB3dWzKTkUkoS9t X-Received: by 2002:a05:6e02:104b:: with SMTP id p11mr23274699ilj.77.1617721467807; Tue, 06 Apr 2021 08:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721467; cv=none; d=google.com; s=arc-20160816; b=TNDB867sIhGgKgLnnQqMKM5E7ZyMN52qWHunSQg4zFVgQxhWKW9LOo8qjJhdv45Jz3 /TqtIKsTz+2mcomCsmzOjjo4J7bmayrFB6AQbfHudaS7zE3k1dMGFM54zVoQLQnsSsaJ YS7JozN/DkKs0rZuDMDo21XQOQFeOC0OXbRyDyegptvB8ckxMRYSU7lCWM5SLoZa1+iI dl8/d3cipaktX8/SUDInFqFGG0rUEdPbkdFlEc1FJDT+Pd5ryR4zww5G7cP3mVHjPz4t ESmRJcdfSqtED5Q+amhwdutzPUooqjqqBaNZeF0uXM4zHpeINE42MPB2kaN6bS7cirx2 mqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=hs7mxy20pMj/ITktlM5CnWRfUPzoR68xIyhkZbF5a6I=; b=UEfKcbL4sgmbxI32+nbYnFo2lOjSXRTksCxwBPExO5VBJ3byLS8zrbM4/HHKy0LfJy nqovq4m13UFydOgjbeFeQ7rewixJSh31aKAKdDMV9TjZQACCJJZ+f8k+/C5PxJ9C94fW 0XGtDQKwWp1gGGsscfpVQQPorXytiwnxypUGNLBrCoLvtoiIAUw2qxQDfIWxRnMdyunt NDzYlLq5HNDOIj3YpsCPo0R5UwFAqTR5V6EcZcEmnz8iDmjIGpZMhREZBasxZhqFO3+q xEo4DRNoYWZxQDL4INy5AtArDveup5SRAM5lHi+pCy2VvL/b/Z1lSdi2xJJzEs84SXJZ oraQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dExffXNC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n16si20334487jat.35.2021.04.06.08.04.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dExffXNC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnFg-0000c3-5V for patch@linaro.org; Tue, 06 Apr 2021 11:04:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCH-0006Nv-UE for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:53 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:43627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCB-000515-B2 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:53 -0400 Received: by mail-wm1-x329.google.com with SMTP id u5-20020a7bcb050000b029010e9316b9d5so7476101wmj.2 for ; Tue, 06 Apr 2021 08:00:46 -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=hs7mxy20pMj/ITktlM5CnWRfUPzoR68xIyhkZbF5a6I=; b=dExffXNCQ5hv6GKqU4Bv4sw0xDV+vo8HK9dnYB72bfroUFhzT8EihwtTs1aUfmHcju cuv9wgoUHYVxJJvKbpQ8j68rU52/dQ6obX3OFxn+nVYA2MeOK205cYuk6bIvJFuLRJlY UkMOwU+BgqYYFbb2W+6zaxRH3ukNaE4JcWVfg36GfDksOT1owSpD3MSKo6mMsnitRPNc 90D68IaiWrvMibPtp2IdvMnYcO9rXZtEzVMPL40Vgo8X39pCcxoEzfo5caq+LXoAdBOc 3Xqq++2nnym/L+7DlQCyvjLvXw0OsUWtfOpYMTZlmDeikWiMQXWcT7B9oveGQOAw7ltO 54UQ== 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=hs7mxy20pMj/ITktlM5CnWRfUPzoR68xIyhkZbF5a6I=; b=bmPjoJqoal8zCk9MbMVvr7XLBok9/fB9Qm1xDDSUn+o2uu/GvRK2eVCPkCdSdyNYod 2h8SM2fWau1N4OANOiTydm6Mm9mf+2GjGWRNl1vf7zeG18SJwJzhGAoOLK3aX7VMLV4S 4yTUlBiUncBx6rXJ9PAqSnh6GaAOJo7JaCAsCvEto7qohY3KA7u44LKmlN79vAAwJ7Ru XvuRW9Z1Jx5xYQ4R8xo5GO9L6sKii3zhVz/JFlRYEa3Vn+XEvjiG7Ossnn1WYVcJ4Lmt X/32RvK2ZXQunxL5O45HQQqA8YegbZI52jk17KP+/4M1GVrzdPL1BbMtX95j48GnXi1J RU9Q== X-Gm-Message-State: AOAM530yVfcNy8oa2Cyj1y5Xq0di3XWIfyZzStdH+8oOCVLScoT2qfRg zpyJxZo25aGd0KleJ/zUEeKN3w== X-Received: by 2002:a1c:7e82:: with SMTP id z124mr4612934wmc.51.1617721245591; Tue, 06 Apr 2021 08:00:45 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id o38sm2448461wmp.37.2021.04.06.08.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 34BE01FF8C; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 02/11] tests/docker: don't set DOCKER_REGISTRY on non-x86_64 Date: Tue, 6 Apr 2021 16:00:32 +0100 Message-Id: <20210406150041.28753-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Richard Henderson , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Currently our gitlab registry is x86_64 only so attempting to pull an image from it on something else will end in tears. Signed-off-by: Alex Bennée Reviewed-by: Willian Rampazzo Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <20210401102530.12030-3-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 7cab761bf5..9f464cb92c 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -16,7 +16,10 @@ DOCKER_IMAGES := $(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.doc DOCKER_TARGETS := $(patsubst %,docker-image-%,$(DOCKER_IMAGES)) # Use a global constant ccache directory to speed up repetitive builds DOCKER_CCACHE_DIR := $$HOME/.cache/qemu-docker-ccache -DOCKER_REGISTRY := $(if $(REGISTRY),$(REGISTRY),registry.gitlab.com/qemu-project/qemu) +ifeq ($(HOST_ARCH),x86_64) +DOCKER_DEFAULT_REGISTRY := registry.gitlab.com/qemu-project/qemu +endif +DOCKER_REGISTRY := $(if $(REGISTRY),$(REGISTRY),$(DOCKER_DEFAULT_REGISTRY)) DOCKER_TESTS := $(notdir $(shell \ find $(SRC_PATH)/tests/docker/ -name 'test-*' -type f)) From patchwork Tue Apr 6 15:00:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415918 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4406378ejm; Tue, 6 Apr 2021 08:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/KT8X1LQD95XjiqzUNt8SCeKMZgDe8dA3XLlEyHnkLP3YwDFBX5wDEYnV7ZCpbS9jy1PF X-Received: by 2002:a5e:8e41:: with SMTP id r1mr24392426ioo.5.1617721472844; Tue, 06 Apr 2021 08:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721472; cv=none; d=google.com; s=arc-20160816; b=IyNMpmNFBnMAki0jHH42Nhq2CCFd/jTowzmRu9q/XwPdyX4fvpIp14UofSn8VivvNP ZY9yTL7Otm5qOvU2CpJm4AiEMTbr45y/zWXnIqkaNOHSKYP8RorzWGVYvzwR3IcFdP+F PvBUwqsDCPIeNMO0vKl7+0MKpElC8zUF0ApTjjKir9yRl4yH5OSjIBEmkTtGlgEaPebc iTgkT0OVcVDK6OJ7Ch4vVsXsmJ0X3JCwG2SafwfOpRgQ3gyDlJKQgCZ0gX02w9tI5hA8 eURoT19KHjClpfk7FwURLHQLmxat4pfL3VgZCS033rGLX+wEVDpDNsWBzTfju3pxsA6s 0sJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=V0d6tIYJ+1OdyVAPVLAuIBArrqK1MAgYqxZeXiKzEP0=; b=S+Fu+fI/3bw47dMd62sISdkt6tYL6XORGxNDacojSJIti263WssMn1ymeQkfegQ73m kAq0gzxpaIlzI4pEXlh7OckP+uQgC47zQcg0UlVoIPnrmhVdzlJRTdSCHfGPR2w3znW1 ywsQrjDFYpliPoouq4QpHl8vujxL72/rqEvjGNPP6jCd3oX7mcuANNjKEobjgkAngz4y V0bOvwrvYkY6n3t2zExdj2m8HJ8Gb7EyUDgAuSe4aPg7uwq5ZoUpX5xOxrp7SoVxxl1l 9LyW8A9wbVZALI0MKjReBBiQRefJQwwkFA/ahQe3jF/7ReISyUKo7WgNgDBt9UK23Yik 6bug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mqJCyORK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o18si18584101jat.92.2021.04.06.08.04.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:04:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=mqJCyORK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnFo-0000gl-1Q for patch@linaro.org; Tue, 06 Apr 2021 11:04:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCN-0006Qb-Ez for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:59 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:42831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCH-000521-Gs for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:59 -0400 Received: by mail-wr1-x42c.google.com with SMTP id q26so8889858wrz.9 for ; Tue, 06 Apr 2021 08:00:49 -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=V0d6tIYJ+1OdyVAPVLAuIBArrqK1MAgYqxZeXiKzEP0=; b=mqJCyORKnweruzNIYLTzJoT5smL85jiOdOs7N078sO0Ejhj1L8OiTMJUJRNn9ixhFY A0i7oWpSG3URnHQy6h2ZVVBiBIUjlB/IeXpCff/KIA3BQkF1zLxPSoDTVhGQjsSpNd6i Clhtf/Vjq3hf6Qw/THR8JRY/CwPLR+BA57uYsgdO+2vOoktPkRKN7d0Ax1NL1T0U3UZR xy1lQYZvrOhZjIYzgWWJF8vWNcWnKJZk+KGxrjtzhjS3XMVql45vwppfdltVicsGOSuv yTQx5vwwjwwK+TARrEnPyF4XI9Ub7wgxCihlnsRba01jkQX3zoLuifDe1IDv9xXh1dBc 4nww== 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=V0d6tIYJ+1OdyVAPVLAuIBArrqK1MAgYqxZeXiKzEP0=; b=K9sXXqSTulMZnRqhx/iMXKu6h0kcfmWZPqQ4wnjpGnKpKRjOZuNyhMvVvr1inlJE8L aNb3v3/4AT77D9A65mBM6FieWArwQgQENnzPsIXUz5p3+JHu00Fshlexqn34+hhhQWaI 6Vqa6Mr8yHOqQgwluZ/jpDrvkL8TIU7CsxBOcNULckGOCs77OtZwpG/uNfaZQAHsZauM C2eiJLIa50oH3F4ICvxTfLk8KOrtMwZcczcKIoJaVJQPn3N+n/Z8PuBg6pIqF2UtwOKi +9b8RngmTX3Rrk+k3RkCHQTu8zx4wvuR09Z848jVfY5ryHg0mECTkM+zHTpHQIV4D30M /Yww== X-Gm-Message-State: AOAM533F2ZnNO6PVBxPgK5EIN/xJxn/Tyw7QdWjZiVWF2cFnUEnx3GfH 7GEd0gIUSaEby/q3tCwCDnJtNA== X-Received: by 2002:a05:6000:1209:: with SMTP id e9mr10667478wrx.36.1617721248553; Tue, 06 Apr 2021 08:00:48 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 61sm21977828wrn.25.2021.04.06.08.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:43 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4DEA71FF8F; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 03/11] tests/tcg: add concept of container_hosts Date: Tue, 6 Apr 2021 16:00:33 +0100 Message-Id: <20210406150041.28753-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While docker is nominally multiarch these days it doesn't mean our distros actually package all cross compilers for all architectures. The upcoming Debian bullseye release will improve things further. At least for now we can get things like the 32 bit ARM compiler on it's 64 bit cousin. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20210401102530.12030-4-alex.bennee@linaro.org> -- 2.20.1 diff --git a/configure b/configure index 8275df1506..4f374b4889 100755 --- a/configure +++ b/configure @@ -6299,7 +6299,7 @@ done (for i in $cross_cc_vars; do export $i done -export target_list source_path use_containers +export target_list source_path use_containers ARCH $source_path/tests/tcg/configure.sh) # temporary config to build submodules diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index af4aecf14e..87a9f24b20 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -108,79 +108,98 @@ for target in $target_list; do case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AArch64 + container_hosts="x86_64 aarch64" container_image=debian-arm64-test-cross container_cross_cc=aarch64-linux-gnu-gcc-10 ;; alpha-*) + container_hosts=x86_64 container_image=debian-alpha-cross container_cross_cc=alpha-linux-gnu-gcc ;; arm-*) # We don't have any bigendian build tools so we only use this for ARM + container_hosts="x86_64 aarch64" container_image=debian-armhf-cross container_cross_cc=arm-linux-gnueabihf-gcc ;; cris-*) + container_hosts=x86_64 container_image=fedora-cris-cross container_cross_cc=cris-linux-gnu-gcc ;; hppa-*) + container_hosts=x86_64 container_image=debian-hppa-cross container_cross_cc=hppa-linux-gnu-gcc ;; i386-*) + container_hosts=x86_64 container_image=fedora-i386-cross container_cross_cc=gcc ;; m68k-*) + container_hosts=x86_64 container_image=debian-m68k-cross container_cross_cc=m68k-linux-gnu-gcc ;; mips64el-*) + container_hosts=x86_64 container_image=debian-mips64el-cross container_cross_cc=mips64el-linux-gnuabi64-gcc ;; mips64-*) + container_hosts=x86_64 container_image=debian-mips64-cross container_cross_cc=mips64-linux-gnuabi64-gcc ;; mipsel-*) + container_hosts=x86_64 container_image=debian-mipsel-cross container_cross_cc=mipsel-linux-gnu-gcc ;; mips-*) + container_hosts=x86_64 container_image=debian-mips-cross container_cross_cc=mips-linux-gnu-gcc ;; ppc-*|ppc64abi32-*) + container_hosts=x86_64 container_image=debian-powerpc-cross container_cross_cc=powerpc-linux-gnu-gcc ;; ppc64-*) + container_hosts=x86_64 container_image=debian-ppc64-cross container_cross_cc=powerpc64-linux-gnu-gcc ;; ppc64le-*) + container_hosts=x86_64 container_image=debian-ppc64el-cross container_cross_cc=powerpc64le-linux-gnu-gcc ;; riscv64-*) + container_hosts=x86_64 container_image=debian-riscv64-cross container_cross_cc=riscv64-linux-gnu-gcc ;; s390x-*) + container_hosts=x86_64 container_image=debian-s390x-cross container_cross_cc=s390x-linux-gnu-gcc ;; sh4-*) + container_hosts=x86_64 container_image=debian-sh4-cross container_cross_cc=sh4-linux-gnu-gcc ;; sparc64-*) + container_hosts=x86_64 container_image=debian-sparc64-cross container_cross_cc=sparc64-linux-gnu-gcc ;; xtensa*-softmmu) + container_hosts=x86_64 container_image=debian-xtensa-cross # default to the dc232b cpu @@ -265,7 +284,11 @@ for target in $target_list; do done if test $got_cross_cc = no && test "$container" != no && test -n "$container_image"; then - echo "DOCKER_IMAGE=$container_image" >> $config_target_mak - echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> $config_target_mak + for host in $container_hosts; do + if test "$host" = "$ARCH"; then + echo "DOCKER_IMAGE=$container_image" >> $config_target_mak + echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> $config_target_mak + fi + done fi done From patchwork Tue Apr 6 15:00:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415920 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4408486ejm; Tue, 6 Apr 2021 08:06:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpUnyTRrtQThZ8Dyrz3P4AvDAbVKnJC4RpKRTLaZhZ9dEBhWzDaX/kD3aIK6u0b2AgCPC9 X-Received: by 2002:a02:b1ca:: with SMTP id u10mr2743613jah.99.1617721597683; Tue, 06 Apr 2021 08:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721597; cv=none; d=google.com; s=arc-20160816; b=eqtHIflvwfaD6m70AfTarp8p/zT0OhNRrM49vVwwPfIIKd3Mm8d9bxs2qbawkbYhCX +2bPth5CKl4SY+98Id/NlZ7PNmpB6U9rME1GZZyT2qAijEkBU7GJKP/mHt/g0DsDilZi 3yZn7fD0H5eYlc5+Y3nwMQPcsfsztD0w17wVlN1IwCj4CKwpmy2lFp7A+1P5NLVV/Lsj I4MXQpBYYXG+7S7IF3t9cqnH9E0Z2LP9peg0U0ky3Y8wJxe5TsBiF6wFOhITfcFO4izz yvq8LziRxmlgZWH/+m5YD4izt+Lst2Yqp5C/QD7AAWmGNP2wLIGfOdpJbZHSn36AQvED GFGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=xCHtZ6T1wrS+0v3mUz22AtCj5zKQWLIemaJOtTnyDSA=; b=C3E9tWCSX1CKFlCIYymH93atxn5MfJjVgzE5Ui6+jHftbrU6NzCe+2KdjLTSL572+z Xpj/EZgwTAwceG7RvZRW4lS8RC0dxvC5ZMRayQsfj7N2gZGWyIJLbkxtAEIP6I4a5vlE Xr7VahmeJw+Ykms8kmdu56XXMAmT7RekGiKGVLOJ1s8xmmFvZbuXvjjIK0IZ3kj/OAYI YPoNQ2Wxqp58Sx5gdrJYFxIXILnGCDKa00+RO+uVWNhnZmhegr3ckdJB6U0NUFhzedN4 yYo3DK07sFLFgTDO4HzOluGXkyvhJf8/L1ZQjSSFzr41Zs2ZZLQ0ZnwGMofG8+47X+3t k4Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bOAEbTmr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w6si17189731ill.104.2021.04.06.08.06.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bOAEbTmr; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnHo-0003IK-VZ for patch@linaro.org; Tue, 06 Apr 2021 11:06:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCO-0006Rt-PJ for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:00 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:34683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCN-00056L-4i for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:00 -0400 Received: by mail-wr1-x436.google.com with SMTP id b9so6699337wrs.1 for ; Tue, 06 Apr 2021 08:00:58 -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=xCHtZ6T1wrS+0v3mUz22AtCj5zKQWLIemaJOtTnyDSA=; b=bOAEbTmrGg77FP/CWphlKEJvh9L8EBV0L5vVRtCxy8z/VjTXkdilX4+vJK9O/Wp7WH YugS4/8bHTC+vxfIBTc5xScUzFPzrMbTB9zaUt4/x9QKAZW6HJ6/Awg9BLDWsKl+Iy8a w7S8oHRr1SlC/Duq4kruRzOLSYc4HB9jzRzATs0bYZBx3m3Z/VafOupOvk3ptPR2mvML MkGfvr/7f4CamBng8CWi0wehiCFR4VgvoWnAMmbhePYGy5Ri9LCU4IhWLa1l9p5IdfBR AVxm45nXTKhjzpjczXCkwaYzvaP6IbAnFQHNiikxdIf5HU2GzfTdI4Kza091z1jZDNw3 /oTA== 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=xCHtZ6T1wrS+0v3mUz22AtCj5zKQWLIemaJOtTnyDSA=; b=GYYuKIHpKqAn6yFTo6Fe1hMWkxCIvlQTd/RSqmOiZmi/f7J3gJUgUGVzKAqCOrIQ4I tBvxD6JPNqe/n9o1gxJeXWKikGc99bCbQsoH98/VRaTCdUpmb3GDCXSumAsZmTQ6Ei1I Q0b0BCQdKHwA6ktACIM0w6usV1Gx3kbkpBZoDkGwAlVpb3jvNsihIiBuqeQ+/0esUkHj TxNeM6YRcRGoRh0zI890F+4OJlkNnLjP0KpU9SgQQapzRN8/Cg6bLxZO2XFx2ZzKyTGA u3j98m0ibX82e0qppI+tfB4lFAGfi9jJAhqDynSrYD4nsP24Bl2LcTvMfFddJGhec/5v +fcQ== X-Gm-Message-State: AOAM533E1V17v2yVht9dcTfuo9WdUvnXtuPBLErrojXapiuZ06ZWqjqa iBlEMb2jdkasn0obgKdi/XjhIw== X-Received: by 2002:adf:edd2:: with SMTP id v18mr17830096wro.305.1617721257772; Tue, 06 Apr 2021 08:00:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z15sm473358wml.4.2021.04.06.08.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 65E6C1FF90; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 04/11] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers Date: Tue, 6 Apr 2021 16:00:34 +0100 Message-Id: <20210406150041.28753-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While it's hard to find cross compilers packaged for arches other than x86_64 the same cannot be said for the x86_64 compiler which is available on Debians i386, arm64 and ppc64el release architectures. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20210401102530.12030-5-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 87a9f24b20..90fd81f506 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -198,6 +198,11 @@ for target in $target_list; do container_image=debian-sparc64-cross container_cross_cc=sparc64-linux-gnu-gcc ;; + x86_64-*) + container_hosts="aarch64 ppc64el x86_64" + container_image=debian-amd64-cross + container_cross_cc=x86_64-linux-gnu-gcc + ;; xtensa*-softmmu) container_hosts=x86_64 container_image=debian-xtensa-cross From patchwork Tue Apr 6 15:00:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415919 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4408420ejm; Tue, 6 Apr 2021 08:06:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2vaKOnY+Lvcvo3LcYRuBBsDTnrZjaTiARxr7C4gpdg7GueQZWf4jU/U874ro3egWkFg4W X-Received: by 2002:a02:cad9:: with SMTP id f25mr29112356jap.26.1617721593851; Tue, 06 Apr 2021 08:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721593; cv=none; d=google.com; s=arc-20160816; b=IQ3wBEezAKtnmNqi9ILeGaAkCXzLtols/s1keaehS5TNKsQkHenT0QyF9tZ196mIWv iekJn58mhvXnFIJJoS4x41dRLH0y6cpZU4ZIFvYjd8DDS06ByTSoR+Evuis+NhVch8p9 inAP1tEqFai1uco37kL9Mm8zI4a03aNp1LfCF+Otuv+mK47mXDhBbY31+bwDis2JaHhM npk7dr9g4dftB9Tf2ueU7q4p/429ycx6RF1Tgq/UfS2EWCXpB32qqxta79Yzh6oY42+M jEdAcgta8IiOW52q/OHjfXlZbpLoT5g5CzYMmfsK9KhHYmonSB6WYo8kf/c2FevMR0J+ /RpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=/OvWpiidAusoiWgG9DBS0zzwzX7wVU4NPq1QWT+0XUo=; b=jMkLm0yCMeiWCqYIAYc6RckRmBib9mSO8Rj5itAeJuuXXYXC+UL/MZlNev8tvbLCJY S6w3sXfAJCMLI4SDvJ3bo4kc10hyx6Suw6GD1cO0vQR9Cb/p5zfgfmGh8HDIFZpIGYQN hLElPUNNj7lYmlsDwqnN/yEthDyJNuNT+CUTu3sFQyXhJ/Z5Ukxul5Gz7U97xcAq9Ydw Hj8ySKC8+r+n7fnUD4/3irCcRr4le4kTp7HPbfSuT86NtEFIMQc/l2MsnFExFuNjSZIM JZ8iNC6i4LlDhl9QTXmuF5GnIGW4IMTQLZsmZAk/icSqYHDoFEWSPXUiVTldedOzcKUT 4vIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=szAzUoEb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c26si17180324jap.123.2021.04.06.08.06.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:06:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=szAzUoEb; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnHl-00039p-7p for patch@linaro.org; Tue, 06 Apr 2021 11:06:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCO-0006R9-0h for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:00 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:53190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCM-00053x-2p for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:59 -0400 Received: by mail-wm1-x32d.google.com with SMTP id d191so7534408wmd.2 for ; Tue, 06 Apr 2021 08:00:56 -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=/OvWpiidAusoiWgG9DBS0zzwzX7wVU4NPq1QWT+0XUo=; b=szAzUoEb7bOV9Ezy7Pg8ME0PBDXF6ksbv6yu2h6f977yDctrgzmDGZiXgdUXarW9Ec t70HI4gKr6MyfO+ZwaL2RsR3IRCyYx33dFr+lsweYoHb0eCq8PTr62GsZHbwy2fsn23A smzooUop6X1Vh/aNzqqlQta69Om6QhX49nfnsjeenglBkzmZXIofN4Kd8rQFr8HWRghF 5NAT9oFthMSKnrSTLVP4zDt4BrCrmBfijua+ZpAqKZuGMZnruQNppSHa7o1xrLwNFx52 iH+v6UNYsMmz73s/WEHzONUvPZQhRMCNDNpThWB2tIUBhBupkwbKYvq2ZlwyczGYOZjk Stgw== 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=/OvWpiidAusoiWgG9DBS0zzwzX7wVU4NPq1QWT+0XUo=; b=rhOO5xHrBtsJUgUSs0Lo+rwv1JU5nqlQBYHQo/QGL4ZAvpOi1ZcBIwCqgTSr/Hi32q 5Ghcfo8qSh2Uz6DP4EyZ8Fmz5mdSfmt1dYPgIWVWnA0a8J1Z14bOjhMkXrFeLmAWEnyU FG6CHJ9Rhcwu7XmaTBofEfAwBGbrp6ke/+ycoFHye2LWaraYNLXoqJNABw21gEJTDVz/ g9tjkyFxUpoR/YTfaGQA/si5aDj7xq3CU37r6bl0vUlzDuLbwVE/TeIYFrbFsitKrX/9 QSaSinyx1ZYVjQgFyr1sKgzDB9xYHrlt7oD8vsPwmq/ZbkjVAt0HnQCt1aRjoac3G9dN lodw== X-Gm-Message-State: AOAM533prBAyEe3CJswc/csm6Ks3SH0R3475BPkyIOglCRZRX4EFeX8d 1cJvb4mgo8nI2V6rjE3iuHY/YQ== X-Received: by 2002:a1c:b689:: with SMTP id g131mr2498452wmf.138.1617721255755; Tue, 06 Apr 2021 08:00:55 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g64sm3924864wme.36.2021.04.06.08.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7E0271FF91; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 05/11] tests/tcg/i386: expand .data sections for system tests Date: Tue, 6 Apr 2021 16:00:35 +0100 Message-Id: <20210406150041.28753-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Eduardo Habkost , Richard Henderson , qemu-devel@nongnu.org, Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Newer compilers might end up putting some data in .data.rel.local which was getting skipped resulting in hilarious confusion on some tests. Fix that. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <20210401102530.12030-6-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/i386/system/kernel.ld b/tests/tcg/i386/system/kernel.ld index 92de525e93..27ea5bbe04 100644 --- a/tests/tcg/i386/system/kernel.ld +++ b/tests/tcg/i386/system/kernel.ld @@ -12,7 +12,7 @@ SECTIONS { } .data : { - *(.data) + *(.data*) __load_en = .; } From patchwork Tue Apr 6 15:00:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415916 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4649280jai; Tue, 6 Apr 2021 08:02:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpCOp750k9C2+oPaDt1SoRSbG2O8SrwqLm68hIzItNBrt2bgcHN15kS1qHzSArl4BLnkYw X-Received: by 2002:a05:6638:3a8:: with SMTP id z8mr29293453jap.111.1617721329819; Tue, 06 Apr 2021 08:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721329; cv=none; d=google.com; s=arc-20160816; b=WuugRQOxcVwpel9vBzGXOMPv7JqCkTaIGE1/BQAJaxoXN0ylJ9tfLwO6EbFSlmy9XD 8gcCHmnB/aGYGPVhBO8+dWHKHS81ni2AkVjkY29ZwP66wvZuI2h/CXHRR6uhmV85cb0C 7s7ScovUrdcjRKaEaK/3AXLJw/+CnHgoI5EkY3deBw47QBZSC2BkVi7Tm2vSBuqv9KW4 67fmPPu6Lk/Dnadpa3qTxEK4+PDqHwKpKjKC/wwUISQaEORN0G9nIxPZ3yWD4dDBtmcj mJCKM8XEZzRIiKP9qSauaISWO60NQvUrzeL9cyS/cVB7jLHUUeMrc7Ku+bwj++eOw5P1 oBvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=epV8peuu7bDkNnCU4ud5+0/ywqFJPtW85LL1WyPiV5E=; b=BCjwH6xYRdp8wkpGTYG7wE1dB59w5WWPM9V5WCwg1+6PFQUCfaIc4Nt/yhj/pohzsh jAQsJiFnu6syG+cO8heQWSskTi+cwOr/4siXLediDwInSYDS3TZ+iv+nJXWA5pl2+Toy gtfea7k5qDEhpbkUzclN3+0Mxy/FzbWbfc2xkui7ZhRdcbaFNcCtjg4T5UTn8I91uuOs dckF7JT+KZgj2QmuGNki8894WF82KTiyuiYZ3l8PAre+dKjo3DKmWTD87nBpKXBn1ZeD NrYd7e1fTspMgDg5sDj6dfFpWeettbVXIqbFY2smkMnArednxOKt6KU4V1oVEkDg6PD8 ZsiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=n+2862Uj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y11si15887912ill.115.2021.04.06.08.02.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:02:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=n+2862Uj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnDT-0006aQ-Qd for patch@linaro.org; Tue, 06 Apr 2021 11:02:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCU-0006YU-3K for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:06 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCR-0005CV-J9 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:05 -0400 Received: by mail-wr1-x435.google.com with SMTP id x7so14572295wrw.10 for ; Tue, 06 Apr 2021 08:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=epV8peuu7bDkNnCU4ud5+0/ywqFJPtW85LL1WyPiV5E=; b=n+2862UjDpoti//xZDd6qmIymYGQgV11sjMWLW2TdbUzlxYvM6tmySNNVlh/sm+J+X 4BjLSIuG/qb99p1O95erdG1X3esIKju4sflruevrFa08+6fDzMrr6+WID3XUvSzzPNi5 uxACd6+ts/G3aZ78cXMmiMqF2CAFIo4cn9JQ43ogoyCW/nHrPOYyO34xgnNQ/SDW/RpI ABBHfoGbtFtjNQmqlIId3xiDUYyZKNTpE9jAUcpQBxE2xNfyiurheLq1dTYBxiTlMAkD u3T1bokGRrrz34R7f82mv4HwsspfipFnWEGgsRV1YPQ4vwNvJFzCTYpy/2NTldB4OiHm 94UA== 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=epV8peuu7bDkNnCU4ud5+0/ywqFJPtW85LL1WyPiV5E=; b=iUU0c9SJVu69CHoiBpcjV/lOYmESq5HFvr0LDEH8lr65Ve2LnsLNi8aDOdxxOPZfqd FEhnYbj92WoAm1u/L4yHQbT3T/pqCvH8zWIs/FfNake98iIwTnn5qIxPcdxrDMdnM7Cg rpl5NTpZwPNM3PHEfXCtOxAP+/3XJRasIJGw6g4vtSfUbsHK3JJl0ApH1YPFzMUn2SwW 05UAfS/0cRQ+uGl9jJoOLnn/SG3Sk4dtG3yFMqkYlG6nZzxH1RHruMSBLqMwtRWBuCU4 STQi4mtpnN4s++SzYoq1CB5evkblkQp/cIXtQp25TJ9AI8kxzHacl0nK8mVboxgqK/Bw tFPw== X-Gm-Message-State: AOAM530bEth5fUHOTZbnjSo6WL3yLP+XTMBjSRMYqJJ0M9Se4WK4gh// DkQ3BB5q4YdtBCxyz4UOkc/QgQ== X-Received: by 2002:adf:db51:: with SMTP id f17mr17713386wrj.64.1617721262343; Tue, 06 Apr 2021 08:01:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g16sm35181851wrs.76.2021.04.06.08.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9551E1FF92; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 06/11] tests/tcg/i386: force -fno-pie for test-i386 Date: Tue, 6 Apr 2021 16:00:36 +0100 Message-Id: <20210406150041.28753-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Eduardo Habkost Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The containerised compiler defaults to no-pie anyway but if we are relying on the users installed cross compiler we need to check it works for building 16 bit code first. Signed-off-by: Alex Bennée Message-Id: <20210401102530.12030-7-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 90fd81f506..fa1a4261a4 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -281,6 +281,12 @@ for target in $target_list; do echo "CROSS_CC_HAS_POWER8_VECTOR=y" >> $config_target_mak fi ;; + i386-linux-user) + if do_compiler "$target_compiler" $target_compiler_cflags \ + -Werror -fno-pie -o $TMPE $TMPC; then + echo "CROSS_CC_HAS_I386_NOPIE=y" >> $config_target_mak + fi + ;; esac enabled_cross_compilers="$enabled_cross_compilers $target_compiler" diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index c4a6f91966..f7efaab918 100644 --- a/tests/tcg/i386/Makefile.target +++ b/tests/tcg/i386/Makefile.target @@ -27,13 +27,23 @@ run-plugin-test-i386-bmi2-%: QEMU_OPTS += -cpu max hello-i386: CFLAGS+=-ffreestanding hello-i386: LDFLAGS+=-nostdlib -# -# test-386 includes a couple of additional objects that need to be linked together -# +# test-386 includes a couple of additional objects that need to be +# linked together, we also need a no-pie capable compiler due to the +# non-pic calls into 16-bit mode +ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_I386_NOPIE),) +test-i386: CFLAGS += -fno-pie 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) $(EXTRA_CFLAGS) -o $@ \ $( X-Patchwork-Id: 415925 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4414533ejm; Tue, 6 Apr 2021 08:13:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/TI90+uT1YEQDfSy+4Rn4FpA0B/oeqXato0OWWVMfWSABaRPWYtsMHmdQ3PbskSSxaQeq X-Received: by 2002:a92:c608:: with SMTP id p8mr24269244ilm.288.1617721999545; Tue, 06 Apr 2021 08:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721999; cv=none; d=google.com; s=arc-20160816; b=NUuGuf6sj8FFs5pBcE8tY3d6P9VpftZHd0sB/slWZ3veuJdZreil+BZ/II6/xrVkyf kt2pWt2y1FezckXvk0MmZ0eE+LINJzYjA3XWPtePraPxGZOGAYnM6r1kKXhpADLNuJdd wBA9Rfyp8oLq1fmCn40SCGq25Q3sc1w3JFRebXQ/bXXNRaQ9qLlS4fUgeJx1HfIY1zyd ofsf/vGtO2H40Z5DLbB3p5pWG3SJUuBXVWWYpJvFA1gweFF0y0ZqVoBnMqF78rquAgxN 4xw/KDqApBipQx7VpawE772mrqXIhIilVrsL28Id4AefQzpI1w5aGX62ObEJthSvFGkk UTVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=1ZWLMlQokbn+ytm36tLs/g7l/rfbZT4dElLqTmVGEvY=; b=pai4XSIiEuih39+N2KH9YleKiFe19ztQC/JPVFs8BVzjBohW9yaeIKjXwVMObpytZP Nq4SFCsrNEkXYmUiEcHQSCrnvTTa9fg/WcXoKXVOSCpXGltfNJ73sPHZRFUhCXlMoPvl 8eFAygpAMvNbj1+Vi1EuOPt/0Xmn0gS2zz4AaKNhhTy3lFQ4pIZ6VItoW/98oiABIoeL SOpFw0iSGooHPrkbnIl+nV3RgNc4r1BmFQ8YsecogpT+lJ9C3/Th0p3K7VBLgzYxgSlr NV2Olg0Fq+f5D14KXUPupUNIieNKp+MhFfmFcNW6CKmFGZIfFH5+Amx71W/2znrYuljS Qy3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=t5CMIakZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x11si18406482iog.76.2021.04.06.08.13.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=t5CMIakZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnOI-0002K1-TE for patch@linaro.org; Tue, 06 Apr 2021 11:13:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCZ-0006hY-C4 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:11 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:51731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCX-0005Hi-J2 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:11 -0400 Received: by mail-wm1-x333.google.com with SMTP id p19so7540311wmq.1 for ; Tue, 06 Apr 2021 08:01: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=1ZWLMlQokbn+ytm36tLs/g7l/rfbZT4dElLqTmVGEvY=; b=t5CMIakZ15gFy9GFcx/hZRKyfa6ytzlvJUCeJJXCU+idYrAJIODyCKWGz96fSxQ9hO YZK4FXJ+SWbdKthuqWlT70vV7oONCu3TZorR/hUSv7Ezgkb6l4VwcyZ29i6KaXkYvMtR K0nYG+EudOYRpd2NTUF5wlFBqA8QZEStcKvtCxRL7I1SaJyGgFw3zfiwwQclUrfNFsp4 jaPLWrvll+nRdqwEZh83JtEH8pGRox0jpk5AkM5A+pPk2PevZWHrGPzDnMDH5dWxe1+k 5zEyFP9TWF1zWbf7VbjRWaSL/mZhtr5RBmwV9hpQ5m6CznEuQAq07Dc2vrPgKjIzup1O v5cw== 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=1ZWLMlQokbn+ytm36tLs/g7l/rfbZT4dElLqTmVGEvY=; b=mpSolGfqyn+s5mC2rwXRjxHB81r5o1eOZmbVm2KM8NwOk1GMJdoQ8b68y3BmaSe30d J83ZnHYX+71ezYSvnwhsW/1Smikjs97Txs1XZuY8RqigwcB4x7mJEDj7rnaZqeoNlLdz zYERF7V6JhX1d8uT10mj3zwdrdz23w2VpTILoGjwATksli0M/2uajV3yIr2jQ0uZnY5+ xCbf08ov1icud2iDEvQfkxosaDUTarWSIzmgCw6MZRnhlcRitot+YpKMaeQqgaKoUXcG ouvAwculmocnOk6CteAWqWV74mkU3wQTr6gH5AJUqWBoIbEThpRaX4K+q4D4/ddzQa2Q vxDw== X-Gm-Message-State: AOAM533UmJfAP+nui2kDrVzegnvVG69zwBVIrx/aXhI/imfwYEcwEySG XMN0gYuAI5Xa/7U9FdQaMf+uxA== X-Received: by 2002:a7b:c188:: with SMTP id y8mr4507569wmi.76.1617721268174; Tue, 06 Apr 2021 08:01:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u19sm3028804wml.28.2021.04.06.08.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A98F11FF93; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 07/11] tests/tcg: relax the next step precision of the gdb sha1 test Date: Tue, 6 Apr 2021 16:00:37 +0100 Message-Id: <20210406150041.28753-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Ma?= =?utf-8?q?thieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Depending on the version of gdb we may not execute the first line of SHA1Init when executing the first "next" command - instead just stepping over the preamble. As we don't actually care about the position of the PC after the steps and want to be sure the context->state[] has been loaded before we inspect it do a double next at the start. Signed-off-by: Alex Bennée Tested-by: Richard Henderson Message-Id: <20210401102530.12030-8-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py index 2bfde49633..423b720e6d 100644 --- a/tests/tcg/multiarch/gdbstub/sha1.py +++ b/tests/tcg/multiarch/gdbstub/sha1.py @@ -40,7 +40,10 @@ def run_test(): check_break("SHA1Init") - # check step and inspect values + # Check step and inspect values. We do a double next after the + # breakpoint as depending on the version of gdb we may step the + # preamble and not the first actual line of source. + gdb.execute("next") gdb.execute("next") val_ctx = gdb.parse_and_eval("context->state[0]") exp_ctx = 0x67452301 From patchwork Tue Apr 6 15:00:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415915 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4648331jai; Tue, 6 Apr 2021 08:01:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM206GkZ7MinFNpEtbqPWjTGl7glcZK5zngJLKCJ5IfBl0dZQt8Dg86zsnkjLFWqPGAlvU X-Received: by 2002:a92:d68c:: with SMTP id p12mr25344938iln.73.1617721282744; Tue, 06 Apr 2021 08:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721282; cv=none; d=google.com; s=arc-20160816; b=m1m9BWL9za+uDDXpb15/a27BwZ9C2enkJTEbWIPkqoPuOokR4uBdOUkPciB9q4+S0K uMC/vcimPX3cEdAzrEOpsc6GkXE0b7Y3FqI4xRMXKBquj2CK6t08Fl+LU3Pb9y/xHIZf 7PVF4HUCr20fffJua243wsRU3gntALVyW3MNTnkaR1AGk88XuCCtHvmLnVWRnzHc2bWU pWR9ySNSOKtm0cauyv5f5j89zv2UggSckNC8BD2BoLRnmNoSReeERnexJJKh78Jtgh32 exa8Zdwy8z9/2WrVwdO9ij0QO51FYD9g6ygm9SL1bQDWMERRpYQ7TUwFgn0upF1JeN1l Q1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=+t3YZRN8RJbaF5Xe0/VHgfu1mXeGtvL3md2FwL8JLSU=; b=xftULUu+d44Oim5SNKmI6QvCP8dlDFPd7k96HE/hjqA6W0iET5fGmvTAq6gpr3bxwg O/Q2TFZd291jIFve5tlzX+vPriEpV0+Gedrw9JlwkqN4te19Robk5UoZ+73JZZrmCY2+ WIzHoitZ51CdehC7EbEAtVBoZWTgjv7F9V/Cm5trK5A7h34udpyAlP+KlTEoNjhFtJPw wit+N1XC8I5bu9bYcZAtByxeaVZDWjGUrJASC9sceQBwp8g55cSe6C//GzJkrTuvgAS/ Z+RGcOFdHkOK48E+xqwNhzaYaYg4X2uBMQBnFd6oTDude08mlZBOGUQS11qbQgZKpG/e tIkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C7WvzXiW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a6si8543607ilb.85.2021.04.06.08.01.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C7WvzXiW; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnCk-0006RW-6j for patch@linaro.org; Tue, 06 Apr 2021 11:01:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCM-0006Q0-Ou for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:58 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:43904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCK-00053l-81 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:00:58 -0400 Received: by mail-wr1-x42e.google.com with SMTP id x7so14571790wrw.10 for ; Tue, 06 Apr 2021 08:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+t3YZRN8RJbaF5Xe0/VHgfu1mXeGtvL3md2FwL8JLSU=; b=C7WvzXiWJ4ZnYjqrXinI7kHZNEYUBNuAV1CHezkBHB+XiecrI9qQO+Uf6pI4gir6/J MDX6d5Dvg+YjpeAYvC/aMNbLDBH9wIml2Ih71d29Km1b8Ow40nOH+0lTTvXh3vznIP17 TPq+Nil86waRzIAqvqNOzJO0msDAsAapqFbU+FfUav/crU1GdeDRacyTgWtYyx3UJess yWiW6SRVvB4TgEvVZ1ZMx9Y23tzxm6UBYB5xeLvPWdn06plyqfWFEb4/SgkDUEhymbOA ykUm57g0nTr/s6fL0cA/frJJGt76n23hWXVk0movSO6z19sv5eC0VesDaO5l2+URAZ12 cdFg== 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=+t3YZRN8RJbaF5Xe0/VHgfu1mXeGtvL3md2FwL8JLSU=; b=GzVGHND0SlufWmUBdFIBdoxIZ5fyaB9ND+otOFhjU08bP1ZbQCs6kFEnhYBD52iGcS 1Nq275LLOsZERR/T+fUrvctLJLMcCtF8D2dmBdqGyGWlQbn80sfh9bq+dcdbm68wQo3r 77IggxJ54iOVSV4leAMDt4dawTnRXygsMkU8py8wKCFqpkUR8xsh5KfsnPbezXv/swY1 HrNEDzrjEmga+q7YWblDRwZ4fPPksQqKG0Zi0xsR2FrEbanJFAP7KhumuX0MoxwL/aS/ 6vn/WBiHvPBfcb1uymZFJa/9qZz8NNnoDLWtL5Qdjz5ve6/OIc0uiUJZR36rLGy5afmQ lgAw== X-Gm-Message-State: AOAM530UR1QIHnqZYUir1lLUxUD793Hy3VbnKuqkd1U0Ejd4bb1Q27lC xlzpryhPbBYj8B3s+rZAeATydA== X-Received: by 2002:a5d:46c6:: with SMTP id g6mr22804398wrs.410.1617721254818; Tue, 06 Apr 2021 08:00:54 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a15sm32632574wrr.53.2021.04.06.08.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:50 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id BDA451FF96; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 08/11] docs/system/gdb.rst: Add some more heading structure Date: Tue, 6 Apr 2021 16:00:38 +0100 Message-Id: <20210406150041.28753-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell We're about to add a new section to gdb.rst. In preparation, add some more headings so it isn't just one huge run-on section. Signed-off-by: Peter Maydell Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210325175023.13838-2-peter.maydell@linaro.org> Message-Id: <20210401102530.12030-9-alex.bennee@linaro.org> -- 2.20.1 diff --git a/docs/system/gdb.rst b/docs/system/gdb.rst index 72b1e68f4e..0bb1bedf1b 100644 --- a/docs/system/gdb.rst +++ b/docs/system/gdb.rst @@ -45,7 +45,11 @@ Here are some useful tips in order to use gdb on system code: 3. Use ``set architecture i8086`` to dump 16 bit code. Then use ``x/10i $cs*16+$eip`` to dump the code at the PC position. -Advanced debugging options: +Advanced debugging options +========================== + +Changing single-stepping behaviour +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The default single stepping behavior is step with the IRQs and timer service routines off. It is set this way because when gdb executes a @@ -88,6 +92,8 @@ three commands you can query and set the single step behavior: sending: "qemu.sstep=0x5" received: "OK" +Examining physical memory +^^^^^^^^^^^^^^^^^^^^^^^^^ Another feature that QEMU gdbstub provides is to toggle the memory GDB works with, by default GDB will show the current process memory respecting From patchwork Tue Apr 6 15:00:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415924 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4413249ejm; Tue, 6 Apr 2021 08:11:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvD8zxTxxXaX8KSdFWBLbMuhVfbBwZNvJCpHK/H6U0ri21TYW2PHyMmh4/gAdSwg5K2xxe X-Received: by 2002:a5e:8e41:: with SMTP id r1mr24420259ioo.5.1617721919241; Tue, 06 Apr 2021 08:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721919; cv=none; d=google.com; s=arc-20160816; b=h0ntTSiD2iBa7nOu4ORo3PUw9VZ6lPN8nhuD6hYO2enojW71O0alDZsk31GAQ+FBvZ YMJLe0gAQcjiP9e172TNShBD/PADoewdZh9hKZfha/2LmDtZpLuvpYmXAVL80vUTl5Ne tAnGLNlKh1EQLoL0zYJeQPRrgL0q6XUlRfGC4B06NhjEXMqgWzxRXzyrRSfg0KOVOTdg PMs+dPHZTZqU3L4RcEEj3USflc+rsYHEsZVcnh6vLNgQEUQdoRRpO+DPM3rHSxvRFHZv JyI8N2Y5YLW4rjpTlHP6PXjCA9mOnNiYvbJPdACOGxURhgMe7od8by/7hMnFiS8C95Bd 0LVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=gefn2DRF/c8mvnspkmx+UtmiGg0K8qHxUAw9GiT4wuk=; b=D0uclEcHKEuOZpocdLH+R8TOPa8o/6DoZEicunD+UhYb4aVhqAPxO2iYHfABIE1M2g C1mhU09eOSMfXgStPkmGFRVFqtFl/MdJfDe/H304MSd0HNfQoBLOLmuQV8+2IdKuv9Pk 1i8tjipmWjNxl9SrvIXQB7KZAiJW5+CoQgoZ/M/CG1gS79PSYbN23QWhMQVPh3H3m+2W qrlT7ASEJiGuDxR6e2gWw/6fCNHiICB94UcsUO7bdyEeUysH76WUOluBrWz1T8J5/D8F IIURpA4r0LtTPx1D61NE+ldjlkxjCrPmo24uIMTcHIGSVmE+hpEHK/jbpLH85RWdCXwl pGtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eAw1pLo9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c5si18993799jam.17.2021.04.06.08.11.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eAw1pLo9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnN0-0000v5-JS for patch@linaro.org; Tue, 06 Apr 2021 11:11:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCY-0006go-Vl for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:11 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:36379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCV-0005GD-HS for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:10 -0400 Received: by mail-wm1-x335.google.com with SMTP id j20-20020a05600c1914b029010f31e15a7fso9487442wmq.1 for ; Tue, 06 Apr 2021 08:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gefn2DRF/c8mvnspkmx+UtmiGg0K8qHxUAw9GiT4wuk=; b=eAw1pLo9G2o94juxdVy/cRhrcd4vMu9gtITKWYYYgtMI9xfAmcMCBAxm3QO5QDkJ4R H0RPeQW3yM7BLJwD4/vJmzerDGdCCeoJUt3ZWtkCtX64htDPOojpdnxdq2ZdVxpXSnz/ 5P9gftGdA37Mcgfjqf6GEKNO9W0DztI7bB/eiH7MmWG6wUdrb3gKCMWgtO+VMW4Ex/f1 uNykkN4VUwPhftkccJwXRMXu+3x5aA68if0mzKVNFXWfSItbxg2m1nL8wc1ip5PyOEsv 07Zdy4w+XVMHSykaqqbRXzhwv23/7OKdUMl4AzaqDzO5AXw0EMB+iiQ0a89Qo9FyboJU i/3g== 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=gefn2DRF/c8mvnspkmx+UtmiGg0K8qHxUAw9GiT4wuk=; b=MvRBe9TYe/hBGoL1/nvi4RZw1jKAYFqw2xDl8DTftJGXw2vh5kUSdwIxTdytjBjxhD IJ/+WffH8qDy277O4sXwDbx7Uo9tdDnbt80p7caFTs9mjB8QPlc5YslQJWCX7n3S+NeE 8o9kEORPzQzQabB8rgXPMu9a9/pPbBSToNRKRT6YrUFWt4p3+LRGbVlJ1BTrVIRyK44/ ge/fBOANkHzwTzYbPmLQobOHW6Kmj1pZLPbhDRUjECxrarl1SuO7NP5j+l5UFvFCEq45 BL78bfaMIevE58o9wVVziYYIEl8VzjzOY2qe/NM1UTbypIHV1Ur1H2Zqm3u2F1dR3f9B 2b5A== X-Gm-Message-State: AOAM531Z9n8Kz7PnTP913YL18jHggktHrQ3I7RQ/Pu8ht9s8im8D5OZc bAI/ssHrB619AyvrEnU8SaXiUg== X-Received: by 2002:a05:600c:4c95:: with SMTP id g21mr4423551wmp.182.1617721265471; Tue, 06 Apr 2021 08:01:05 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q79sm3398247wme.11.2021.04.06.08.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D33171FF98; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 09/11] docs/system/gdb.rst: Document how to debug multicore machines Date: Tue, 6 Apr 2021 16:00:39 +0100 Message-Id: <20210406150041.28753-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell Document how multicore machines appear to GDB when debugged via the debug stub. This is particularly non-intuitive for the "multiple heterogenous clusters" case, but unfortunately as far as I know there is no way with the remote protocol for the stub to tell gdb "I have 2 inferiors, please connect to both", so the user must set it all up manually. Signed-off-by: Peter Maydell Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210325175023.13838-3-peter.maydell@linaro.org> Message-Id: <20210401102530.12030-10-alex.bennee@linaro.org> -- 2.20.1 diff --git a/docs/system/gdb.rst b/docs/system/gdb.rst index 0bb1bedf1b..144d083df3 100644 --- a/docs/system/gdb.rst +++ b/docs/system/gdb.rst @@ -45,6 +45,61 @@ Here are some useful tips in order to use gdb on system code: 3. Use ``set architecture i8086`` to dump 16 bit code. Then use ``x/10i $cs*16+$eip`` to dump the code at the PC position. +Debugging multicore machines +============================ + +GDB's abstraction for debugging targets with multiple possible +parallel flows of execution is a two layer one: it supports multiple +"inferiors", each of which can have multiple "threads". When the QEMU +machine has more than one CPU, QEMU exposes each CPU cluster as a +separate "inferior", where each CPU within the cluster is a separate +"thread". Most QEMU machine types have identical CPUs, so there is a +single cluster which has all the CPUs in it. A few machine types are +heterogenous and have multiple clusters: for example the ``sifive_u`` +machine has a cluster with one E51 core and a second cluster with four +U54 cores. Here the E51 is the only thread in the first inferior, and +the U54 cores are all threads in the second inferior. + +When you connect gdb to the gdbstub, it will automatically +connect to the first inferior; you can display the CPUs in this +cluster using the gdb ``info thread`` command, and switch between +them using gdb's usual thread-management commands. + +For multi-cluster machines, unfortunately gdb does not by default +handle multiple inferiors, and so you have to explicitly connect +to them. First, you must connect with the ``extended-remote`` +protocol, not ``remote``:: + + (gdb) target extended-remote localhost:1234 + +Once connected, gdb will have a single inferior, for the +first cluster. You need to create inferiors for the other +clusters and attach to them, like this:: + + (gdb) add-inferior + Added inferior 2 + (gdb) inferior 2 + [Switching to inferior 2 [] ()] + (gdb) attach 2 + Attaching to process 2 + warning: No executable has been specified and target does not support + determining executable automatically. Try using the "file" command. + 0x00000000 in ?? () + +Once you've done this, ``info threads`` will show CPUs in +all the clusters you have attached to:: + + (gdb) info threads + Id Target Id Frame + 1.1 Thread 1.1 (cortex-m33-arm-cpu cpu [running]) 0x00000000 in ?? () + * 2.1 Thread 2.2 (cortex-m33-arm-cpu cpu [halted ]) 0x00000000 in ?? () + +You probably also want to set gdb to ``schedule-multiple`` mode, +so that when you tell gdb to ``continue`` it resumes all CPUs, +not just those in the cluster you are currently working on:: + + (gdb) set schedule-multiple on + Advanced debugging options ========================== From patchwork Tue Apr 6 15:00:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415922 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4410404ejm; Tue, 6 Apr 2021 08:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxe+mG7aNitm3D6lUh+m0koAbBgWn8MR6b/K+0W33s/lYFvzWWzjGYmd9JIikyamwJKso2 X-Received: by 2002:a05:6e02:504:: with SMTP id d4mr24604481ils.125.1617721721503; Tue, 06 Apr 2021 08:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721721; cv=none; d=google.com; s=arc-20160816; b=kj0SLpFc1nj/AFSm/7IrPyCtclyXppJsiJ+g706xxbOMXJKMAX85DblxvAfK7I0F9s GGqi4peVg9Iqle4KApcj4Ee1VUINwD8Pyc/68wgYGJSCOtQZZytM8K38fpF2E/DNZ9m4 agfSTZpkOihDKRojDQPo3QbAggRVOI+pY0kO1hLxAKN8MTgKjEkoVXlo/bfzDt1Vkp7S mnDmhrznM+R0Sd9TJNYRapaHvPyDgDN3Fvo0osxnZ0t46qnL7+aQ60eog6q4eTUxwRZz 0sQfsZBx9US5EOJnuCuvmlpk4VQHd+YruUEeAvfZGtPgIKbkbdk4yzY9zLtSUGJ/ECz6 u1Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=PJghT1u+mp84Ea7Ui7/AalITSsrw07UnoILstoAi4rE=; b=IhXuLYtoABEl3bKsw8nvSceLAELwgp2acagK0tN8xe7tqt8RpvJzGja+qfZeJMJroq AUTBh5ggNaszzZuef/LWVUi+dDszvAKG6ZKGUIC2nvRslAJ9gtzVC8tUHUvO0ma3VffT SYRM0RYo1w89MHgC8B7mD5hFcBQCxW4LhzejD1w/FCFC+DRUz61zqkyBaPEP5sM194gd +lMMYureKU1n6hFlMPwLOUCR1px+S1pGei0/2M7jhZseNyixRjX7QLZeGSPZMXfFMEkv ybcOtS58e6AeuljK62XoTyEicXcQP9v3xFSQkL2/UCCMlzhXC7pfH81ipVewZrS2qj6u wxIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="n0/p/XQ4"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f19si18100564jat.55.2021.04.06.08.08.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="n0/p/XQ4"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnJo-0005iE-Q5 for patch@linaro.org; Tue, 06 Apr 2021 11:08:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCR-0006Vl-4v for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:03 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCP-00058y-8x for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:02 -0400 Received: by mail-wr1-x429.google.com with SMTP id f12so8600752wro.0 for ; Tue, 06 Apr 2021 08:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PJghT1u+mp84Ea7Ui7/AalITSsrw07UnoILstoAi4rE=; b=n0/p/XQ4vjcT7+oDY4e63rldkC8hu3gwPeD0KqKDy2ZNJ86FjeVXvtoslvh29oztc8 K4EOkBISVPNcqXoRwlirW37vgZYgdDkQLbXYMyhBoGtZdh2dw3IPQkXyCVxiA2RZN4Vy QtmODggwefvw80bBpkmif8N7I/zJlUFibor9w6DBrpmI3dfaSV257k8geP9JwPKQyBb7 orHpm8C2avASVhN7iCPOF5y5jUtox5P0jeYeVvHPm55WLWzR56jRu0ASpusWwir3bKOA TI5wL0luLMOGnRboG4rWJOksIcV81W4Wgto3xu+XiNRz8lMqIOqsssZSO3Wu2Vb/AV5B J7Sg== 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=PJghT1u+mp84Ea7Ui7/AalITSsrw07UnoILstoAi4rE=; b=kz0Le4dpQ1Hy6f69vvvmfHo9sUzRdGJplTNaru7LQtjk4WXRrJltzf1JIQwawZCsGM DgqwW/cLrFWBs9ndxOPDCz1JvSgQiD+eLvFu/NHFoYvBSBsaCn1bzlwHp50rLLjXxhGC 3eOE2lmFP4fhIbK3RnSIczgL1n06jljg80qjFAZpX77UC0feqZwuTWwGHtvspanQ614c N494oU0Kp/LLGrEkNG2idM9CALblFQRMoHSAFDPDxeEOEDZ4rN4Y4d/5KmBAYOpIWDGz 3ruKClakDeJl9Ng5kG8z6KhdBMqEEOgBrTt+HAgduMLS8rAKId9ZSlNVoAffZD9M3x2n aDZw== X-Gm-Message-State: AOAM5326C6tgKMOrpDzigz8Ac5FcoOCmjEWYWcmBwyUcgUwanA2RkVQU QKKp7E97IVCnK77BIhl1kSMOoA== X-Received: by 2002:adf:a15e:: with SMTP id r30mr17287378wrr.101.1617721259931; Tue, 06 Apr 2021 08:00:59 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g5sm33210970wrq.30.2021.04.06.08.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E9A8B1FF99; Tue, 6 Apr 2021 16:00:42 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 10/11] gitlab-ci.yml: Fix the filtering for the git submodules Date: Tue, 6 Apr 2021 16:00:40 +0100 Message-Id: <20210406150041.28753-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Commit 7d7dbf9dc15be6e introduced a new line starting with "GIT_SUBMODULES_ACTION=" in the config-host.mak file. The grep that tries to determine the submodules in the gitlab-ci.yml file matches this new line, too, causing a warning message when updating the modules: warn: ignoring non-existent submodule GIT_SUBMODULES_ACTION=update Fix it by matching the "GIT_SUBMODULES=..." line only. Signed-off-by: Thomas Huth Signed-off-by: Alex Bennée Reviewed-by: Willian Rampazzo Message-Id: <20210331073316.2965928-1-thuth@redhat.com> Message-Id: <20210401102530.12030-11-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3480d79db3..85b8e10b84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ include: image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest script: - scripts/git-submodule.sh update - $(grep GIT_SUBMODULES build/config-host.mak | sed 's/GIT_SUBMODULES=//') + $(sed -n '/GIT_SUBMODULES=/ s/.*=// p' build/config-host.mak) - cd build - find . -type f -exec touch {} + # Avoid recompiling by hiding ninja with NINJA=":" From patchwork Tue Apr 6 15:00:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 415923 Delivered-To: patch@linaro.org Received: by 2002:a17:906:5290:0:0:0:0 with SMTP id c16csp4412919ejm; Tue, 6 Apr 2021 08:11:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Bbo7+99x1zwBcQU4Cg71Wgh57F6bbIttxB9MPKAWiJOcFUqf6nwO7RfgJf9XIIW57pcJ X-Received: by 2002:a5e:a90b:: with SMTP id c11mr24291864iod.71.1617721896463; Tue, 06 Apr 2021 08:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617721896; cv=none; d=google.com; s=arc-20160816; b=bNg+xQEHU94Bbt2vCss2HsbHyngQNv7z6zcEUJKoRpYbLq8rXyh2qD7MuJ5nCp2Jit NMzvM1++tDAVMfXFABtgl9ZtQpKG6fbgQ/8586u4pTGOmrMibVNlRukYkh6dzng8bVK6 TBaVSzSiLaXDeuAK1DTtlJO/4eZ0VDs6MNyr6O4COlV48ACM28A03tCUO3mhFdr+pX0L l8kjLADO9FuWuEifMb3lZZl/M09F4EuoccZLvMzGYKHWf3Aof1zzNOk+c8EaZIKFRYcy k6K2d3g+vWbo/eLCiYX0HNoFFj2acV6spRlXcfrCEO6BBtgnP7W4EUXth7HxX3nUGb/7 T3lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=jnnC1v+YTFoDpFZg5HWtfvD0JLh97HNGIKTj56XCIFM=; b=tw8J9JyBw6SqGTm0wLjUgqDdJMOHztG7mjEh2kVPEZYbnmsFaRRBjPBW+OVtLtSdCc 04/9HxPWkDLVryT8XSJbgEjzPunRpW9Y8QBiZ4TG9MYFTurvUzdAgib2R7H4GkNTvoYf iEspkBOi/vrRIaYVHaN0Z19Wjtf3YqCY5nZF3u7Mi97arQ9ctyGR3tbbEDjH0L6dS/ya 35SbP5xI86pUUs8U8Rpm7wlk8Pb277PyoZ6IC7da8MS3GE3n321GUXsPkWbHK0/y/sJ3 G9XR+jijvtlvKyI37hFNDKyCie57g7Bt11IYC6Oiu0LfvDsnamizwGqb/fCJ4Oeg/fg4 N+jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dvhFkV8C; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d2si18433465ios.97.2021.04.06.08.11.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Apr 2021 08:11:36 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dvhFkV8C; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTnMd-00007D-Rn for patch@linaro.org; Tue, 06 Apr 2021 11:11:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTnCW-0006bl-DT for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:08 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:45778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTnCT-0005Ei-T0 for qemu-devel@nongnu.org; Tue, 06 Apr 2021 11:01:08 -0400 Received: by mail-wr1-x42c.google.com with SMTP id f6so8494513wrv.12 for ; Tue, 06 Apr 2021 08:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jnnC1v+YTFoDpFZg5HWtfvD0JLh97HNGIKTj56XCIFM=; b=dvhFkV8CvZP/GI6rea5ysh3E8PMOS5POxmyU5OFV2IGxG/FGjdmjBAqWlhoEStquuC jfTfQBiRPRncQspgn0MV7VzmEDP2AbmasKiO9r9rqpczl4b3OzAkwOsAdRdtkAszO7NJ LZVSDIVH4NZRKY6Y/VxTlDF2+FlYqD+tL2JJW5ESjT8uoi3iiKumg6psc0Pw2JKsPNnz GZCNadKMW3skpwx31HN8BvWu6+Vf5YBesGRfhxGv5/kIS4eJAETJ/2PqufJnB7FUb+nd sc/jkV0cy1HkKwgm72YQc4kTJov1UnzNx6KeRqTDo0I/Ws7WP9LADHMXuW3K5IBBKkjA kxKw== 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=jnnC1v+YTFoDpFZg5HWtfvD0JLh97HNGIKTj56XCIFM=; b=uHH5oXP699iEUms7griJcY8pAbiD809TlalcIBY2fDwtW8aT15dsexGW8icPjSrOWT e53mG/G3PnYcXcMcTpMii41UnYso0Bn2GLg2EVkFn8d9P+Ou0Re7+aUs8DZjO5WksYMX WUhdA6QGNP99dxhQ/Kf4S23wyeckRoACZXRtDvaxbdQfVpjtZ9tzAdeaIX+ANUjti1hE 5V6GZLKTL8y2KZUPNVAweO2IZywz+tTz/cHCDCpYGx8cj23/aBoTZRQIj2cejG8lf3bF YpNOXgXrduI0rp66A/ciWSfqbVw4Hu/SE+Ud44HN2s+kWHkWw6l37uxOWcu/cHJ07kBe 4mDw== X-Gm-Message-State: AOAM530eaybMLm80WsSBBw6h45+4UsmNdyRtBOrgcmEly65fW9/RZZy7 i+aEBJJoK9lMY6u+wMROb+Iwgw== X-Received: by 2002:a05:6000:1789:: with SMTP id e9mr35979591wrg.237.1617721264488; Tue, 06 Apr 2021 08:01:04 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u63sm3238131wmg.24.2021.04.06.08.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 08:00:51 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0CAEE1FF9A; Tue, 6 Apr 2021 16:00:43 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 11/11] gitlab-ci.yml: Test the dtrace backend in one of the jobs Date: Tue, 6 Apr 2021 16:00:41 +0100 Message-Id: <20210406150041.28753-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210406150041.28753-1-alex.bennee@linaro.org> References: <20210406150041.28753-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Willian Rampazzo , =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth We are using the dtrace backend in downstream RHEL, so testing this in the CentOS 8 task seems to be a good fit. Signed-off-by: Thomas Huth Signed-off-by: Alex Bennée Reviewed-by: Willian Rampazzo Message-Id: <20210331160351.3071279-1-thuth@redhat.com> Message-Id: <20210401102530.12030-12-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85b8e10b84..52d65d6c04 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -223,7 +223,7 @@ build-system-centos: variables: IMAGE: centos8 CONFIGURE_ARGS: --disable-nettle --enable-gcrypt --enable-fdt=system - --enable-modules + --enable-modules --enable-trace-backends=dtrace TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu MAKE_CHECK_ARGS: check-build diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerfiles/centos8.docker index a763d55730..a8c6c528b0 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -29,6 +29,7 @@ ENV PACKAGES \ rdma-core-devel \ spice-glib-devel \ spice-server \ + systemtap-sdt-devel \ tar \ zlib-devel