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=-8.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 1B8CEC3B185 for ; Mon, 10 Feb 2020 09:37:04 +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 DE8D2214DB for ; Mon, 10 Feb 2020 09:37:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UqxoWf9x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE8D2214DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j15V1-0006EV-3i for qemu-devel@archiver.kernel.org; Mon, 10 Feb 2020 04:37:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45558) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j15Tu-0005VZ-Mf for qemu-devel@nongnu.org; Mon, 10 Feb 2020 04:35:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j15Tt-0005KW-KQ for qemu-devel@nongnu.org; Mon, 10 Feb 2020 04:35:54 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:46089 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j15Tt-0005JB-Gq for qemu-devel@nongnu.org; Mon, 10 Feb 2020 04:35:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581327353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp; bh=xuBMgiSqdTSsGF1dZsZw842HHLW31mEJyhLUTT87ehY=; b=UqxoWf9xJOntiKymfIWMELthslW561yjPK8tzRVF/5wKNtz8j0DCTY9AItvQjuzT0xtUEC ZwR9rcmpPhvFpBs6HnLKssdWkPbYWGDCrNu3jptbORSCjkew8hQ8zyC3ErZVqwUQi1mAO+ M2z/G67Jh6ikrhrNmC7Q8sxkUPT6AE0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-Y0kBKoXXPk2KYvYl9-B9LA-1; Mon, 10 Feb 2020 04:35:49 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0CD7E18A6EC2; Mon, 10 Feb 2020 09:35:45 +0000 (UTC) Received: from thuth.remote.csb (ovpn-116-219.ams2.redhat.com [10.36.116.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6EC2960BF1; Mon, 10 Feb 2020 09:35:25 +0000 (UTC) Subject: Tricore default machine (was: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0) To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org References: <20200207161948.15972-1-philmd@redhat.com> <20200207161948.15972-2-philmd@redhat.com> From: Thomas Huth Openpgp: preference=signencrypt Message-ID: <9590e020-226d-bc85-e496-95b4f0116f69@redhat.com> Date: Mon, 10 Feb 2020 10:35:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200207161948.15972-2-philmd@redhat.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: Y0kBKoXXPk2KYvYl9-B9LA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 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: Cornelia Huck , Sagar Karandikar , "Michael S. Tsirkin" , Anthony Green , Mark Cave-Ayland , Alistair Francis , "Edgar E. Iglesias" , Guan Xuetao , Marek Vasut , Jia Liu , qemu-trivial@nongnu.org, Helge Deller , David Hildenbrand , Magnus Damm , Halil Pasic , Christian Borntraeger , qemu-ppc@nongnu.org, Aleksandar Rikalo , David Gibson , Artyom Tarasenko , Eduardo Habkost , Richard Henderson , qemu-s390x@nongnu.org, Stafford Horne , Richard Henderson , qemu-riscv@nongnu.org, Thomas Huth , Bastian Koppelmann , Chris Wulff , Laurent Vivier , Michael Walle , Palmer Dabbelt , Aleksandar Markovic , Paolo Bonzini , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 07/02/2020 17.19, Philippe Mathieu-Daud=C3=A9 wrote: > The MachineClass is already zeroed on creation. >=20 > Note: The code setting is_default=3D0 in hw/i386/pc_piix.c is > different (related to compat options). When adding a > new versioned machine, we want it to be the new default, > so we have to mark the previous one as not default. >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > v3: new patch > --- > hw/lm32/lm32_boards.c | 1 - > hw/lm32/milkymist.c | 1 - > hw/m68k/q800.c | 1 - > hw/microblaze/petalogix_ml605_mmu.c | 1 - > hw/tricore/tricore_testboard.c | 1 - > 5 files changed, 5 deletions(-) [...] > diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboar= d.c > index 20c9ccb3ce..8ec2b5bddd 100644 > --- a/hw/tricore/tricore_testboard.c > +++ b/hw/tricore/tricore_testboard.c > @@ -105,7 +105,6 @@ static void ttb_machine_init(MachineClass *mc) > { > mc->desc =3D "a minimal TriCore board"; > mc->init =3D tricoreboard_init; > - mc->is_default =3D 0; > mc->default_cpu_type =3D TRICORE_CPU_TYPE_NAME("tc1796"); > } I wonder whether we should simply make that machine the default for qemu-system-tricore? There is only one machine here, and not having a default machine always causes some headaches in the tests... (see e.g. tests/qemu-iotests/check for example) Thomas From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1j15Tv-0005W7-F1 for mharc-qemu-riscv@gnu.org; Mon, 10 Feb 2020 04:35:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45529) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j15Ts-0005V7-TZ for qemu-riscv@nongnu.org; Mon, 10 Feb 2020 04:35:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j15Tr-0005AB-QW for qemu-riscv@nongnu.org; Mon, 10 Feb 2020 04:35:52 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:56699 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j15Tr-00059W-NE for qemu-riscv@nongnu.org; Mon, 10 Feb 2020 04:35:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581327351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:openpgp:openpgp; bh=xuBMgiSqdTSsGF1dZsZw842HHLW31mEJyhLUTT87ehY=; b=X+9buSOACrAs+kekRTW79nju+80vxTboJf6At2t7r9MhBPZrP0Ihcl/uVhiUB4qyGjs+hm yPHKT+gJGndX+LfsDEdtnvYnrPGKR5LCZNfTzrR5itYUjzYEBPlr+Zu2XKRYn93FWMn7y5 rCoKkPxndCCwmrdMgv30D7cBNBACa6E= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-215-Y0kBKoXXPk2KYvYl9-B9LA-1; Mon, 10 Feb 2020 04:35:49 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0CD7E18A6EC2; Mon, 10 Feb 2020 09:35:45 +0000 (UTC) Received: from thuth.remote.csb (ovpn-116-219.ams2.redhat.com [10.36.116.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6EC2960BF1; Mon, 10 Feb 2020 09:35:25 +0000 (UTC) Subject: Tricore default machine (was: [PATCH v4 1/3] hw: Do not initialize MachineClass::is_default to 0) To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Chris Wulff , Sagar Karandikar , "Michael S. Tsirkin" , Anthony Green , Mark Cave-Ayland , Alistair Francis , "Edgar E. Iglesias" , Guan Xuetao , Marek Vasut , Jia Liu , qemu-trivial@nongnu.org, Helge Deller , David Hildenbrand , Magnus Damm , Halil Pasic , Christian Borntraeger , Marcel Apfelbaum , Palmer Dabbelt , Aleksandar Rikalo , Richard Henderson , Artyom Tarasenko , Eduardo Habkost , Richard Henderson , qemu-s390x@nongnu.org, Stafford Horne , David Gibson , qemu-riscv@nongnu.org, Thomas Huth , Bastian Koppelmann , Cornelia Huck , Laurent Vivier , Michael Walle , qemu-ppc@nongnu.org, Aleksandar Markovic , Paolo Bonzini , Aurelien Jarno References: <20200207161948.15972-1-philmd@redhat.com> <20200207161948.15972-2-philmd@redhat.com> From: Thomas Huth Openpgp: preference=signencrypt Message-ID: <9590e020-226d-bc85-e496-95b4f0116f69@redhat.com> Date: Mon, 10 Feb 2020 10:35:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200207161948.15972-2-philmd@redhat.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: Y0kBKoXXPk2KYvYl9-B9LA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2020 09:35:54 -0000 On 07/02/2020 17.19, Philippe Mathieu-Daud=C3=A9 wrote: > The MachineClass is already zeroed on creation. >=20 > Note: The code setting is_default=3D0 in hw/i386/pc_piix.c is > different (related to compat options). When adding a > new versioned machine, we want it to be the new default, > so we have to mark the previous one as not default. >=20 > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > v3: new patch > --- > hw/lm32/lm32_boards.c | 1 - > hw/lm32/milkymist.c | 1 - > hw/m68k/q800.c | 1 - > hw/microblaze/petalogix_ml605_mmu.c | 1 - > hw/tricore/tricore_testboard.c | 1 - > 5 files changed, 5 deletions(-) [...] > diff --git a/hw/tricore/tricore_testboard.c b/hw/tricore/tricore_testboar= d.c > index 20c9ccb3ce..8ec2b5bddd 100644 > --- a/hw/tricore/tricore_testboard.c > +++ b/hw/tricore/tricore_testboard.c > @@ -105,7 +105,6 @@ static void ttb_machine_init(MachineClass *mc) > { > mc->desc =3D "a minimal TriCore board"; > mc->init =3D tricoreboard_init; > - mc->is_default =3D 0; > mc->default_cpu_type =3D TRICORE_CPU_TYPE_NAME("tc1796"); > } I wonder whether we should simply make that machine the default for qemu-system-tricore? There is only one machine here, and not having a default machine always causes some headaches in the tests... (see e.g. tests/qemu-iotests/check for example) Thomas