From patchwork Mon May 3 17:12:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1473267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; 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.a=rsa-sha256 header.s=20161025 header.b=YNfRrn5N; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4FYqQs0fl6z9sCD for ; Tue, 4 May 2021 03:17:08 +1000 (AEST) Received: from localhost ([::1]:51220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldcBu-00047i-P7 for incoming@patchwork.ozlabs.org; Mon, 03 May 2021 13:17:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldc86-0001ho-Ra for qemu-devel@nongnu.org; Mon, 03 May 2021 13:13:11 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:40950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldc85-0003te-A2 for qemu-devel@nongnu.org; Mon, 03 May 2021 13:13:10 -0400 Received: by mail-wm1-x32f.google.com with SMTP id y124-20020a1c32820000b029010c93864955so6175223wmy.5 for ; Mon, 03 May 2021 10:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vq/Xi8dlTbigKHadG9OmpaHZDNbMK0I5NasTNYcvABQ=; b=YNfRrn5NqDT551rIA89vudrAOKoEgdnXOa4oVuMixBE3S6wbsnGgPZQAYvg2Jc7xq8 gaSXokv8mM4+E9fO81JaYSctLPLZHSjomBzMoGbshShFuIReOhjpbPAgXVXnqRCOGFs8 fPFGmHbFImFNWXPywQU48WfsBQE8CpAtkAfg248hXV1c9uA67uH7LPn1sOjg6beyDqUs gKBPLcIpl26sz4NeBW5mHbMJE5tx4I1G7p4NqhawozuOFK67mMUDwTtTGjI1QCN1IKq1 m+2mDpeV5EMQEZ43Eo+piT2IbbkZfXVufT2r4K+yJ2bzs/iYxBDtgpfGDoycO7GU3Vyt 8sCQ== 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 :mime-version:content-transfer-encoding; bh=Vq/Xi8dlTbigKHadG9OmpaHZDNbMK0I5NasTNYcvABQ=; b=ph6PyZY621tdg34dHEKHclm3NPE0vL8/yn9GGNkmMaBIvpZmqj041426fifBHaSlX+ 0vcyEn5F6aOxiqIGWMzKxhKNTgJAlr2tKt6DeRvvPBLxDWsWtqYASVrfh6zXV4bZZUy8 uZIeV+tpbUwypFR3LgEGuL4cnY8Pl7cfjlRwmmsEEFgwuDmpBJfX1KW5ybJOA/3fcLb7 l9OF+Fg3/Tm2Qs4wZTvhI9F6ZI7j+31TmKC8xsJnX8svKDZn+gKhHq+4kiySA6ieucsP IbcpdjJTsnVjfuboyC2t+BiXdFO/eclQr+iIBk/iR2HrbZbgEpuqrRSL5TNAyqsKjZ1t IJOg== X-Gm-Message-State: AOAM5339SSo+oNeqo8wcJR3+40Ve54Nj0lnimNNLtomHWgiZJH4WTdgP hgSWo1L68anawkKK+knZOLIPxvB0mu7JdA== X-Google-Smtp-Source: ABdhPJyav7V4EW7InSGKnwl+8jjP8SHeiq+X4AcHiUngjuAWSJFi/C0a0VD4dRlZ2pDUdpVKR5z0kA== X-Received: by 2002:a1c:3d05:: with SMTP id k5mr22139692wma.182.1620061985251; Mon, 03 May 2021 10:13:05 -0700 (PDT) Received: from x1w.redhat.com (anancy-651-1-208-144.w109-217.abo.wanadoo.fr. [109.217.237.144]) by smtp.gmail.com with ESMTPSA id b12sm13174763wro.28.2021.05.03.10.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 10:13:04 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 0/6] hw/sparc/sun4m: Introduce Sun4mMachineClass to access sun4m_hwdefs Date: Mon, 3 May 2021 19:12:57 +0200 Message-Id: <20210503171303.822501-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Mark Cave-Ayland , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , Artyom Tarasenko Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Missing review: 6 Hi Mark, This series QOM'ify the sun4m machines. I need it for a further memory maxsize check. It is mostly code movement (and the diff-stat is good). Since v2: - use static const variable for hwdef (Richard) - added Richard's R-b tag Since v1: - Full rewrite after Mark review Philippe Mathieu-Daudé (6): hw/sparc/sun4m: Have sun4m machines inherit new TYPE_SUN4M_MACHINE hw/sparc/sun4m: Introduce Sun4mMachineClass hw/sparc/sun4m: Factor out sun4m_machine_class_init() hw/sparc/sun4m: Register machine types in sun4m_machine_types[] hw/sparc/sun4m: Fix code style for checkpatch.pl hw/sparc/sun4m: Move each sun4m_hwdef definition in its class_init hw/sparc/sun4m.c | 459 +++++++++++++++++++---------------------------- 1 file changed, 186 insertions(+), 273 deletions(-) Reviewed-by: Mark Cave-Ayland