From patchwork Wed Apr 20 18:08:21 2022 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: 564024 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp4436609map; Wed, 20 Apr 2022 12:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbzPblEHt0PgOhoF5WrIBRgvxQkhkNVjvf9L56iz5813O/KmIq992WEpqkh4POt9/tq0Ut X-Received: by 2002:a25:841:0:b0:641:960f:c47f with SMTP id 62-20020a250841000000b00641960fc47fmr21105667ybi.607.1650481395469; Wed, 20 Apr 2022 12:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650481395; cv=none; d=google.com; s=arc-20160816; b=XAnGlFrlVGcqTiL7WfFvmOubZgFPBGt05kn20NSLwoSPv5eGCdBA40fHGljPJejF23 ujnK/bH2QDPR614v1RDZyuNjWQ5yrV9Xzn5qMYp72sYTz5z8wwYe/LCjNwR5ZG8ZiCEM C2NDwCuu++oRwaHd7gDcMUOTwLDFLKvg2FRiiFWqjzMO8x5NweBKLm/3WQA0cCKfuRlw Hs5Q49Sm5EdTli87vdnY34/yLLv2yBOvE7FMuXeQva2WJp0vjoFlUT4Spc3iq/Nteuzk ajyyyWs5/zfVjgAEf9yKcXLgt19sXErGjsWRolS2RxyaEPmcEZAjtkRHm3KCizswP/5/ rFYg== 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=Uem0wyrZ6v+AcRDIlt17tGMx1nakk4KRW34kYReCC3Q=; b=PFTaYdHryEyub7f3nRNUfZcNfxxEfUixAZP03/dSdlcOi67qHb+C7fo3tiYDwZnCUD P+iLxGx22W/lVEvJNLLxPILNE5xTrtmiasZkPa7rLeZWx0kQo88g8/gjr9r6tmr9BaSH fzJnTTK3ceHyNoHpr9cniB7TxIpJzc81RGzdY4uuG7po5lDB9F79c9LdAnG3I/MDOxu9 imyNQMfG5Hjz7Rl/346jEiytoxarC++LyEYDSOealetadL6KYnzYQpwvTdKfr8gkI0Wg zDdeVQhXxYAt2U8gwd0u8rlmlEi0j4fXqLB5NNXiQnTtlNrW2RULA0GVEBYVG0DQQyTV J0MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Bug9Gxf+; 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 z7-20020a818907000000b002ec35020aabsi632244ywf.286.2022.04.20.12.03.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Apr 2022 12:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Bug9Gxf+; 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]:59852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhFbe-0002Af-VW for patch@linaro.org; Wed, 20 Apr 2022 15:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhEl8-0002Dq-M1 for qemu-devel@nongnu.org; Wed, 20 Apr 2022 14:08:58 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:33344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhEl6-0001b0-DQ for qemu-devel@nongnu.org; Wed, 20 Apr 2022 14:08:58 -0400 Received: by mail-ej1-x636.google.com with SMTP id s18so5288869ejr.0 for ; Wed, 20 Apr 2022 11:08: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=Uem0wyrZ6v+AcRDIlt17tGMx1nakk4KRW34kYReCC3Q=; b=Bug9Gxf+ke8GYv3S/u9QOVvAUsGT2zw4jyJR1ut4jN3JYYF5VewHAcj4TgJ8l6aYCz mDdj++WDV75IQqWTgdOZTl7/CxmDZbdu7PUPymsH14YKLmgCuUoa5F2WJm/CMDVk5CPu GS2EfYNC5gMFNGPHrMgp3hNDgikVhey13r2DgOUkSp+cqiDfXd3CzlPW1H1btkFx997a p4cT95/1P9ugBgx+eXmN8XoiaxrTyX1NWOWwPbZutO6wGLTNicXyI+yP9mO2nS1iJ2+c usuAGadOXsgmkMDcUzTwuDH04QW9yFgTOXJwiIlBVC642hlVZ5nftL97Zz5QzeCQ6KUo YSAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Uem0wyrZ6v+AcRDIlt17tGMx1nakk4KRW34kYReCC3Q=; b=XsO2HJhOI2WJJCrIUwnG+bqoRntV0tDuPtbwRaBPNQK3vhUW/ubexVClTlhwOxo3P8 Frn0vjYeWSjLSoodmIGuhFP99JuHmjvjrruFLc/qu4OMcSBtTt2mM+lWAVxJEbmVj/Rt nklQERec5SumFyZ9aU86q0vOzlJVsLmdwlIUjl5NT7BXJw7hslZ/rG+G0LyKjmnDqkNX L4RASk6HMy0/CS8mJ4IbTaa4frrgj1CxKoCn0UdG1IWShqnqSKZbvjSSANHTbcGmV0eB YDEGmFlRjU9AhR29A9E3/6g3o3451TvwzP19NG44t4ztP2wd2B4P+nY6njhJR8KOSN1E 6OMQ== X-Gm-Message-State: AOAM530AyAE2cY4o7Y8wUs8g1z5J83GpI3DyWVo08lTqkkzVAlN+4f/1 MgXEGQFKxYZTJQpMiRFRxe6V5g== X-Received: by 2002:a17:906:6841:b0:6cf:9c02:8965 with SMTP id a1-20020a170906684100b006cf9c028965mr19422745ejs.440.1650478134808; Wed, 20 Apr 2022 11:08:54 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r29-20020a50c01d000000b00415fb0dc793sm10607022edb.47.2022.04.20.11.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 11:08:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7AB271FFC6; Wed, 20 Apr 2022 19:08:33 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, richard.henderson@linaro.org Subject: [PULL 14/25] tests/tcg: remove CONFIG_USER_ONLY from config-target.mak Date: Wed, 20 Apr 2022 19:08:21 +0100 Message-Id: <20220420180832.3812543-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220420180832.3812543-1-alex.bennee@linaro.org> References: <20220420180832.3812543-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x636.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , =?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: Paolo Bonzini Just check the target name instead. Signed-off-by: Paolo Bonzini Message-Id: <20220401141326.1244422-12-pbonzini@redhat.com> Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20220419091020.3008144-15-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index acda5bcec2..c75e8d983f 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -34,7 +34,7 @@ all: -include ../config-$(TARGET).mak # Get semihosting definitions for user-mode emulation -ifeq ($(CONFIG_USER_ONLY),y) +ifeq ($(filter %-softmmu, $(TARGET)),) -include $(SRC_PATH)/configs/targets/$(TARGET).mak endif @@ -44,7 +44,7 @@ COMMA := , quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1)) # $1 = test name, $2 = cmd, $3 = desc -ifdef CONFIG_USER_ONLY +ifeq ($(filter %-softmmu, $(TARGET)),) run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \ "TEST",$3) else @@ -91,7 +91,7 @@ QEMU_OPTS= # 90s with --enable-tcg-interpreter TIMEOUT=90 -ifdef CONFIG_USER_ONLY +ifeq ($(filter %-softmmu, $(TARGET)),) # The order we include is important. We include multiarch first and # then the target. If there are common tests shared between # sub-targets (e.g. ARM & AArch64) then it is up to @@ -153,7 +153,7 @@ extract-plugin = $(wordlist 2, 2, $(subst -with-, ,$1)) RUN_TESTS+=$(EXTRA_RUNS) -ifdef CONFIG_USER_ONLY +ifeq ($(filter %-softmmu, $(TARGET)),) run-%: % $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<, "$< on $(TARGET_NAME)") diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index 57026b5899..0d864c24fc 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -225,18 +225,12 @@ for target in $target_list; do echo "TARGET_NAME=$arch" >> $config_target_mak echo "target=$target" >> $config_target_mak case $target in - *-linux-user) - echo "CONFIG_USER_ONLY=y" >> $config_target_mak - echo "QEMU=$PWD/qemu-$arch" >> $config_target_mak - ;; - *-bsd-user) - echo "CONFIG_USER_ONLY=y" >> $config_target_mak - echo "QEMU=$PWD/qemu-$arch" >> $config_target_mak - ;; *-softmmu) - echo "CONFIG_SOFTMMU=y" >> $config_target_mak echo "QEMU=$PWD/qemu-system-$arch" >> $config_target_mak ;; + *-linux-user|*-bsd-user) + echo "QEMU=$PWD/qemu-$arch" >> $config_target_mak + ;; esac eval "target_compiler_cflags=\${cross_cc_cflags_$arch}"