From nobody Wed Nov 12 23:19:22 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1574572405; cv=none; d=zohomail.com; s=zohoarc; b=CLlMRmNHX//gtvDWsp/nnDMYEw/IF6Os44sxkBx5Yb4LHfEtI2vYxv4EX5C6DVxC0OIfvVi1K4Lx01mCnQLh5FADK5hry4UrgAFgRormAaxiYrIXc0g7c2L55XJkiLhqWQ5q2Vqb9EQw/PxsEJobbLmwS43Y9UrM8aFgXALTsBc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574572405; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GlC9DNfd17iXYoIYbyFaU4VN/Ub98bGub2GAS49SvrY=; b=Hh2K4ixw9QC4db4dIt4mq9FOj5edfFoohFWPWnMH7uc1cBKDOeuSUH7b5wDNrco56siSfUwxtHZzImyCcKi47/xGdQ/UkmkP9o9XXlu+o+L35FKRzHUAM11XTAosyaqoa1rpYFsDf+bWPvu47+XCJIUHqwEA+TyyX6LKlgpLH7g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1574572405557751.8629435726294; Sat, 23 Nov 2019 21:13:25 -0800 (PST) Received: from localhost ([::1]:33960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYkD6-0007Zi-Cu for importer@patchew.org; Sun, 24 Nov 2019 00:13:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60563) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYk3S-0003xw-CG for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYk3R-0007er-8h for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:26 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:52661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYk3R-0007ea-2i for qemu-devel@nongnu.org; Sun, 24 Nov 2019 00:03:25 -0500 Received: by mail-wm1-x342.google.com with SMTP id l1so11726538wme.2 for ; Sat, 23 Nov 2019 21:03:25 -0800 (PST) Received: from 8c859074c0ff.ant.amazon.com.com (bzq-79-178-10-38.red.bezeqint.net. [79.178.10.38]) by smtp.gmail.com with ESMTPSA id t185sm4173976wmf.45.2019.11.23.21.03.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Nov 2019 21:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GlC9DNfd17iXYoIYbyFaU4VN/Ub98bGub2GAS49SvrY=; b=LL2j4A3TNww+ee9nklZWIp7pVRshHKjY04aNeAzAgOGV00BJY0xOF4J5AoqO4gBxOv vlOxtrrZ2hcOgiGumNJkxN90QGiZJZ2b+TZUxbg+y2M7O65ARgiRmyWMEyRndM9e7WZ/ dcXNtB89a7d/TfzdmpSiRGzlLR6x/BzCVBIDJ26zy+9wn1HKo+Rukqd9MbmAJiVkMjP7 wEHxWDo/5waRhTu/ym72rR7CjzZaDcZHnOd9XcQ8FqdBJ4JnRv0LkpEthD44Lhs3/RYB /ab6W7mjCrTK65TrzTEjxjfkQ4HNewqbeZXJSpdhqQcCTxaGFwf3uYaxu7OtgA4ueGR6 Egyg== 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=GlC9DNfd17iXYoIYbyFaU4VN/Ub98bGub2GAS49SvrY=; b=Ad33ac6SjboipjUCSis/eDdlYKtl9lhVHzvLnHxPePqhPxF+3zuXznmRWnsCJc2fua hH2lUt6blqMJxl7GQzhmWwlwOeTEFq47rBRjvabN6CrvIB9oKCqIPvj53HkeAasghg8m YWZhrFdQ7twcStWgoWLYV7b4rGL+eoiXkERd1xeGg2FL7v3J5IA5XOdtsYJksk55crjP 5z8AsVIGq1oijL8tWwfCSzkOt7aX8LJAUeAUNPgtgiiUhDBYuc2tJkvIQYLrdCPf86dg aHa18IOk5tnujJuntus/hCaYRPST2y2I4Mxrq6Gh+628LVCOOkj2J1OF9+gVWiGZw05G WWew== X-Gm-Message-State: APjAAAXsr86fCVO1Zru8V5d0je0BdiBBaSnQvPqCfQhrh+6rZAOilKVF u3P9Xw75HkNrz6PDiwKXAl8smEoqt8erPiuO X-Google-Smtp-Source: APXvYqz4xAyO6lEwDyuYGIM45wN2oWIaa+QpQ+/gZCToPOJCa54mf677j15EU8jhAbC1D4nNQaNz0w== X-Received: by 2002:a05:600c:214a:: with SMTP id v10mr23315930wml.102.1574571803692; Sat, 23 Nov 2019 21:03:23 -0800 (PST) From: Michael Rolnik To: qemu-devel@nongnu.org Subject: [PATCH v36 15/17] target/avr: Add boot serial test Date: Sun, 24 Nov 2019 07:02:23 +0200 Message-Id: <20191124050225.30351-16-mrolnik@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20191124050225.30351-1-mrolnik@gmail.com> References: <20191124050225.30351-1-mrolnik@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 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: thuth@redhat.com, Michael Rolnik , richard.henderson@linaro.org, dovgaluk@ispras.ru, imammedo@redhat.com, philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Print out 'T' through serial port Signed-off-by: Michael Rolnik Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Thomas Huth --- tests/boot-serial-test.c | 10 ++++++++++ tests/Makefile.include | 2 ++ 2 files changed, 12 insertions(+) diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index d3a54a0ba5..1121ed0db2 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -16,6 +16,15 @@ #include "qemu/osdep.h" #include "libqtest.h" =20 +static const uint8_t bios_avr[] =3D { + 0x88, 0xe0, /* ldi r24, 0x08 */ + 0x80, 0x93, 0xc1, 0x00, /* sts 0x00C1, r24 ; Enable tx */ + 0x86, 0xe0, /* ldi r24, 0x06 */ + 0x80, 0x93, 0xc2, 0x00, /* sts 0x00C2, r24 ; Set the data bits to 8 */ + 0x84, 0xe5, /* ldi r24, 0x54 */ + 0x80, 0x93, 0xc6, 0x00, /* sts 0x00C6, r24 ; Output 'T' */ +}; + static const uint8_t kernel_mcf5208[] =3D { 0x41, 0xf9, 0xfc, 0x06, 0x00, 0x00, /* lea 0xfc060000,%a0 */ 0x10, 0x3c, 0x00, 0x54, /* move.b #'T',%d0 */ @@ -103,6 +112,7 @@ typedef struct testdef { =20 static testdef_t tests[] =3D { { "alpha", "clipper", "", "PCI:" }, + { "avr", "sample", "", "T", sizeof(bios_avr), NULL, bios_avr }, { "ppc", "ppce500", "", "U-Boot" }, { "ppc", "40p", "-vga none -boot d", "Trying cd:," }, { "ppc", "g3beige", "", "PowerPC,750" }, diff --git a/tests/Makefile.include b/tests/Makefile.include index 8566f5f119..3e18e5770c 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -208,6 +208,8 @@ check-qtest-i386-y +=3D tests/test-x86-cpuid-compat$(EX= ESUF) check-qtest-i386-y +=3D tests/numa-test$(EXESUF) check-qtest-x86_64-y +=3D $(check-qtest-i386-y) =20 +check-qtest-avr-y +=3D tests/boot-serial-test$(EXESUF) + check-qtest-alpha-y +=3D tests/boot-serial-test$(EXESUF) check-qtest-alpha-$(CONFIG_VGA) +=3D tests/display-vga-test$(EXESUF) =20 --=20 2.17.2 (Apple Git-113)