From patchwork Tue May 29 22:03:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Denis V. Lunev\" via" X-Patchwork-Id: 10437227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED099602BF for ; Tue, 29 May 2018 22:07:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D82F628927 for ; Tue, 29 May 2018 22:07:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCB7D2892D; Tue, 29 May 2018 22:07:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F65628927 for ; Tue, 29 May 2018 22:07:22 +0000 (UTC) Received: from localhost ([::1]:35238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNmm1-00009J-ML for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 18:07:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNmjO-0007MQ-Q1 for qemu-devel@nongnu.org; Tue, 29 May 2018 18:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNmjO-00086c-12 for qemu-devel@nongnu.org; Tue, 29 May 2018 18:04:38 -0400 Received: from smtp18.mail.ru ([94.100.176.155]:51412) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fNmjN-00084J-Q8 for qemu-devel@nongnu.org; Tue, 29 May 2018 18:04:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=Z6VSYZbQmyTocBJ5FAX3J+yhqSg/yhk78aBGSyN8KIA=; b=rhdkVlYuqt9XfwAwsYpUWtZDv39tHIeB+fWvsmGbzpZrBBcJBW/YePpZdpWo+RIwLns2PtXawKhAU+u3Vj193bc8fBTkDbPJ2cxIzpZmqYhFyxIRYNixSn1OwHqBpywFYLNY56ZnbKB3rnlkccwfNb0M9gyVawN/47jDGTwaYB8=; Received: by smtp18.mail.ru with esmtpa (envelope-from ) id 1fNmjM-00076p-36; Wed, 30 May 2018 01:04:36 +0300 To: qemu-devel Date: Wed, 30 May 2018 01:03:38 +0300 Message-Id: <20180529220338.10879-4-jusual@mail.ru> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529220338.10879-1-jusual@mail.ru> References: <20180529220338.10879-1-jusual@mail.ru> Authentication-Results: smtp18.mail.ru; auth=pass smtp.auth=jusual@mail.ru smtp.mailfrom=jusual@mail.ru X-7FA49CB5: 0D63561A33F958A5CCE673736A218D5F6F0765A1669F95CC28A6D463EDFD0DBB725E5C173C3A84C35D1D84EF68E022EA1AF6857BB18E05C60555CCFDA08FA3FAC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F2EF91E2201DEA5EC574AF45C6390F7469DAA53EE0834AAEE X-Mailru-Sender: 7766D515518070DE138AAC7428EA760D1EE0CD12089E7727A37AF845B72DA822E11A6E312C87D21D7C4160E8B47E48163DDE9B364B0DF2898CB68AF7A628805D594FB4C9F0DBF412AE208404248635DF X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.176.155 Subject: [Qemu-devel] [RFC 3/3] tests/boot-serial-test: Add support for the microbit board 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: , X-Patchwork-Original-From: Julia Suvorova via Qemu-devel From: "Denis V. Lunev\" via" Reply-To: Julia Suvorova Cc: Peter Maydell , Jim Mussared , =?UTF-8?q?Steffen=20G=C3=B6rtz?= , Stefan Hajnoczi , Joel Stanley , Julia Suvorova Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP New mini-kernel test for nRF51 SoC UART. Signed-off-by: Julia Suvorova --- tests/boot-serial-test.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index 4d6815c3e0..e6dbc8a293 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -62,6 +62,16 @@ static const uint8_t kernel_aarch64[] = { 0xfd, 0xff, 0xff, 0x17, /* b -12 (loop) */ }; +static const uint8_t kernel_nrf51[] = { + 0x00, 0x00, 0x00, 0x00, /* Stack top address */ + 0x09, 0x00, 0x00, 0x00, /* Reset handler address */ + 0x01, 0x4b, /* ldr r3,[pc,#4] Get base */ + 0x54, 0x22, /* mov r2,#'T' */ + 0x1a, 0x70, /* strb r2,[r3] */ + 0x01, 0xe0, /* b loop */ + 0x1c, 0x25, 0x00, 0x40, /* 0x40002000 = UART0 base addr */ +}; + typedef struct testdef { const char *arch; /* Target architecture */ const char *machine; /* Name of the machine */ @@ -107,6 +117,7 @@ static testdef_t tests[] = { { "hppa", "hppa", "", "SeaBIOS wants SYSTEM HALT" }, { "aarch64", "virt", "-cpu cortex-a57", "TT", sizeof(kernel_aarch64), kernel_aarch64 }, + { "arm", "microbit", "", "T", sizeof(kernel_nrf51), kernel_nrf51 }, { NULL } };