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.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 1F7D2C48BC2 for ; Thu, 24 Jun 2021 03:19:59 +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 AB09C61074 for ; Thu, 24 Jun 2021 03:19:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB09C61074 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwFuH-0001Ec-9R for qemu-devel@archiver.kernel.org; Wed, 23 Jun 2021 23:19:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwFrt-0007yV-0C; Wed, 23 Jun 2021 23:17:29 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:40295 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwFrq-0006O5-6f; Wed, 23 Jun 2021 23:17:28 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4G9QKr0zjSz9sX2; Thu, 24 Jun 2021 13:17:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1624504640; bh=t3OTd+dIj4e+ubUL1kWNCiBKo033tBVC635fB7duIbY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mZ1fAAhqwfFlWdHKOPGbOP2+Uz6a5PYHxO44gc6AZRKv3vKZDZCws2HN8kNa4L4lh dwSVO51NCsl1jcXMrgpwG9XJQll3/WeJC9bJAtNKTTaQMCGrduKoawjO+HljWiye27 iKAcvCyRHdw7x5c5H1G0kYBlBRSbex/sQTQdXkeU= Date: Thu, 24 Jun 2021 11:25:43 +1000 From: David Gibson To: Greg Kurz Subject: Re: [PATCH 0/2] target/ppc: Drop PowerPCCPUClass::interrupts_big_endian() Message-ID: References: <20210622140926.677618-1-groug@kaod.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NF32ghN7L4BXdYZ6" Content-Disposition: inline In-Reply-To: <20210622140926.677618-1-groug@kaod.org> Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-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: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --NF32ghN7L4BXdYZ6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 22, 2021 at 04:09:24PM +0200, Greg Kurz wrote: > Class method is overkill and cause code duplication in CPU setup function= s. > Switch to a more lightweight solution with a unique inline helper. LGTM, applied to ppc-for-6.1, thanks. >=20 > Greg Kurz (2): > target/ppc: Introduce ppc_interrupts_little_endian() > target/ppc: Drop PowerPCCPUClass::interrupts_big_endian() >=20 > target/ppc/cpu-qom.h | 1 - > target/ppc/cpu.h | 15 +++++++++++++++ > target/ppc/arch_dump.c | 8 +++----- > target/ppc/cpu_init.c | 17 ----------------- > target/ppc/excp_helper.c | 3 +-- > 5 files changed, 19 insertions(+), 25 deletions(-) >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --NF32ghN7L4BXdYZ6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmDT3xUACgkQbDjKyiDZ s5KAZhAAzO7NHdqvLegcZGBtDoKVEDpS1Z56w1ktnWKFguu0yoQCEt4JG7r2rwzD /AGaR7NeOG0Q+8j0l1/h9iRhY6RqZSrJcxeiuz489H8SmVgZ26YXF6vbS92RwKYC HH3bMNpmj79Q3WO59DCIUHrXHKkPBxuVTsDXLvYPcD5MeXYWg6dpSKQ4KDlv5f9p YRsOSFx6yYrzugqLOuPEerCxsNV1Wr70cMPYDu3Eb9mIGuI5qPIxKoDDy7mXQOEa 8z2ZJDj7cHZf7qwMbkht77/eWcuLwBAwfyrL25/sUoirDSoqsRg7cezUsbn0FmBo 73iF3Sf2KxFvslSoGJD8ovai+PEex/oKeWUXO5f+MFLyZJxdunbR22S175G1pR5Z RfLaB3mqi0+NP6gpAT7iWSIsf7SAETTtOWgbvrd1YXefXZpf9j/vSOY6FVomcTO6 YkXlf08yuTE7BSI6nNtq+WQOdwAoAnosdUlw0z8xXzyVeG7tMM7qCXJ2FKMOg7mI mylkarVLApWDB+3803bv7igx/ydSP17ZyMjUeIhrxAd2BWDYyRxP72LH2uo4AxXd 6AixD5DgLi1+66RVi6u9lo5wKJ0yHW/OvTeOS6Se7drIoagQy9ubT/jV1v06jhLj Z5AlwDQ3B114z7k4VSoiE/paR9hu5j7uIBwsTJ+ssGrmtvgjsqE= =HRZJ -----END PGP SIGNATURE----- --NF32ghN7L4BXdYZ6--