From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6730AC11F64 for ; Thu, 1 Jul 2021 10:54:35 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 29021613FC for ; Thu, 1 Jul 2021 10:54:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 29021613FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyuL4-0004AL-CN for qemu-devel@archiver.kernel.org; Thu, 01 Jul 2021 06:54:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyuKP-0003U6-47 for qemu-devel@nongnu.org; Thu, 01 Jul 2021 06:53:53 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:45840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyuKN-0005uQ-Bf for qemu-devel@nongnu.org; Thu, 01 Jul 2021 06:53:52 -0400 Received: by mail-ej1-x62e.google.com with SMTP id hc16so9621043ejc.12 for ; Thu, 01 Jul 2021 03:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JuLJmX0rQLAynBKjf5A+b+hWxEqT+K7BOWVCg44TYUA=; b=y76gZHJZb35lsT2r60lkQ/8c0LFt+1twf+rnud7Ze49xjVWpzP13jknp90ObahHA9J 8++x5INZmICmwtNabOmIxQzmhgwKAKbh/VCTERYrZJj8lXaPE3D9zMcuuTL0SrQ2X0nt OY6RZ7wwKmMwKr38u8wQ7jxtlVOb8LkvsC211ZIoMPW4/tKHqah6FL4sDDqGAMZcoMju ohiBxy2Djzmz3fKw4wbPmC4B8O+5caRD6VZ1SAa6pUPOnbotw28IaVpMLotpPKsyLJFX yEdN/ABARDnGcq0ffV7zT+SryW4/ntZ9ssQvgBpFdT79As7Nn7oSlaffvOuQsgfWk0Ks H2qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JuLJmX0rQLAynBKjf5A+b+hWxEqT+K7BOWVCg44TYUA=; b=Ug8mUgvBTy3d7CHjdJyQsM9Vn8tMlr9riTWac14QTJsExhD767mLdZYxiEkDlMFn0S p2W7TGyD2qZ+V5Y2DLXWVdTBu/Hg2gjLYcwr5WPEGO+6kJIauw5X9eOxzc87NMhZg25d c/Gf6PL9/bWp9E+ThVf2AuDO1m6EkjoMewXAOdH6ZbAmjd2WGi6yEbinoZDFj8COVffU F1FOp9vMr574pKFZL+JG5xYfNl/8XwIaGxIqcgEeuZA8uNsYyrXl8gl7DnsyW0HBzrw3 USKs/1Xw+zUOTyidkZ7drMpiiG/ylBG2vs4naLGzwCvNOreR/DAmPo0mqL5Hyx1F+MsW hLgA== X-Gm-Message-State: AOAM532bsLLGnyQz+YAkPCF4DTc91M0BX+ffsb5uwAjJw8oBgLWLlx+C OyTdPRJMooJkQuCyMDhp/2yIVSmETu8XdiyB+udeBg== X-Google-Smtp-Source: ABdhPJwkpm1dq6vB7VKfh3gX12Z6QqojH4lNKqT2VGwAiocHhIIbk/Cbbu3GoKY2da52JRyCQ7fnDXGFJXWk2gj7mvE= X-Received: by 2002:a17:906:a108:: with SMTP id t8mr39757102ejy.407.1625136829262; Thu, 01 Jul 2021 03:53:49 -0700 (PDT) MIME-Version: 1.0 References: <1624881885-31692-1-git-send-email-gaosong@loongson.cn> <1624881885-31692-21-git-send-email-gaosong@loongson.cn> <5188a660-4bec-45bd-81bc-25dd3ba38f9c@loongson.cn> <87y2arpu7u.fsf@linaro.org> <32f41893-ac70-1138-94b8-ca09748d2b69@loongson.cn> <87k0mapbb5.fsf@linaro.org> In-Reply-To: <87k0mapbb5.fsf@linaro.org> From: Peter Maydell Date: Thu, 1 Jul 2021 11:53:11 +0100 Message-ID: Subject: Re: [PATCH 20/20] target/loongarch: Add linux-user emulation support To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=peter.maydell@linaro.org; helo=mail-ej1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Huacai Chen , Richard Henderson , QEMU Developers , maobibo , Song Gao , Alistair Francis , Paolo Bonzini , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Thu, 1 Jul 2021 at 11:40, Alex Benn=C3=A9e wrot= e: > Thomas Huth writes: > > I think we'd need some way of automatic regression testing for new > > targets. If your board has a serial UART that is easy to use, then > > please add a test in tests/qtest/boot-serial-test.c. > > You can also write a very minimal softmmu harness with either > semihosting or a debug port - currently we can run the tests for > x86/arm/alpha. See tests/tcg/multiarch/system and the various > boot.S/kernel.ld in tests/tcg/FOO/system and the Makefile.softmmu-target > in the relevant directories. You can only use semihosting if your architecture has actually defined (ie written down in a spec document that you intend to adhere to) an ABI for it, though... -- PMM