From patchwork Thu Oct 20 11:51:51 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: 616727 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp235234pvb; Thu, 20 Oct 2022 05:51:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vB2nKDUMmbvwBr2bm0EBgCU1R/TG8PbOSjoCNubLg6ypRu5u6waBv7W999sgbp1kAugqM X-Received: by 2002:a05:620a:2230:b0:6ee:22f6:7218 with SMTP id n16-20020a05620a223000b006ee22f67218mr9084388qkh.250.1666270318125; Thu, 20 Oct 2022 05:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666270318; cv=none; d=google.com; s=arc-20160816; b=pdzn4fSarHJlxuYY4C3fgw0s/pBh3Ns0COOnPSlGtc39njgIOQk6vUz9v9ZrpyW8LF DHPnMttvzixBNtfrRnVAvAmVOLe7MJR34YkysNfWMDlc/QVkYuTtb8ZI7mjgIUk44cKe Abx6XyIoGIZtDQYHs9z1Fzl1NR6Ix4Pa0QsZUwxReXvmjqU8YjPlnonwsYOn6I3ifqFD 5EL2YjcVkvaJOY0rbAHoAgGhU1O28aS3eqPrTkd8u8QUjR8LgJr5GaJPczU6ZOay0H5R ZdVwyDr8YZjxXjZgf1aGZLPNIzRVMxVuql6jCOP1dg9L3sd15bHTvdhSFQOPOC2kQmeL oTkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=yShOXbzELIGNaOPIz9eBhTKjXWoTlNpcm8mEq/fJPX4=; b=JiS7sIZ0Tkwr54zsW/PZm8Rp5w8EX0q8Wd9DsAYnigDV+lM+Wf5CoxlsnJ0iZIeVHF UlqtFfme41m0Pq2TogUJzgyckXhU0Ll8WByQU5ArlDkLKaVIdPo33TkmlaiyNI4qOTip 3XgYGAaC/iis9U2H1YYt0XIMWtjtxS1JiksYAz1UPBIMub+8Gli9oMHDxSLkGvHaGHxi X7uh3sHsupPsdekSGeoF18k9/iWKiqsHMeUzV4g2al5xRIaN1TEKZw1feUS4ayufgCQc r008NJeIFyXdceXdWu/R23odE326wB2Z1Xr/64QN17ASvTl61E020pC5K0VmXEX7eUsS ZyMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTWSgz94; 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 hf7-20020a0562140e8700b004afa0938207si10133772qvb.132.2022.10.20.05.51.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2022 05:51:58 -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=UTWSgz94; 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]:47790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olV1U-0000RO-3B for patch@linaro.org; Thu, 20 Oct 2022 08:51:47 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olUxl-0001Sj-G8 for patch@linaro.org; Thu, 20 Oct 2022 08:47:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olU64-0002dq-PA for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:30 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:37522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olU5z-0000oQ-Jr for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:23 -0400 Received: by mail-wr1-x429.google.com with SMTP id bv10so33914581wrb.4 for ; Thu, 20 Oct 2022 04:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yShOXbzELIGNaOPIz9eBhTKjXWoTlNpcm8mEq/fJPX4=; b=UTWSgz944WdZdCwlIR1s1kjj2VLZgGDDjOCxSUFtZz97cEt7YVYw9L35LfTEW9fil+ AsMadMYNH7MoFWKefYiQ4JQ57j5Nc/JYDvZ8CMDMpg6OmlsDn5H6n8lR6Q8hZGgTojtO sTKLSyyogIbUcMp/q/oQGPJ4jMAp2N1+P+aFEOiKE2MScE7V2J2+SOHif6nR5jCIv3vl f6krnF3yXpEvp1W/u0HLW9Bl7PyYnZnehlgDQmOUoTk9mW/qPt/tj9cN0lRAzsiZR++k OBa0WpF5N7DDgSdRpxLwqquVuBOSdB55DXB06HDMZtzC3mJ1CGkrGD6u0qB8G9wkpT12 kI1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yShOXbzELIGNaOPIz9eBhTKjXWoTlNpcm8mEq/fJPX4=; b=jXxy6hZYwkFis3l/CEv7WQWkwQo7TCjfC4hCxfNzhFnEf2E7rXEN63GB5yYMVL31uN ZhV+1rfWoJiQMXBXh7nYo3Zd5SR7ERdYRWyXPOo7lx80hY8Lujl77U/CAMF8wSGVc1PU rarj32dEHCWG9ZBLDxCGhoMMfa4u97BZHW3Tzla5ctriWPjbf3diSJ8JssQV4G3onkD+ uO2caSzNfIC+OSdDa/HtlFsJTTM5KxZhAI8qD8UPmPxMDQc/3JQvY4Mn05Yr7yAHQowZ 8c8vcSyZ0zISu/6i86gblq1M5kntoJLzmdSpewBg9FyIfZ61Y3LQWcoeh8tekEU883V2 VMOg== X-Gm-Message-State: ACrzQf1FWsgs9xfL/W87ajSTiReV7/izRA0JdR3zi3JAVs2iRhPZH07P rxtENd3ljsifL5mp7PyCUcd6Cg== X-Received: by 2002:a5d:4a4d:0:b0:22d:c8cb:8687 with SMTP id v13-20020a5d4a4d000000b0022dc8cb8687mr8211142wrs.554.1666266737119; Thu, 20 Oct 2022 04:52:17 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id v2-20020a5d4b02000000b0022ed6ff3a96sm15958829wrq.39.2022.10.20.04.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:52:14 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C50301FFC0; Thu, 20 Oct 2022 12:52:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 08/26] tests/tcg: use regular semihosting for nios2-softmmu Date: Thu, 20 Oct 2022 12:51:51 +0100 Message-Id: <20221020115209.1761864-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020115209.1761864-1-alex.bennee@linaro.org> References: <20221020115209.1761864-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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The nios2 code now plugs into the common semihosting code so we can use the same redirect invocation as the other boards. There is however a bug raised for the fact the tests don't seem to be completing properly and silently passing anyway: https://gitlab.com/qemu-project/qemu/-/issues/1258 Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/tcg/nios2/Makefile.softmmu-target | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/tcg/nios2/Makefile.softmmu-target b/tests/tcg/nios2/Makefile.softmmu-target index c3d0594a39..bc7fd55060 100644 --- a/tests/tcg/nios2/Makefile.softmmu-target +++ b/tests/tcg/nios2/Makefile.softmmu-target @@ -25,8 +25,7 @@ LDFLAGS += -Wl,-T$(LINK_SCRIPT) -static -nostdlib $(CRT_OBJS) -lgcc %: %.o $(LINK_SCRIPT) $(CRT_OBJS) $(call quiet-command, $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS), LD, $@) -# FIXME: nios2 semihosting writes to stdout, not a chardev -QEMU_OPTS = -M 10m50-ghrd,vic=on -semihosting >$@.out -kernel +QEMU_OPTS = -M 10m50-ghrd,vic=on -semihosting-config enable=on,target=native,chardev=output -kernel memory: CFLAGS+=-DCHECK_UNALIGNED=0 TESTS += $(MULTIARCH_TESTS)