From nobody Tue Feb 10 07:40:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513791217286295.94106839381425; Wed, 20 Dec 2017 09:33:37 -0800 (PST) Received: from localhost ([::1]:60425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRiFD-0002hT-5h for importer@patchew.org; Wed, 20 Dec 2017 12:33:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRhyM-0004fd-KX for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:16:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRhyL-0007Fy-My for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:16:02 -0500 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:38058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRhyL-0007Fg-Ge for qemu-devel@nongnu.org; Wed, 20 Dec 2017 12:16:01 -0500 Received: by mail-wm0-x231.google.com with SMTP id 64so11089325wme.3 for ; Wed, 20 Dec 2017 09:16:01 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-251-125.clienti.tiscali.it. [78.12.251.125]) by smtp.gmail.com with ESMTPSA id f125sm2751101wme.45.2017.12.20.09.15.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 09:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=rBs5bgeAiL0X8rSp2cba9iDjKNbl1yHCvcKcEC5d8s8=; b=mh6jn8V0o+F9MlRKOjvmM2OlPW0uqPRoN4IADT2LLk129spJhsAUDFrvJCyu46+h9B 5vgPmqisn3w8o5rjcDO3PA9ChE87BWkiUQ0bIaO5UcItdHhDKIm+zHYTuWFeUDLzTndB qIYXuKeay4OKTkD6bCzQRbpFV6czvmYZxrYP90WBFwBe5R9J3OyQ3k0tb4OdqbJi6FFJ iWeRrRW6Okqh0P4KD76BRnykJ7xmU4h2ngxR+S2IfIZJPgarBTyPs8HOwBK5474VLDEQ dyxLV13Z0dwekFl/xK25Chsdf+vyRo8E4d5G+WDJU0nS6ELypX5+EAZO5MzANBsvOnqF ZVPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=rBs5bgeAiL0X8rSp2cba9iDjKNbl1yHCvcKcEC5d8s8=; b=WbG/DWgjK0+Rw1NhoFHpws9rKyX7KaveNI09M6JN+pbitp3kdWClOdOmZQXA20vovY g+77kkAGgaceXOCuO8BX74hfPVl/XShOsvPe6BlbrFVIgdEObxpc5FBjXeK5GVTILsrO CgpPI2GLaNdJT7fOrZ1CswltzwvtUCj8HiCBFldfur0AnnFS66GOpXF4BoHY/mUX8meh dcSY/9UjoN7aUHIH5VZNrJQFlqt8DmLdkTsXHCSLkdZmtmHmWc+QHrTQ+FQPGqBQh5jd LXEvQGBgc+WdPKtwbw3Mnt/fZMK94zB+SmY2r1EBWfaG/Meuv0QswpA0zOXVg3p4/jSD R8Eg== X-Gm-Message-State: AKGB3mI59uCwaBZV+069FnnlVKMaV1beqvmXCguge8Ix3yjJGTdosRum yYRQOiYEAs6EeoxjmdfFqfg/qHYX X-Google-Smtp-Source: ACJfBov3GF3cimjDj2TfW0AjwuElW6GY9qm20Il5NI2qEnXafl8kTEfSHz+LZkTercIACWu/N2+oIg== X-Received: by 10.28.230.138 with SMTP id e10mr2077297wmi.141.1513790160174; Wed, 20 Dec 2017 09:16:00 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 20 Dec 2017 18:14:36 +0100 Message-Id: <1513790098-9815-25-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1513790098-9815-1-git-send-email-pbonzini@redhat.com> References: <1513790098-9815-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::231 Subject: [Qemu-devel] [PULL 24/46] tests/boot-serial-test: Add support for the raspi2 machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Thomas Huth The raspi2 machine supports loading firmware images, so we can easily load a small test sequence as raw binary blob here to test the UART. Signed-off-by: Thomas Huth Message-Id: <1512031988-32490-8-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- tests/Makefile.include | 1 + tests/boot-serial-test.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 02ca4b2..c1a4a22 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -361,6 +361,7 @@ check-qtest-arm-y +=3D tests/virtio-blk-test$(EXESUF) gcov-files-arm-y +=3D arm-softmmu/hw/block/virtio-blk.c check-qtest-arm-y +=3D tests/test-arm-mptimer$(EXESUF) gcov-files-arm-y +=3D hw/timer/arm_mptimer.c +check-qtest-arm-y +=3D tests/boot-serial-test$(EXESUF) =20 check-qtest-aarch64-y =3D tests/numa-test$(EXESUF) =20 diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index 1deddb8..663b78b 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -47,6 +47,14 @@ static const uint8_t bios_moxiesim[] =3D { 0x1a, 0x00, 0x00, 0x00, 0x10, 0x00 /* jmpa 0x1000 */ }; =20 +static const uint8_t bios_raspi2[] =3D { + 0x08, 0x30, 0x9f, 0xe5, /* ldr r3,[pc,#8] Get bas= e */ + 0x54, 0x20, 0xa0, 0xe3, /* mov r2,#'T' */ + 0x00, 0x20, 0xc3, 0xe5, /* strb r2,[r3] */ + 0xfb, 0xff, 0xff, 0xea, /* b loop */ + 0x00, 0x10, 0x20, 0x3f, /* 0x3f201000 =3D UART0 base a= ddr */ +}; + typedef struct testdef { const char *arch; /* Target architecture */ const char *machine; /* Name of the machine */ @@ -78,6 +86,7 @@ static testdef_t tests[] =3D { { "microblazeel", "petalogix-ml605", "", "TT", sizeof(kernel_plml605), kernel_plml605 }, { "moxie", "moxiesim", "", "TT", sizeof(bios_moxiesim), 0, bios_moxies= im }, + { "arm", "raspi2", "", "TT", sizeof(bios_raspi2), 0, bios_raspi2 }, =20 { NULL } }; --=20 1.8.3.1