From patchwork Fri Oct 13 12:56:23 2023 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: 733202 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1448734wrv; Fri, 13 Oct 2023 05:58:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGkJMAPXW9MMNe5Wdyf2fuamh/YtuXFfuNQTtJs+0cIHmheoUqME/8ms1/l/fr8n/GYOoZ X-Received: by 2002:a0c:e254:0:b0:66c:ff4f:8963 with SMTP id x20-20020a0ce254000000b0066cff4f8963mr8564408qvl.35.1697201891776; Fri, 13 Oct 2023 05:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697201891; cv=none; d=google.com; s=arc-20160816; b=Dt6Jb5qvCdzjdz/UQ1f/dJzxE35V818nr7JJ0hxmDOjodZnY5Boz+y4KzJzmbaiZsd woULlLc58gxpYOoY0+OdwTXCFZJUG2RB7TlRSjAgFBO8QiRit5yePEX8pB9CgItttnVf M9+2TQIBLklhG/r+/Tp7A4FcjrJOff4mSQX+xztj/KrucNlVBeseoREKX8fmQj/7oavn OvBS9XbDAHJOn/9TO7VxNHFDm0yCuMjcq974OXZbiCV9jLU1dYze5VQzxkUKKhhhsbeG 4kOGRoS8kL2vhUdvuP3OIQ6zNavNfaVPx1XsOVnihmAYkYnMCw7SykeKuXwagleM4k1Y pNww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=2sd8M/BA0KQYN9MHAuIQYiELCXQubNQTUhqVxhnT8/M=; fh=VA6j7lkwZBpc1StxpFljCA0aH/klDdhOAPrIIfLw9Rk=; b=AzAK6lxY5TNs19uk4h+clO3xc9WPknoOqL/i6dZXrHzuGsx6u3nyzHDEp9Ud83eV60 b3tt4z+4O88MaJJuKA0JQj4qlKioIGFtcwDcwQMBiYrZtKRu5JYVpqNpfKh17IsL1KLZ Dc5T4N+6AiCQkEvDYrMxEkjhQemAgPTI6Z1+d5bHaCXdVQSf64jUB8s3fGRl65rf0zbO itXu9WrwZlZVqSXuqXeJe5+wRYZ14Vw+EMgAL0cV8zE3NIzB9IOIg79XmVCX1a5K0wDc sMuxrD7J7EL5OhUCQzeWsOtWeFaLj/jFB6FgOhq+UMAVf6u5BFnQdk8LtBWOT8EH+rFe Y+5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JrEqhIx2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jr11-20020a0562142a8b00b0065b1f75bf6esi1205889qvb.23.2023.10.13.05.58.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Oct 2023 05:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JrEqhIx2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrHia-0002O1-VZ; Fri, 13 Oct 2023 08:56:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHiY-0002GL-Nh for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:56:39 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrHiV-0002Xb-9W for qemu-devel@nongnu.org; Fri, 13 Oct 2023 08:56:37 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-522bd411679so3629328a12.0 for ; Fri, 13 Oct 2023 05:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697201793; x=1697806593; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2sd8M/BA0KQYN9MHAuIQYiELCXQubNQTUhqVxhnT8/M=; b=JrEqhIx2CFFY0bGKCtUZlwSbVuYQc+u9HuUjHwX0JYjGTQbuT7EoCGr80JvOBX1IEI VMCtE1K2WFfjwYGy+ot7Ifi1mbJZBUpd4cRaXkGvE+cd2CCH2lRxi4irmnccCadRLat/ iTP6IZTCL4d0JuOY0Zs/TIFsbSinGPDbgsUgRYLDyAhGPPPjv7ST0ZWbT4Sl+HossOFU 7W04ET7AbTgyXfkEOYOU9dx0/EXvmOuUF+9d+CKXMlfuAcp5Ar2N5bh47HfSlrYwjTXw oLWxMA6CQ0ouxudgM5+f3gWXOs/v4knlWGo8lWRgZmFgIjSfRJF4N4eZLMdGmSncBxDH 10TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697201793; x=1697806593; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2sd8M/BA0KQYN9MHAuIQYiELCXQubNQTUhqVxhnT8/M=; b=W39v60l44Ob9OwRCbN/ezAMfZTwRRydEuGK1KuG3N6+yvqRxsu8wzTwbjJVfRC3n2h wCwUoIfC3MTFO91PLpHHkA6xn6+ZYo0gSWrC43m5M5SjdxLJqd2YxHpgwdq04dlK5AQI xFyNFJufDcH8kROemu3HcpyetOLHTFhhuXN6RfrLjRMVthfDT5jcTtN0LxFzDXCukg2q x/TPxBLOk9LuQSe+t/Ir/ptex37sX6YbZsCsxiVOoVtSeoOfdZYBAtoCfIBYK1KHUBCn vVKFwAolkdtmIW3MeHHy61I2RFGPGdIJBzR/1ND8aONuyRYgHsis4qnWMoabB7HnFYGw A5Xg== X-Gm-Message-State: AOJu0YxbjQeVdrc1UDx0vmNVUFb71RwkjVMktdNWEXkU5h6vFcubj17G mlTU9/0NHtTNp46daqxQeAIlMUP/9FzWpxaCeXQ= X-Received: by 2002:a05:6402:288f:b0:53d:d7e5:a9b9 with SMTP id eg15-20020a056402288f00b0053dd7e5a9b9mr6990855edb.0.1697201793248; Fri, 13 Oct 2023 05:56:33 -0700 (PDT) Received: from m1x-phil.lan ([176.172.118.168]) by smtp.gmail.com with ESMTPSA id f26-20020a056402005a00b00530bc7cf377sm11451578edu.12.2023.10.13.05.56.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 13 Oct 2023 05:56:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Gibson , qemu-ppc@nongnu.org, Nicholas Piggin , Harsh Prateek Bora , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH 0/7] target/ppc: Move most of 'cpu-qom.h' definitions to 'cpu.h' Date: Fri, 13 Oct 2023 14:56:23 +0200 Message-ID: <20231013125630.95116-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=philmd@linaro.org; helo=mail-ed1-x52f.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hi, I'm going to post a v2 of "target: Make 'cpu-qom.h' really target agnostic" [*]. Since the series is already big enough, I extracted the PPC specific patches in their own preliminary series. In short, "cpu-qom.h" exposes QOM definitions and must be target agnostic. This series moves the PPC specific definitions to target/ppc/cpu.h. Please review, Phil. [*] https://lore.kernel.org/qemu-devel/20231010092901.99189-1-philmd@linaro.org/ Philippe Mathieu-Daudé (7): hw/ppc/spapr: Restrict PPCTimebase structure declaration to sPAPR target/ppc: Define powerpc_pm_insn_t in 'internal.h' target/ppc: Move ppc_cpu_class_by_name() declaration to 'cpu.h' target/ppc: Move PowerPCCPUClass definition to 'cpu.h' target/ppc: Move powerpc_excp_t definition to 'cpu.h' target/ppc: Move powerpc_mmu_t definition to 'cpu.h' target/ppc: Move powerpc_input_t definition to 'cpu.h' include/hw/ppc/ppc.h | 2 +- include/hw/ppc/spapr.h | 6 ++ target/ppc/cpu-qom.h | 183 ----------------------------------------- target/ppc/cpu.h | 141 +++++++++++++++++++++++++++++++ target/ppc/internal.h | 9 ++ hw/ppc/ppc.c | 107 ------------------------ hw/ppc/spapr.c | 116 ++++++++++++++++++++++++++ 7 files changed, 273 insertions(+), 291 deletions(-)