From nobody Sun Feb 8 22:58:01 2026 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=1577657402; cv=none; d=zohomail.com; s=zohoarc; b=PXCgEV5byOJU8pcqo8XUY1DbL85ugPXy8f/sifcxXfQwbKPXCcKPo03gpCa0rqK7qXwXvnYVXXmotIcMjvnpyZLgZaFp7CZ+WbJIt3M5bmeTXknP7rZ6KpVOEaQSjI1keiOB6hw8uGh5dvsAYdK31DYKbRu99Iv7f8KBdsKqSrs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577657402; 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=o1YkLtT6Ze9oMsNmRtkKZc9LCOt0XB8lCSHqKeVRNdM=; b=AZ4y9QNkLY0vedkHybvJ+VPpC9hSyh+S61TU1aQZ38jvWUyfMEm/dKjza/S39bJwz8AF6hr1FDzWTKDBK+/OshKAD+Fs4T8shx/ppUZQBliolfCX2FJEhUQ30PK1dhxwa0jN7EQ0Ux3BvRuAj/UAfYzk5CkTFqwrOCs4qD2A0dM= 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 1577657402758758.7381639090156; Sun, 29 Dec 2019 14:10:02 -0800 (PST) Received: from localhost ([::1]:55474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilgl7-0000LF-De for importer@patchew.org; Sun, 29 Dec 2019 17:10:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34137) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilgV4-0007pi-VN for qemu-devel@nongnu.org; Sun, 29 Dec 2019 16:53:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilgV3-0004Ga-Po for qemu-devel@nongnu.org; Sun, 29 Dec 2019 16:53:26 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:33014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilgV2-0004DF-Oa for qemu-devel@nongnu.org; Sun, 29 Dec 2019 16:53:25 -0500 Received: by mail-wm1-x342.google.com with SMTP id d139so10506069wmd.0 for ; Sun, 29 Dec 2019 13:53:24 -0800 (PST) Received: from 8c859074c0ff.ant.amazon.com.com (bzq-79-183-93-3.red.bezeqint.net. [79.183.93.3]) by smtp.gmail.com with ESMTPSA id 25sm18182850wmi.32.2019.12.29.13.53.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Dec 2019 13:53:22 -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=o1YkLtT6Ze9oMsNmRtkKZc9LCOt0XB8lCSHqKeVRNdM=; b=e0bQHcdVVhsE+Ci4pNQJQY3aNIsAzwUifhLLXAQ0xK8NuDmTW5yIzPBtfCiOBN4FNO pijnPL/L6iptyh5K4zhyX3dVJCZHzocZG6jq+k/0ZgJl8qJb6HGqIUnTB+HNK4/jo9Xl JuBi7n1iR6cEWOHOwuJyfdSQ4kU+OmX0ZynrbLbsfonSpa8UWer7368TLbLgJ3GLkhIe xSwzJ/AnoppOnLhAyA5wCDdOxlZjw+3Z1KXGa9u2vmdVo/hk6gt0zoaAjeYy6QagIn1n Vq4MQq0R/PWIQJjyJu18wH+fsYzJRQZtB1lnyihgi2CA0aQN/q6/q9WFXJmOpxKZQZId X1DA== 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=o1YkLtT6Ze9oMsNmRtkKZc9LCOt0XB8lCSHqKeVRNdM=; b=WarDjilq4kW2yc67mL8bqi+6mR97XEax6wU16o+9u2CO66FB0Mr0B14Z+MM2PeJGbK 7NS5t5w2Yt3eZtIfwyGZL6HQ1VzkmTCOg2DqnL5/BJnNnBkEiQHwOnN5PI/DUga1YPMV FdypRHkcorgHgZWPU9JyZ+yo2wWBF118QD3w03TaE96exBolDnAvIuK/qrTJOnr+H+Vz U8PVgOszEIUB/L4HBDYpi+Mt7SkI2nMD7gLM14hTLCYRWzZykQj3YEFAU+h6u3yRn0hh M4eK2pTYnDwRXaI7Kezr2jt9ZL21QtuuuEqRBC4m8WJtsAwdF+Hm0jjsFZzyOuqN0JYD 1puA== X-Gm-Message-State: APjAAAVpigPU4m3rlsLMTEj/eZYFbHMHIQdRUd87s71TLW2EsIbY/JTZ vEMJsPS7lKRp3V8wok+L5HGVvltN3xUXZQ== X-Google-Smtp-Source: APXvYqwoXMthPc3PjfW1DbxHYBVgjZ21hJLL7vhWYdH6OhZIrSiYQnBBp50Oxll5eUq37vO8dQvNWw== X-Received: by 2002:a1c:28d4:: with SMTP id o203mr30787010wmo.123.1577656403197; Sun, 29 Dec 2019 13:53:23 -0800 (PST) From: Michael Rolnik To: qemu-devel@nongnu.org Subject: [PATCH v40 19/21] target/avr: Add boot serial test Date: Sun, 29 Dec 2019 23:51:56 +0200 Message-Id: <20191229215158.5788-20-mrolnik@gmail.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) In-Reply-To: <20191229215158.5788-1-mrolnik@gmail.com> References: <20191229215158.5788-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 , me@xcancerberox.com.ar, 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 05c7f44457..e556f09db8 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 31b86674e5..554a5c3084 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -206,6 +206,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)