From nobody Tue Oct 28 02:08:41 2025 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 1516114532883896.4763145864309; Tue, 16 Jan 2018 06:55:32 -0800 (PST) Received: from localhost ([::1]:39441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebSeC-0008Dg-3P for importer@patchew.org; Tue, 16 Jan 2018 09:55:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebS4A-00038S-DI for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebS47-0004oA-3o for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:18 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:36079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebS46-0004mB-Tj for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:15 -0500 Received: by mail-wm0-x242.google.com with SMTP id f3so9003648wmc.1 for ; Tue, 16 Jan 2018 06:18:14 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id u10sm1537758wrg.6.2018.01.16.06.18.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:18:12 -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=3cqPMVQhriQlpv0DYIbVIjn6P4YBjaOcF2TMiOsuOa8=; b=pgnPpWNq00gOYDm103zYGWocRlNxDmsOdAV7dySKBf5m61BmQdkhM65ytnGHFtqo2W V1dljEqoofUrWB1Zd1XfRcTNtfvQYkBfNVKFriNe7B9cEjCRYv6cK5tQyEejCFrjPR80 dUgtpPex4fZ68Kpy3E3Tbh7lRa36DVSOifTywZDGsz8PfndsC8snQfEnJvdXR2bpJinU Pfed05BmraEz5Pdkvhrq5laCOPM+hA3vZtxgJsWPhNIq9lNAq4r12tg+4dGiTV6C07A7 ytogElSh/eYFXvYNBbntlVJl7/UnBLJ/4JaOfQdbBICH7hTf/YqN/AYmTlsHDRUvOPAF YvGw== 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=3cqPMVQhriQlpv0DYIbVIjn6P4YBjaOcF2TMiOsuOa8=; b=jQrV/8nU9cM/b8eohbQJMbUJu6B9Kan2UOlRuFTz+SPEGUmCzCGPSaw6NfjTmOxJyw d2CdQcReKUCsI3nyQjnOS+mDJh8hXpW6/C+rhDSuRDB+TyUgt3lQ28HBVtpIIX2aw2Kn qpe4PU42cM1Upj8q9zEwUKz9yFWlA2yZg/2Qhydvpmq0Wwhpj5a3eyuOifjavhxD6bAh YyHiDnLkTSuaob9Gy9hHeF59gRuasZjYF502xnUpqJQ8NdNDg5NgT+zc3eToXlt9sWBp 2FT+VCw/d8gcAAEKKg0E2uO73dOz0oZfQ3uHB1m3FGs9u10Svqw2EJjDzpBFrShDhhCm UL6w== X-Gm-Message-State: AKwxyteQGPJEO5PFsXc7jBXQg/HEkJv01aqwtZNyGJIM+KH2/TK1djEW vUzovTSP3ziUzhxr6er/MX1afetz X-Google-Smtp-Source: ACJfBovFwGwKkK50+8zILJHf0XRXeRWrHE19kiGAEmxKGnbaxOZI428UsCR+H6E4izkoAzDTdgAORA== X-Received: by 10.28.93.69 with SMTP id r66mr13659518wmb.28.1516112293619; Tue, 16 Jan 2018 06:18:13 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 15:17:08 +0100 Message-Id: <1516112253-14480-27-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516112253-14480-1-git-send-email-pbonzini@redhat.com> References: <1516112253-14480-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::242 Subject: [Qemu-devel] [PULL 26/51] tests/boot-serial-test: Add tests for microblaze boards 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 This adds two simple TCG + UART tests for the microblaze boards, one in big endian mode, and one in little endian mode. Signed-off-by: Thomas Huth Message-Id: <1512031988-32490-5-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- tests/Makefile.include | 2 ++ tests/boot-serial-test.c | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 39a4b53..561e14b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -300,6 +300,8 @@ check-qtest-alpha-y =3D tests/boot-serial-test$(EXESUF) =20 check-qtest-m68k-y =3D tests/boot-serial-test$(EXESUF) =20 +check-qtest-microblaze-y =3D tests/boot-serial-test$(EXESUF) + check-qtest-mips-y =3D tests/endianness-test$(EXESUF) =20 check-qtest-mips64-y =3D tests/endianness-test$(EXESUF) diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index dd3828c..a39273a 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -24,6 +24,22 @@ static const uint8_t kernel_mcf5208[] =3D { 0x60, 0xfa /* bra.s loop */ }; =20 +static const uint8_t kernel_pls3adsp1800[] =3D { + 0xb0, 0x00, 0x84, 0x00, /* imm 0x8400 */ + 0x30, 0x60, 0x00, 0x04, /* addik r3,r0,4 */ + 0x30, 0x80, 0x00, 0x54, /* addik r4,r0,'T' */ + 0xf0, 0x83, 0x00, 0x00, /* sbi r4,r3,0 */ + 0xb8, 0x00, 0xff, 0xfc /* bri -4 loop */ +}; + +static const uint8_t kernel_plml605[] =3D { + 0xe0, 0x83, 0x00, 0xb0, /* imm 0x83e0 */ + 0x00, 0x10, 0x60, 0x30, /* addik r3,r0,0x1000 */ + 0x54, 0x00, 0x80, 0x30, /* addik r4,r0,'T' */ + 0x00, 0x00, 0x83, 0xf0, /* sbi r4,r3,0 */ + 0xfc, 0xff, 0x00, 0xb8 /* bri -4 loop */ +}; + typedef struct testdef { const char *arch; /* Target architecture */ const char *machine; /* Name of the machine */ @@ -50,6 +66,10 @@ static testdef_t tests[] =3D { { "s390x", "s390-ccw-virtio", "-nodefaults -device sclpconsole,chardev=3Dserial0", "virtio device"= }, { "m68k", "mcf5208evb", "", "TT", sizeof(kernel_mcf5208), kernel_mcf52= 08 }, + { "microblaze", "petalogix-s3adsp1800", "", "TT", + sizeof(kernel_pls3adsp1800), kernel_pls3adsp1800 }, + { "microblazeel", "petalogix-ml605", "", "TT", + sizeof(kernel_plml605), kernel_plml605 }, =20 { NULL } }; --=20 1.8.3.1