From patchwork Mon Oct 29 15:34:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 149670 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4300963ljp; Mon, 29 Oct 2018 08:44:44 -0700 (PDT) X-Google-Smtp-Source: AJdET5epJIUP3MzdnQIQPqsumoWShCWbBKVttZepxmAh4kI8yrwE9lbEYKn8eHm+OLUJ9C0QysUh X-Received: by 2002:ac8:1c82:: with SMTP id f2-v6mr13901084qtl.166.1540827884312; Mon, 29 Oct 2018 08:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540827884; cv=none; d=google.com; s=arc-20160816; b=eLYU6U3gUvY9ih7wCEUwZmX02BFcvz4wHTX4dGu6Sql7hL9a8q3F1axkF0a2gFGc45 XCKja7vw2Aa+6qBMRD4A54VHnOhFvxwQ7fay314q7sabxiFfsT7mr1QpH+5icuLdStQu s7hoSuOWOJLoL80jis57Z1OAjgHGwT+8ZnXpbHgJu/bkaHbKUCrU/DJl/GDxTkwcqFD5 wf9MsoVhjRBtJDWNpW6jD6hbe46xcyZwVfquYVC6Url5iR9zFzVBzUK4j702OBId69x7 J1xoXhyn5DKWl91/VjNHs8MlMErc5bRtKA/YUl5uKyjk5Q1JjbWKkM8228mCJL6ywKJS /C1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from; bh=0eKzU6HvB25OGdAYoumj9dQN4y6Z0x0fQz/H+rK2xCg=; b=bODsZ/M32UgmDJoKCmK4c0W2ue8Mfgh5m1wG9so/oOiUxDmkMEcApnKOGD4czGVQus 6fEFzdN/cercookAiVTVZAzgo7eXjcQ+W+0jLaGTup4LWeZTo/Lyvz1j7X2csWHX0Exv xLhD7xIx+TdWci95q/cyTOXS+NgvUrkUd1G0/7heNORNhIkNPJWxTywJCJDQQ4YJwaCm 6Uj1lpLkt7Xbo3eOjAOqG7P9YT/Sur1FLLLaaL19nokOSLtPysdvR62yUAISAraOki6k ZjKh80VFBGuiiET8BNV58Q65uTCzCxIFq1PIkHBjaKRk7XyngO9xYbaEugultG9NAT/H 9nBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id u2-v6si6370921qkc.172.2018.10.29.08.44.44 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 29 Oct 2018 08:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH9id-0008M0-ME for patch@linaro.org; Mon, 29 Oct 2018 11:44:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH9ZO-00058j-RI for qemu-devel@nongnu.org; Mon, 29 Oct 2018 11:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gH9ZO-00048N-4i for qemu-devel@nongnu.org; Mon, 29 Oct 2018 11:35:10 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:52104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gH9ZN-0003rj-SO for qemu-devel@nongnu.org; Mon, 29 Oct 2018 11:35:10 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1gH9Yw-00005m-Rs for qemu-devel@nongnu.org; Mon, 29 Oct 2018 15:34:42 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 29 Oct 2018 15:34:32 +0000 Message-Id: <20181029153432.23273-7-peter.maydell@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181029153432.23273-1-peter.maydell@linaro.org> References: <20181029153432.23273-1-peter.maydell@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 6/6] tests/boot-serial-test: Add microbit board testcase 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Julia Suvorova via Qemu-devel New mini-kernel test for nRF51 SoC UART. Signed-off-by: Julia Suvorova Acked-by: Thomas Huth Reviewed-by: Stefan Hajnoczi Signed-off-by: Peter Maydell --- tests/boot-serial-test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) -- 2.19.1 diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index f865822e32f..8ec6aed35d2 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -62,6 +62,24 @@ 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 */ + 0x04, 0x4a, /* ldr r2, [pc, #16] Get ENABLE */ + 0x04, 0x21, /* movs r1, #4 */ + 0x11, 0x60, /* str r1, [r2] */ + 0x04, 0x4a, /* ldr r2, [pc, #16] Get STARTTX */ + 0x01, 0x21, /* movs r1, #1 */ + 0x11, 0x60, /* str r1, [r2] */ + 0x03, 0x4a, /* ldr r2, [pc, #12] Get TXD */ + 0x54, 0x21, /* movs r1, 'T' */ + 0x11, 0x60, /* str r1, [r2] */ + 0xfe, 0xe7, /* b . */ + 0x00, 0x25, 0x00, 0x40, /* 0x40002500 = UART ENABLE */ + 0x08, 0x20, 0x00, 0x40, /* 0x40002008 = UART STARTTX */ + 0x1c, 0x25, 0x00, 0x40 /* 0x4000251c = UART TXD */ +}; + typedef struct testdef { const char *arch; /* Target architecture */ const char *machine; /* Name of the machine */ @@ -105,6 +123,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 } };