From patchwork Fri Jan 12 11:30:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 859796 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="L5jBRMQw"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zJ19T1g9Yz9s75 for ; Fri, 12 Jan 2018 22:43:57 +1100 (AEDT) Received: from localhost ([::1]:35255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZxkZ-0000mJ-8n for incoming@patchwork.ozlabs.org; Fri, 12 Jan 2018 06:43:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZxZ1-0007gP-Hx for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:32:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZxYw-0005cF-LP for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:31:59 -0500 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:34930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZxYw-0005aj-FQ for qemu-devel@nongnu.org; Fri, 12 Jan 2018 06:31:54 -0500 Received: by mail-wr0-x243.google.com with SMTP id g38so1842885wrd.2 for ; Fri, 12 Jan 2018 03:31:54 -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=PZfiwIiSh1KkFowaK0k3EI9yqZNgRVDZv7AYwSizY1k=; b=L5jBRMQwhFMf6FwRO7g5rfkK42B0fdS4vvjUcTmC3lmFEoPhXWjAsy7oqB7zUW+aXc XtKmNarnmN+Wa4wA+Bw6Vg6eN+ewFFS9HKS4c70PxHZEQtPACLluECNXPgJ/Rqgy7qZC gS50a8rz1SbosLQgek2JX8W6ROlSA4t7iHbpqKtrTI7Z3ERXXv17Kd/LeFEUG/Yi1bQP AnN/tEKYMJbmRxwsbRrWf49TSMc1D9s/rTwhR+Xih3j6Y+sDtvqCEyZY7MYIsz/PWCTd 74STFAuEBRQgyr352hUOPUV3yKI0K85R/9aJi906aptFxa+pog9K5eGSghDDr+/orQdx Q10A== 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=PZfiwIiSh1KkFowaK0k3EI9yqZNgRVDZv7AYwSizY1k=; b=Vm7js6MwEBDURRJwJivF6BcjkfYCrvGctqBTyUuI8mpS6n0D3ZNvR2Ny7WsxDwjMKm D5WvnEQa9CODSueMndJn/R69UFTgZ8kNodV1LKHz3SUMFuowuP2lUGtdNDMFcZGBT0y6 efMIuR12qiNqyk0t4xZEtCj1jbIuR2qIHvuMVheZFNQFFLlNLECrtpGMtzuvWs2X8AwF Ww7YI+NPVelDoXFj/G2nAHciqh3fchgkRYsRv/elZEWFuCP/LlHN63qS9frpXgd+ijr1 A+LDF7u0i9d/vWwlEORmc2DN3cmVL+U43ypMvHNN27qPdNoTlGgL1leNaThyj1hVwoGg y5qQ== X-Gm-Message-State: AKGB3mJwRUQNEyVEDnzegLHLvyms75xkUqRY5hXeNmOXhB9bmAC5FGX8 PS+LugRgXVDNWzNeB5bC+fbIA8Ix X-Google-Smtp-Source: ACJfBot2DDdac8aOYptoIN/dpcFT9f1VxxU7pbZB0did+4eLq9Tsy/QeFUBwxvIplrkafyR81IsHlA== X-Received: by 10.223.176.17 with SMTP id f17mr16265750wra.178.1515756713141; Fri, 12 Jan 2018 03:31:53 -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 l8sm2732271wmg.46.2018.01.12.03.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 03:31:52 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 12 Jan 2018 12:30:53 +0100 Message-Id: <1515756676-3860-30-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515756676-3860-1-git-send-email-pbonzini@redhat.com> References: <1515756676-3860-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:c0c::243 Subject: [Qemu-devel] [PULL 29/52] tests/boot-serial-test: Add a test for the moxiesim 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Now that moxiesim supports the -bios parameter, we can check this machine in the boot-serial tester, too, by supplying a mini bios that only writes 'T' characters to the UART. Signed-off-by: Thomas Huth Message-Id: <1512031988-32490-7-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- tests/Makefile.include | 2 ++ tests/boot-serial-test.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 561e14b..13d6684 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -308,6 +308,8 @@ check-qtest-mips64-y = tests/endianness-test$(EXESUF) check-qtest-mips64el-y = tests/endianness-test$(EXESUF) +check-qtest-moxie-y = tests/boot-serial-test$(EXESUF) + check-qtest-ppc-y = tests/endianness-test$(EXESUF) check-qtest-ppc-y += tests/boot-order-test$(EXESUF) check-qtest-ppc-y += tests/prom-env-test$(EXESUF) diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index a39273a..1deddb8 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -40,6 +40,13 @@ static const uint8_t kernel_plml605[] = { 0xfc, 0xff, 0x00, 0xb8 /* bri -4 loop */ }; +static const uint8_t bios_moxiesim[] = { + 0x20, 0x10, 0x00, 0x00, 0x03, 0xf8, /* ldi.s r1,0x3f8 */ + 0x1b, 0x20, 0x00, 0x00, 0x00, 0x54, /* ldi.b r2,'T' */ + 0x1e, 0x12, /* st.b r1,r2 */ + 0x1a, 0x00, 0x00, 0x00, 0x10, 0x00 /* jmpa 0x1000 */ +}; + typedef struct testdef { const char *arch; /* Target architecture */ const char *machine; /* Name of the machine */ @@ -70,6 +77,7 @@ static testdef_t tests[] = { sizeof(kernel_pls3adsp1800), kernel_pls3adsp1800 }, { "microblazeel", "petalogix-ml605", "", "TT", sizeof(kernel_plml605), kernel_plml605 }, + { "moxie", "moxiesim", "", "TT", sizeof(bios_moxiesim), 0, bios_moxiesim }, { NULL } };