From patchwork Mon Mar 29 11:02:58 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: 410828 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3523145jai; Mon, 29 Mar 2021 04:06:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzZ6hZXxNAmgajXz5XBspLiqdH6yiw2UTh+eJEiBpQzBd+8KNHVQysEdJVTla9PHD7Mc9b X-Received: by 2002:a9f:2c85:: with SMTP id w5mr721289uaj.140.1617016005568; Mon, 29 Mar 2021 04:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617016005; cv=none; d=google.com; s=arc-20160816; b=Kav02H3zvWTTRy3EMn4R/AOmORsRlwRCC1zif4i0xvsZC2C2giQJUxpNEyJ/6OE5JH 6iSfLzlTst8TRhLrVUCMcVwtikv8fB0m+i7W3plQlr70AsMrg7imu0lIKlCxglsaG+Fg mHF6MjU3p/pqmfYJMDwpExefJNWUs1iZL0V35CDQbIJ4qKidBzJlw/+hsyHSV4P/VXJr ZbGd+76idjhPRwNDlrXos6O20b5gBbpUYQXg/5DJ3kQX7BAPhAmbLf4OXuYUM7obCm8y lohI160qg2JbGw1oMJW5IWVRBWVuqOABEiZdLCnHkwcjUTwkyULqoTeBfY91Z/R3R241 dRMw== 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=nH6nUSONdi6BpKhrQ0XSQEH1Lc2hXxt4waJ2mPlCCBI=; b=e56qieTy49QhkKx5FWqsq2w36t5IzxN3F45sB83iCYqG99l/ba11z9OCjPuIMKxTR3 yZzlNoHXUDiqH+1PNzfUTC3i1xvZ55UimaukfXn0Ujt5IiwNDaCYx11zzZ69zT/jJT4m r/kyyUdI62b+HY0rsa/UM8czfWM0NCdwPQaTTebknGwUKUkaD7hfGiNoOXi+guTdhcA3 wiDU3xnl8xD4qFC6iHdRVFF/XqgY6caKD/pOf4hqky13mLPYKS+6Apb6G2ROG1lR/ZpW 8WiqwEOgMJXGLWacy8MX3sbU13+5EJ1NtilwGDQUXipuo8yHXWscp/IwlRFs1KqKa8aF sXTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bEGsfg7J; 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=pass (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 s21si2849602uar.155.2021.03.29.04.06.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:06:45 -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=pass header.i=@linaro.org header.s=google header.b=bEGsfg7J; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQpjI-00032J-QU for patch@linaro.org; Mon, 29 Mar 2021 07:06:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfs-0000An-N9 for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:12 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:37835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpfq-0004hH-Jb for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:12 -0400 Received: by mail-wr1-x42e.google.com with SMTP id x16so12388406wrn.4 for ; Mon, 29 Mar 2021 04:03: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=nH6nUSONdi6BpKhrQ0XSQEH1Lc2hXxt4waJ2mPlCCBI=; b=bEGsfg7JsUo0jcN5fJybdL8bpp7ZsWFGAZKtxWJZHVbZ4tKG7VSWsB2/7mccyPTibh TOCF/L6RPuVL2+flt09rPU0sPj7gSLYlwDKYufr+AiG5k4PpGi6kE48Oe0pnfkMObL59 fOJb5ZbgocjOPkOy8p9qm57V5fjR0hA8vKffbMJ8aZwVrDF3rZXNbLrK/gI02esrCd+D UUmtVh4ysvE+Cq+oPXpZCLbtinGL8dJhG2R4v3CjGP1hF8zgVlxtxYh/N67GPKF8qQCx tdxb59eNSRXgCaNO+vKzFlLAMz7UqpCuGpPSz0WlAeLmuAVr1r65Tpo0tLv2gEhpwOVc zdRA== 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=nH6nUSONdi6BpKhrQ0XSQEH1Lc2hXxt4waJ2mPlCCBI=; b=QBRe4T6tZXHt2FHjywpSL4VI5k4FlEXHhNCh3bcS2eL0g/5mnMZYn3vrN4JlVp4tKK cuor8CuKBuVggHnh4QCBvUG4GAujHjDX/TA8hi4C6Jx0o+CRPcyA4R3Di5mwSXqS/Xdu lyCIAIy/k4M2FaH0XNLyuslFus2aBfecl2KnekUGszQHjs97YMl+6HIoSlG1jzoWsTfb 3OsFexB9nwAWqklWSZwpS6beGUA98LW3jihYm7mpT+g1HXCz03NUXDUGmk93Mysm5Taw mGXQptouOeQCJPjRUoUfQXke05gl51mNBk98UFbGdRInon4x+7dDLuHq1CAZEEazy61E jneg== X-Gm-Message-State: AOAM532syfhb1rshEdq/hBQxSxuR4prll1EMuwSzWxR1TNZrw3SoiahE cTgnzIuxOKNKTIlFCwJlN5vLGz4Ysiwo1qDk X-Received: by 2002:adf:edc3:: with SMTP id v3mr27047542wro.79.1617015788969; Mon, 29 Mar 2021 04:03:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f7sm23017470wmq.11.2021.03.29.04.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 871611FF87; Mon, 29 Mar 2021 12:03:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 1/6] tests/tcg: update the defaults for x86 compilers Date: Mon, 29 Mar 2021 12:02:58 +0100 Message-Id: <20210329110303.15235-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-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?= 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 --- tests/tcg/configure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Richard Henderson 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 Mon Mar 29 11:02:59 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: 410826 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3520719jai; Mon, 29 Mar 2021 04:03:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJCuUxcGbbtM29nTgS1RBEzSd7xXpGy+F+k+IDpUT2bXxTl5qB6k7TsQ6BWMO+et2eMzQB X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr28486066edb.104.1617015820323; Mon, 29 Mar 2021 04:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015820; cv=none; d=google.com; s=arc-20160816; b=ZspHwa0kc9AkBwfMdP6MSvpldHulvR7ykBZ3V/tEQSSR49mz9MehLIp2EjX0eBd24c GhJKAdPVY7KGU3uX9F49UL6w/TF2jbBuhF5oRI0ANJxcyGY6rMyUq3DgECyMH4AdFGE7 S/cjtCjEe0W92dULgqC/gY8Xlfrwj5N5Y9HTzHtWzmE6IECnKWNYFZRNtaQd6Yz10r8+ dYnswi16q/79XL332znNBC6uZAU5DaaPWcJgubwZiDM12pEix5TGuE3llT62b2lGB3h+ oxIZh8tOlNqwYC16lB8c5tYWlbmi/TpmLJUrClm+OT9ZBmEnvyyIERUwGOH5e0nPzhlZ b37w== 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=akBhyYj0JdKi/XVZUZPWSNnrTT/4CNaLSZQB5KZh/yg=; b=xKayf9ruG7g7ff1jIImoI0dCK8jakX2HcjthHLjdHZlJd7jzBMPUXi+DZXKtpWLZtf uCTn0PPDRM0Zo8uOqHl5xOCWZxTEWgf5hmo08G7yAHHgrSrey3b1L6Vu6T0JXgQcSmox ncBcME5Oc3vLOTQbSYsrx2GdYCG3v3WxUEeGGC14idhEjLJn0xh7Sqfc5EWjozBRvAKM pCwEry20a1NDqiQceTJTIyHWJkFWANCp2A6xg+4JDwAJh9AoSCW5C5jQ0ex5X1CkMH+A mav6veR0vDSRleSC1B6GN+HOheSfzBJE9fMvHT0hbleo+j2C4EPj66NyvfkmrFLY6yKd OZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=job2IUGM; 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 r12si13118801ejz.5.2021.03.29.04.03.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:03:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=job2IUGM; 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]:50118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQpgJ-0000BL-AV for patch@linaro.org; Mon, 29 Mar 2021 07:03:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfr-00007K-8p for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:11 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:41730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpfp-0004gT-Kt for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:10 -0400 Received: by mail-wm1-x329.google.com with SMTP id t5-20020a1c77050000b029010e62cea9deso6462018wmi.0 for ; Mon, 29 Mar 2021 04:03: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=akBhyYj0JdKi/XVZUZPWSNnrTT/4CNaLSZQB5KZh/yg=; b=job2IUGM6CkpG4S/GDtE0PpZ/ka/EG+VN6llVK+YgJnw6KX3lfDPGzGLmSKwDGK6xd zbqoZcV4x8D4v177bn4u1DlbajuGFgcynDJhdkWLQY0B8zEY8SzzFI4kG+E3EMn9n4b7 rgntKiJ66oJB5Evg/pZZeHRzC4fT0j6AuRIlZ6t8dP1dKXwQns9SMiebp6cToH0SrLto RTA7ver5+ILkqIdo/rMepUgFWAzvCmz4Hu+RV0GTfUNuruQkMIndLkjUh5y+WxhEWRDn buve31D9zCmytTjmQ76wVAIG5vh1pXlvKvC71YmCWsu9oWQ2j3X6F7cGSzLGuBkHZUPL GHGg== 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=akBhyYj0JdKi/XVZUZPWSNnrTT/4CNaLSZQB5KZh/yg=; b=Ss9tW2JClbS8b/1Z650Qnm/VgcFbwnrfL3KQCcPqnE5uriK3J/PTtCIpMrwXU182ou aEch5elEfcghC3IPaJib3/ClkoPLcLGM7q+xjeq1kjRQBXaZQG2fVQhJxQ0ROjaj0FPv xnlPIEMl0aMBnKMLtzieEQOvCOgEcRLon6NqJ2NYEMwjAuQL80BY3lAbor1/52kqxd8n gEOcYL+qqmrqPSRTGjNLJOGC3fLuOKURKdZq0EdQos+aAgQHCWCChtF/H7WjE6BvfQ5D bqQM3C2X/mMEKGODNPDY0DJuv4aT87DcZ6iifLvBVJuzfuASFAgHrIpVob9zPyAWCHGT TAHw== X-Gm-Message-State: AOAM531+uF5mWY6D6ru0kRJARGv1N3zN/j7sNrWRmTTTm2V2fqMeQhVX 7arywnc9bkFd6wlU5ocLDUdSEQ== X-Received: by 2002:a05:600c:2254:: with SMTP id a20mr25291003wmm.115.1617015788247; Mon, 29 Mar 2021 04:03:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u4sm30661762wrm.24.2021.03.29.04.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9C9FB1FF8C; Mon, 29 Mar 2021 12:03:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 2/6] tests/docker: don't set DOCKER_REGISTRY on non-x86_64 Date: Mon, 29 Mar 2021 12:02:59 +0100 Message-Id: <20210329110303.15235-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-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: Willian Rampazzo , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta 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 --- tests/docker/Makefile.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Thomas Huth Reviewed-by: Willian Rampazzo Reviewed-by: Richard Henderson 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 Mon Mar 29 11:03:00 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: 410825 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3520701jai; Mon, 29 Mar 2021 04:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl/CcRLgnw07DThTFxG2uqDKwCT7Q3yCfYj2oLUCJSvaT3YDkCAiQTU7HEA8GBT1V3PZRX X-Received: by 2002:a67:2f08:: with SMTP id v8mr9926751vsv.46.1617015818316; Mon, 29 Mar 2021 04:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015818; cv=none; d=google.com; s=arc-20160816; b=f3Tc2XXhHwFMsi5NBvG6CF684PVlJmIJlmdTsY4AGNHp00iyK8SCqpG8t/5vHGlVzf m9zeurgp32KdfpSRIzZ/k/4t/wi4pLmfwOCaGVbtFtyngCeScax0yAFvLsf70+fAIMfF wxZSXr2PaT8/aig+WqdNwUMUeDJuQ6Yh5yN5vMbMIs/2W1tvSvCtycdjjtFQtfYcVszN GT33LxCMyJcKvR/ULzQ0R31cldMy6f0ldL89hwANuzZqlz9eOnU+U4gXjE5xKrEA01y2 HqRtlFGEtgZ7pqATy4dduzSo4EKZI9zZTVf1EWdKsopiq92GNaDRDupc8icBAmz96E69 yMJw== 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=AYugguvZY758PcKs/PdSeUMvYaWOhfGF5y8PoXI3cIc=; b=h8+T6k11hyPklnWbI7bVqbf0NPI0PFooedm6X0+3OTslM8R26CcOLdR4oQqmi0SKPR zvHNG0QA/1DEwze/benoxVpTPXX/F5UvpBtWX1IlL6+gm7A0V3XGwRXwatBAkPSDp7Bx 258VhqRNPY6Qzm0jbVYVU5zjA7EANBoKllvgAuvk/5k1FynyVb2le+NqFckqUmk21tfg +f8i1sfKtsfB2/p0PP/9KmY6aXmK1wgNHuV/qu+ZHo6DV1JEXFxaz6y/sLGGXSqixN9b 7FcS0qbetw1bTwNt23EB0wOoJXKJUiYcRjumSo7F6PSN7KN3ZNisTrcuHgtAeM2IHa12 6R+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LBb1HsCu; 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=pass (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 r11si2722023vsn.390.2021.03.29.04.03.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:03:38 -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=pass header.i=@linaro.org header.s=google header.b=LBb1HsCu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQpgH-00007D-MC for patch@linaro.org; Mon, 29 Mar 2021 07:03:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfp-00005T-NZ for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:09 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:36622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpfn-0004fQ-V8 for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:09 -0400 Received: by mail-wr1-x42c.google.com with SMTP id k8so12408018wrc.3 for ; Mon, 29 Mar 2021 04:03: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=AYugguvZY758PcKs/PdSeUMvYaWOhfGF5y8PoXI3cIc=; b=LBb1HsCuaO5dYU6L2NSursxxGaKkAfOS1DuvjQxqlUd17JMFdZIzh10PCIIP7/cRpZ F7WLxSjDyDU40rfE7QnyzO5VM1jqKcsSkQKQRjSL/pHUItMi9GOFKS8Cd1I9HgTyZ+66 hAo7LkeslsSa7lz3RrmhT+VcfJL3003CkVzqi4VZd5MHIlVgHTpqLXBENlrhxP7qunkh pV2wrrR88G7H/729COfD7rkrfnnJQVkUImPw52d55LuJ6gYUsV/4XT7Ddm6titHoAc3c isRvSotxB09yzz5KRxrlvex1OtJGgOkm0ptKk0UJ6x6RKRlsG6Akd+uWZDSsznMUPSQe kOgA== 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=AYugguvZY758PcKs/PdSeUMvYaWOhfGF5y8PoXI3cIc=; b=BBBh7dLdoesiyfoV9Xi2KaqnHtjElY4S8KSCHhWYw5e0k6ZWOw8cXh+esljvuKN5VL AJhJqetPg/4z3b0VRtQpyWSKSDtKjeZ6HkqpX+Q50TlRbMWTiYVwRLgxkLdxvoQA3u+H n11av+BKaVZuQ+LTfSKEDRF7qhHwepW1E3YnZv2q11XMyx0Qzf6M3hERkcKvkZi8SsUE 4/OQBZsuEO+lsur2Y1BC4tDoUrRbZ87PXNm9WvpftytQUxxEFERR3Ge7rXP/7Ap2pBz9 1DBwBbqHRi8gxq66zjV9cdfTqgzb76iN7brOyErJC8dXUPFUuQuYNwddeTPPrw8nu2tK nWCg== X-Gm-Message-State: AOAM533G/XxYUOambcNL6Bui8ri+Qh/D7IWlLxF2BU2LQDmqQFZFZipT cuwmnIljYz8d960o/QJFXicb434fovnhnP4A X-Received: by 2002:a5d:58fc:: with SMTP id f28mr18632423wrd.180.1617015786084; Mon, 29 Mar 2021 04:03:06 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id b15sm28672679wrx.73.2021.03.29.04.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B42A21FF8F; Mon, 29 Mar 2021 12:03:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 3/6] tests/tcg: add concept of container_hosts Date: Mon, 29 Mar 2021 12:03:00 +0100 Message-Id: <20210329110303.15235-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-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: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While docker is nominally multarch 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 --- configure | 2 +- tests/tcg/configure.sh | 27 +++++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/configure b/configure index 535e6a9269..7df7750a14 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 Mon Mar 29 11:03:01 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: 410829 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3523674jai; Mon, 29 Mar 2021 04:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaA9rBNie/o5UVNq4rKuKztsPZPoBrcxHGoqzTEnPsQw9WuoByAWD9KvJh0PQGo5JJ6Oza X-Received: by 2002:a05:6e02:dc4:: with SMTP id l4mr4736216ilj.286.1617016046110; Mon, 29 Mar 2021 04:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617016046; cv=none; d=google.com; s=arc-20160816; b=cbl4WkmCnkGaRbYB4ALxNIDA34bCDFbDrx8TpIxOt7PFeUOk7JjsC1KK+cJLJfBePC ZIuIs5d4C7AuqWLsMnszXEmHKbqKFqV0deB7hilgpeCakeVXFiJjo2z8f2OOQ/1X22Fq LVakn5Ty2yLu4d3zf5bV6NDUGZlNGIAgyY0/P9r4chH2f6gCHeIuG7RKXMFT4hpcfrcK U/V5u4ZQ++CvgPluMjKOdASojHGHbmdgTs8TA0Ao747MH9usRxhwMHWADcwS7nmmkZT7 dA0DdByQGfYLzKv4QhxsNl93aGUnIZ0sa1TRYs9SK8BVihApZG5AYg+Fo+pepHh7v+Kz EfnA== 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=HDXuUnUxtCz/PU0/mLdc7zRzMRtv8NDpCUEdED4RHtw=; b=Fc/FzF/qcFXOMu9t03QEitmOv1UD9m4SvUNphqZ3OdNsu1JgrLdx8Gjis5x1gm0N9N xxvfa7sy+Qrny8VD/pcVKfPpZHTylsFqRrDCSimJPMey8e0KsU5kP7E4Oly4f3+SpMwL OjEzzjQQy7v2hpp9rMjNq04ga4CxEb6vqXutotqV52d/iavQlNhV7Ehdda1YEQ7WwzNb /Wh/rJcNqveh7Cy5s/lWd4NmV10iCHPI8GvdMoZoEIg9bX4ILDjEcX29oPMEOiCq+v/S 4Z+bp/g0XyRCZitH0CKn0NRD5XctA/RHqWxhpR0bi9/4U5Sc00pks3PWa1+CKDEJ7uCE DYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SRGjF1v3; 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=pass (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 c10si9975241ils.82.2021.03.29.04.07.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:07:26 -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=pass header.i=@linaro.org header.s=google header.b=SRGjF1v3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:56606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQpjx-0002yD-JA for patch@linaro.org; Mon, 29 Mar 2021 07:07:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfv-0000G6-Hs for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:15 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:35553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpfs-0004iE-47 for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:15 -0400 Received: by mail-wr1-x433.google.com with SMTP id j18so12405629wra.2 for ; Mon, 29 Mar 2021 04:03: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=HDXuUnUxtCz/PU0/mLdc7zRzMRtv8NDpCUEdED4RHtw=; b=SRGjF1v3H6CgyfPz4bSa1CmPTwznsVH+twPwV007Y5tpoNWFhiyS6sh8N65l71/1sf uIaSGdWWvidQG8OKmabmgJdHmN0qmsXcNQ+D98M5FpnSN9nRYiT0qEO9pNTynwj8fvro sFaJcxh4rqj7VUvpnc6uoEc1cmMC4P/eDgOSI+BplZ66Xy6WEHQzZlpU1NzIy5J6PMT2 1Sc+YnrMmFoR7PRINsoQDp7iXztKBONANR36f91HQYEMyjMgDjqmGuMJAB3preH6Rchk +Cd6RloCIdxuSZB91cfrp09RuEUsRTuBp2MofsCG5L+kWB3swOiDOD0UbC8LNN5z5Vee Qwsg== 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=HDXuUnUxtCz/PU0/mLdc7zRzMRtv8NDpCUEdED4RHtw=; b=m7Odqhh7aIt9kNLa/C/CKibttz53wc4mVXQnmjABcrfYJxpsLY6LQuOh8w4lXOCHSj sKk6dxqyJTWK7LAMQEayHN3nWFhKxYnIdwGaPnHY/hOMK2H6igs5EfI4O6vE4+7qLPUW 1f5bzSRpUjb51e0x1+VXy+ahdsVGVCYpYC5/8mFJMzeE9Dx4e6kviRRp8U2+IcNa2Dch jCLGaPVqwYCxe8th+Kz0xCT67b5333Jis4pKnqpqrIuxjppkz0RoNJN2qZ9VeTR4T3kD WIC/hz0q9Hr/n1TM1/5SpcFExPJKQeUdvV8+8tuqk/jiMXobGjt+WsXvgIIs5L0hLeka Fqqw== X-Gm-Message-State: AOAM533Nwn/fKe0TWtB1+FymNWwIm58fPl50K14ktkNWN+YNSKrnq+Wz aqBSz+SzK5iKzDLIs3hOM1A+LQ== X-Received: by 2002:adf:f307:: with SMTP id i7mr28011769wro.142.1617015790727; Mon, 29 Mar 2021 04:03:10 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id j123sm22080556wmb.1.2021.03.29.04.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CACB41FF90; Mon, 29 Mar 2021 12:03:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 4/6] tests/tcg/configure.sh: make sure we pick up x86_64 cross compilers Date: Mon, 29 Mar 2021 12:03:01 +0100 Message-Id: <20210329110303.15235-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= 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 --- tests/tcg/configure.sh | 5 +++++ 1 file changed, 5 insertions(+) -- 2.20.1 diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 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 Mon Mar 29 11:03:02 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: 410827 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3523069jai; Mon, 29 Mar 2021 04:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAVMu9QcwHQVCUn3VsB+qSeulaFbT1nD20vLshTNC17pYrGeA6Ywj3H1+FyflIPkrP7OmF X-Received: by 2002:a9d:21a5:: with SMTP id s34mr23062451otb.240.1617016001100; Mon, 29 Mar 2021 04:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617016001; cv=none; d=google.com; s=arc-20160816; b=cLNOBgHYk9RWvGS2UssKKuu+fj60tMemy1GcnjhIC8rMBomi1NVtCI1eWCAA1eJnn5 YvYugSiwd3IjjAZoJAjcdgBglYY5tiQD+/eQJzJ3JnoxrUr3EYXT8lSc5IBRO5E6+u3P Iw7V2dJqClALPFF3zRwvtyqi4LJOIZNmMSqEN9t7eC48CefMxVc7TEkWaxGKE+X2vRU9 +Ns2LFLRWU/H981tfy0A2E3J9Gb15lddAHRrQ/VcWSEtgIZVKvBUgDPTs+BFEj7hffMZ lezhHd04OGjYQov1YkESjUuLOJ4b1GXQAyg8IZuz2F8l95SMqM2ok9JnBY7n/2/avZWJ OlpA== 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=0fyfWdwzjylGxvKnzivZ43UVg+YqR6Th9DTQ7YDVM4A=; b=u+iU+ww9TAPCfSHInVoSPA9LCBjZmbqe5dMbPlFs5VVUtVHsfmtmfCLgaG5pjPL94m 0yeiu/6MrlEAkpifMtZTa4/fwIl6qZkOChNvFO8hrOTcSgP3rpws83gbF27PUXEXr9rn Q6kQ2D0KgPASkOVZu6C5DOgICTfhUrUDuytGj7Nx3YrMSWOVpp0KNRo1k6opJ8y/i5t5 kYoKH3T3tk+o+S86jmhtJ0lG2JG1o02C1fsSfj3ZUj8I5mDUa7ExD+6kKp2kZMiDUhwT ekdi/YFmkaW0t3okutvOklcqVG9DkVh8wlHYR0Rclhf7BfKP+MuRom2vZHaVvMNmjC3b CsKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HR00xf2U; 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 d79si14009801oib.82.2021.03.29.04.06.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:06: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=HR00xf2U; 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]:56468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQpjE-0002ul-IJ for patch@linaro.org; Mon, 29 Mar 2021 07:06:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfv-0000FJ-75 for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:15 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:43695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpft-0004j4-HA for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:14 -0400 Received: by mail-wr1-x429.google.com with SMTP id x7so12385909wrw.10 for ; Mon, 29 Mar 2021 04:03: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=0fyfWdwzjylGxvKnzivZ43UVg+YqR6Th9DTQ7YDVM4A=; b=HR00xf2U+c2OunXJGgOQYED5dsT12DFQWHFxfScwwCIfio9VVhrubb4YXdlPxFmgXG qb35PQqz+lN8v6GdlJOf4pBnWOM9aOTFfFgFS/yKr11YiEZg+vnZckBUKHW1ZAdw3Y1N YjgspKoq/mihuVChnSoy5UHADUtif4CBRzx32gkcD+DmWpBQFANm7aRZOQQs3DJ+XOxF EImm0/kmpWoi5FAWHYqfNgpNzKNoYAMePvBIj2RDJHrpnFq6mfzdehzZOnTpzOKge/p5 j2qyq3ksThbqx2ffcfUubrAzg31Jxp+DLv5OqkDsgBNWfvDve4kqSf57mfene2W9soc1 22Dw== 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=0fyfWdwzjylGxvKnzivZ43UVg+YqR6Th9DTQ7YDVM4A=; b=pHX9okPyYm7M7OEw8glLTitxDbjBVGuty3ID4mtighxL1j/DiT8pAkuwfxDLNq1okG OMx9v0RnlLuJajUYBQInXOWM/4JIgCDAdQTufupNLkaCxzxXQFZeWWTtBtnyYKHwyXXB LCgjZ5ZUvTCYPkaCqASTgpNhuAabRdj/o4acOBUgrH9WABhTCvAtKoTEHSFpil/ym942 sXsYMMVfGZpXgLhkjeRJWfjhrkI6v+lGhGnzuytkiqjNxyrhnW17Ldrgk9kfrBGqbtLH 4SUa33R8SpVedbdcyxWXtacAG7F0rerhZG872ESgWO43JkjxnY7mhxlNKOplugFx7+wj 06iA== X-Gm-Message-State: AOAM530Bfh8eGv3UKSkUIlIJM3KapyWxn8EGZvmRI22xaDz+UQNKLdUM 50TXRA0z0qpKzQeI5R26faIcWw== X-Received: by 2002:a5d:6144:: with SMTP id y4mr28020622wrt.203.1617015792188; Mon, 29 Mar 2021 04:03:12 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q4sm23995496wma.20.2021.03.29.04.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DF6EC1FF91; Mon, 29 Mar 2021 12:03:03 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 5/6] tests/tcg/i386: expand .data sections for system tests Date: Mon, 29 Mar 2021 12:03:02 +0100 Message-Id: <20210329110303.15235-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-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: Paolo Bonzini , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , Eduardo Habkost 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 --- tests/tcg/i386/system/kernel.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson 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 Mon Mar 29 11:03:03 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: 410830 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3524934jai; Mon, 29 Mar 2021 04:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIXqUrBLrozK/tNtyrKSqHBoYZNGww3RbGo5Jp/ZSzfZS/BV4UQronyr20unM4C1F+gW4V X-Received: by 2002:a02:53:: with SMTP id 80mr23251763jaa.96.1617016151631; Mon, 29 Mar 2021 04:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617016151; cv=none; d=google.com; s=arc-20160816; b=ZxrTgr6uBYVTCXVfF0lnxN4OSyk1Nh+F80CVRCjLapXo3GdeCig6WaEkaglNCgJnVL l/t41+Af7pHGM/u3SmpV/XP7R4gzXXL3nmpnAb/i9L7s9DDHRpHgCEVApyrxKfDtB0Pi uxygXSoRVEIvz94BLCcKQIXUeoY0S0eoq+shemrwvDdVGgJYhpdkH8BmZQf3vYxWqq6C zKNkiaH+n1Rzg7OqR30FAtYWP6XniEYrIe3S0zCAWEgvP97FxiqyKE0Vn4sSeezfOIrJ 9OdNoBWwYZQHfO5RUGP2TtGJ0OkvMRy6uOzSFCaf1PyQffCfilG0VA4x5zrPEM1l7oVF KJDQ== 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=BTPxFERU7JNP+dRRV3lyj7Z5hAmDZqNFOETfABGGYiA=; b=birud7KMazTXGcT60/xyD+ary799OeLslrcd14hjQ1KO2d+y21AEALAP4BNpROPEYt doSQqC0F/kGQ2uEXpXmjokilp3KyOsPIiqgcSZ3unglg+QoNBsa8kjdiFQ7FK1F3yueG kQwZGYd86XdSfYguIYHTyg4T74kmTcvEERi17fUIGGGj/k9HCsJcc+bRDYSKHo3jw8jI XqpBM9IHZgtlNeuHYKvxdCzpUJpWPG0wRiJdNZYZHc/Ujp3BQakPzE0KL23h4r1PxcSg NAqTEwqikxqWVbYjmgyH73bj+fRUSrqg2X2mxRe3NmeuoCNj2fQl4y1wwH/l2Fd3uzaj 7ijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=T+4Cnz8c; 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 w12si12598644ilg.43.2021.03.29.04.09.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Mar 2021 04:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=T+4Cnz8c; 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]:34830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQplf-0005aI-4U for patch@linaro.org; Mon, 29 Mar 2021 07:09:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQpfv-0000Ga-VO for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:15 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:39844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQpfu-0004jl-9y for qemu-devel@nongnu.org; Mon, 29 Mar 2021 07:03:15 -0400 Received: by mail-wr1-x436.google.com with SMTP id e18so12400449wrt.6 for ; Mon, 29 Mar 2021 04:03: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=BTPxFERU7JNP+dRRV3lyj7Z5hAmDZqNFOETfABGGYiA=; b=T+4Cnz8cTi8a/W5kriEn/jvoMXL3wa9aVK55x5JiDxm7bxLSaKDHDpGLMB2H86jIaZ 4puNlKbZl6wkxJ2P09sk2o6O1xQk4MZ0EOWludd92zyPc3hTQIZjvHJefOLBB0NtX4sj gAHkf9cFoRjShO0BvWubE8KzWw5NkomUe/tcsUZgy8MWjyZk83jed+2aRm/9wGjR+x4L 7OZeLzIiyxcZKeW8OeLPJ7oIXqLufMx+zyC8VyC5Dz0zJG79ZixTMBaDQz7oOIDegFbH tbUPOltl9ocdo8YNQRy8W0Vy+/Fi77hLr8bp/T8oxS0JSuxAoZlk0ECZXnVcNlXaL7NI +gow== 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=BTPxFERU7JNP+dRRV3lyj7Z5hAmDZqNFOETfABGGYiA=; b=l70fUwiy3aNSC96xyg80Bnd0WY08GbzmCgl9TBXWATTGl4A1Iu5DJluTV8vMrlL7dY Qj2/UCX8ZS0SX6jUyH9K8Bz6L7KkbMW4gdvHyz8/cN33ka5oIvm/OEhCVrXsyJosPuit t6Ih5jEbmL7sZbXVAUW+VDPZyVETOzgzsTEPOoa91VVJ2GOG4x29kqG9Lju+vU/gjZNR s/VLrdqpZyqeGsOXdR+uxIA/QW8O5bh+d9XIg7C6SJzFCHR3NnURAivTQjXpS8oo77k9 /Gjs3Fjw8rzsJ2F7KQaI4k5IJYZ+H7AClA6JDwyniMWtInFtzOYCUfKtMogaK9NvD9pX mlGA== X-Gm-Message-State: AOAM53281/4odag6LNyD4boKhcHluvf9zsUp1eByddny+gaz7LLIME2r nlXSPG9aflPCyHyEaHCB8xfjIJlLG1Fmvzex X-Received: by 2002:adf:e68e:: with SMTP id r14mr27608041wrm.273.1617015792968; Mon, 29 Mar 2021 04:03:12 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a15sm19297187wrr.53.2021.03.29.04.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 04:03:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0136C1FF92; Mon, 29 Mar 2021 12:03:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 6/6] tests/i386/test-i386: try and correct constrain 16 bit call (WIP) Date: Mon, 29 Mar 2021 12:03:03 +0100 Message-Id: <20210329110303.15235-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210329110303.15235-1-alex.bennee@linaro.org> References: <20210329110303.15235-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: Paolo Bonzini , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , Eduardo Habkost Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Newer compilers complain about non-matching constraints: test-i386.c:1393:5: error: asm operand 2 probably doesn’t match constraints [-Werror] 1393 | asm volatile ("lcall %1, %2" | ^~~ It seems the plain "i" immediate constraint is a little too lax here. What we are actually dealing with is a 32 bit offset into a particular segment. I think that is "Ts" (Address operand without segment register). [AJB: however this just seems to push it a bit further down the road: test-i386.c:1393: Error: operand type mismatch for `lcall' Inline ASM constraints are hard :-/] Signed-off-by: Alex Bennée --- tests/tcg/i386/test-i386.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index 18d5609665..6d8aeccfb5 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -1392,15 +1392,15 @@ void test_code16(void) /* call the first function */ asm volatile ("lcall %1, %2" : "=a" (res) - : "i" (MK_SEL(1)), "i" (&code16_func1): "memory", "cc"); + : "i" (MK_SEL(1)), "Ts" (&code16_func1): "memory", "cc"); printf("func1() = 0x%08x\n", res); asm volatile ("lcall %2, %3" : "=a" (res), "=c" (res2) - : "i" (MK_SEL(1)), "i" (&code16_func2): "memory", "cc"); + : "i" (MK_SEL(1)), "Ts" (&code16_func2): "memory", "cc"); printf("func2() = 0x%08x spdec=%d\n", res, res2); asm volatile ("lcall %1, %2" : "=a" (res) - : "i" (MK_SEL(1)), "i" (&code16_func3): "memory", "cc"); + : "i" (MK_SEL(1)), "Ts" (&code16_func3): "memory", "cc"); printf("func3() = 0x%08x\n", res); } #endif