From patchwork Tue Jan 16 14:17:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 861640 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="BfTqeDBv"; 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 3zLY1X27Gtz9s7v for ; Wed, 17 Jan 2018 01:45:52 +1100 (AEDT) Received: from localhost ([::1]:39380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebSUo-0000B6-Bb for incoming@patchwork.ozlabs.org; Tue, 16 Jan 2018 09:45:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebS4A-00038T-DL for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebS48-0004qO-PK for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:18 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:43483) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebS48-0004p9-In for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:16 -0500 Received: by mail-wm0-x241.google.com with SMTP id g1so8675439wmg.2 for ; Tue, 16 Jan 2018 06:18:16 -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=BfTqeDBvaO13IGjYBSAnavG30LOo5il4IA4KXiQYt4Hbrbhm4PXKR7MODFCuq5IzKg MusR8FD0tWAsyAhoikyApxorIxwwm2PmZaOiVMrh0uKIMuYJNh3dMq6mqS6i6JpGiRNt Rr4q5nRUxBGgbFLRpfUeJXezHhIcQAo+eWml0tkL1GBeV2gPA1HKyT0ub0kJpuGTm//F QkXZrIyn0fGSOg3jyiJ1PfOL9S25k7ltUvoiHbLaj41YSD9D3SzEiDPcbMAXLXZwT7JA tBNIk2HXdBJnP9+Gh6uWUBK7/RWb5sR5F7tq2dzLXa1zFDGOADYuidgDgMDqYuX/09sB HMuQ== 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=r1xSC9VeuYiRe6QymWPuBYOcSYcgEGvLEwlaHQ1Wv9kNoL+JvkQ53dqWo0o7jc46sg hA1q7bl16o8ksljLIoLSfKkQijbPIQdxN9SOzRbk1CeJa5SfA/chgbhq6iGCgW8fUrBM nfWDmIAyXXr9ODj4uDmKhJSP/2O2q+eLIOX2YR7HLs/NquzSPMV7I8qHbGx1pR3x68KR zj5qifoMhgBd/FVyX0okOAt2VYaBpDsde2rgdGbJMtYWbf5MtSJJ0GX21pjlRbrRwFAW 5KwjBYZX5Aori6HBygc6JqgB90+d7sFMK9moE+AYd8wbpIVL8+ayiNkWhChZeIUco316 F3Kw== X-Gm-Message-State: AKwxytdl6hGkjBf96HIzcIYKGgTdJh+nm0AK9tpH+ehIFf8jAydkl/71 SDiV7B3O+42O+2R8gEIFqQTKSTQm X-Google-Smtp-Source: ACJfBovjyOww1zQWc3MoPZ3Wlyt9+ZPofuDoEYClxUIqHLZno65EZLDOyfLq4slI6zjuV0Ud36p1+w== X-Received: by 10.28.23.149 with SMTP id 143mr12993942wmx.83.1516112295313; Tue, 16 Jan 2018 06:18:15 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:18:14 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 15:17:09 +0100 Message-Id: <1516112253-14480-28-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::241 Subject: [Qemu-devel] [PULL 27/51] 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 } };