From patchwork Tue Dec 20 13:52:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Henrique Barboza X-Patchwork-Id: 635458 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2928131pvb; Tue, 20 Dec 2022 05:58:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pusq4P9SQB85dIUA1V7WWrSweKECynk4mwIdm2GyqTQTo69Sd0msYCf82M0jhxYwGbVfh X-Received: by 2002:a05:6214:2b52:b0:4c7:d93:f918 with SMTP id jy18-20020a0562142b5200b004c70d93f918mr57716595qvb.18.1671544701607; Tue, 20 Dec 2022 05:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671544701; cv=none; d=google.com; s=arc-20160816; b=1CYhCjemENDW6w1w5ArzCGujUkxGpJJSZQ+COwFD7bg1QarBc5Bpay4Yh2usatkVa2 JhBK+bZzDTzm/LVLhiBPE+QI1B1pBPwOaYwmLfSdeLbeqkf6UOzRpaZfO7xaml1im9PH rAxnlgiN6pmNsQLc448t7+yvRK7gwlcw0kjVEIf0lQKl0KmS2yu983LAucrxywcsZ/Tp fOra6gXoXWprnyoFnUPRPNVjURY0sHEIPwjG2UC0P8nPR7m9mWWsVgcjCuvZPkwYHEap Jhyxq9m+is2qZuuabYjB2wcuao/hToqTrcSiQv1NAbpP8Z5HkMNpZ4Qf9IfBkUSp4etL tgrA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y26umyxYZIQKbffD6hLBebjrxc3lj3DIY2bESqX+yW8=; b=TdaItTxEsh7DsvJmZl15Oc36T2wqlB6GZ6ODfbD5nUsnUzj0fi9da45OSFwlPW4IgC y601s0xAKEonM8NtLGEtdjiCJLc9p9wibrqUlsJ+2zdBX1D8cFVtLn1UT0k3Tmes9VfS jLnEAYaosfFna9P6QLYH2Wwej+V4joDiZUNf9Ca7DRZJqPlsS54cJ89kA7pqiunSiDcq GcXAdZZL3WfBiR+SLetkpwevNslwCdNtg/RYSsg4bb9JynKTlWPKSxlmYDg8Dqf+f7yQ Hy//ZdSmiwk3CFSQ5pZ7Rj7lhCUb3gVpIRSewMsZMoWHs/JbDEWd3CNt0v/KPkHoAAOw yhTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="N4X8/K/B"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jk9-20020ad45d49000000b004fdb0c80357si5108956qvb.95.2022.12.20.05.58.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 05:58:21 -0800 (PST) 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=@gmail.com header.s=20210112 header.b="N4X8/K/B"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7d3Y-0004GS-Ps; Tue, 20 Dec 2022 08:53:20 -0500 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 1p7d3V-0004D3-Rn; Tue, 20 Dec 2022 08:53:18 -0500 Received: from mail-oa1-x30.google.com ([2001:4860:4864:20::30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7d3T-00012L-D9; Tue, 20 Dec 2022 08:53:16 -0500 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-1442977d77dso15419977fac.6; Tue, 20 Dec 2022 05:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y26umyxYZIQKbffD6hLBebjrxc3lj3DIY2bESqX+yW8=; b=N4X8/K/Bm9TSecU9vhuD2VVfE6LVb6VMRvVOWijsSRe8Z/N2hzMwTUI6GRAUdXv68G oq7333ThQd9FExBoH7r6rRLdYbx+gHkth9A2eqVwUeajiPCipj/WmgPpTWp7buVP5x05 34qaMlTzExlBIDXp9g1TaeR4iEKAwYlOcOdRmsAUmjIZFeNDrOsISx09xbaIR26g1p5V 5pMcWWfz5l0yeWBUmUvPSvOh7mioalzBzIo85wx71T9GCPdeah1i6Bspov6nopYTXRyQ 1Na+X+vSgWuZ+5AvCIDp/joUFOZfX0/aiqWw+q2kaLT77M8Tt8ejGB3ER7PnuucVj3Vd 9gIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y26umyxYZIQKbffD6hLBebjrxc3lj3DIY2bESqX+yW8=; b=oowBvXCv4nQX5we2ogpsp6zIf5mBZhKxHrhIis9GS2q0phtJKUZT7AUkqWa0ZeCC6/ rVAZ2H0KtkKXsiJnGzm2hDwKKnEpCDX17P3R4LUkyDLr2MZZ1RG9Hb9W6Ehnj1TUIMah AguQO843P5kmmjPAorqLnSqGj2wvQK5hfyh7mipMM7XWZqPKPaNZoog21W0tf9Ac8QoC vJny20Gi1k01HiZqi19uA4XRncYodXWIllENvEekx1yZZmd/eW3oO5TYb0Pv6LjUEnS/ ItUJLxBZyQVv5ARgGuBtzx+fVJwC5cHCxxxBEfIr7aBXEO1usA612wHeP0uc2fTOP1hr bUZQ== X-Gm-Message-State: ANoB5pkT3rcFBHgOiqMvLGqMOqXRGx+Uej98eJqTY31mdlpcjUZuiAYP Pv6EcJvZ04eIiaf0AbolCGr4FMErCJQ= X-Received: by 2002:a05:6870:a40a:b0:143:aebb:57d8 with SMTP id m10-20020a056870a40a00b00143aebb57d8mr23728428oal.49.1671544392212; Tue, 20 Dec 2022 05:53:12 -0800 (PST) Received: from fedora.dc1.ventanamicro.com (201-43-103-101.dsl.telesp.net.br. [201.43.103.101]) by smtp.gmail.com with ESMTPSA id f14-20020a056870898e00b0014474019e50sm5994933oaq.24.2022.12.20.05.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 05:53:11 -0800 (PST) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, danielhb413@gmail.com, peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/15] target/ppc/kvm: Add missing "cpu.h" and "exec/hwaddr.h" Date: Tue, 20 Dec 2022 10:52:41 -0300 Message-Id: <20221220135251.155176-6-danielhb413@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220135251.155176-1-danielhb413@gmail.com> References: <20221220135251.155176-1-danielhb413@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2001:4860:4864:20::30; envelope-from=danielhb413@gmail.com; helo=mail-oa1-x30.google.com 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, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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 From: Philippe Mathieu-Daudé kvm_ppc.h is missing various declarations from "cpu.h": target/ppc/kvm_ppc.h:128:40: error: unknown type name 'CPUPPCState'; did you mean 'CPUState'? static inline int kvmppc_get_hypercall(CPUPPCState *env, ^~~~~~~~~~~ CPUState include/qemu/typedefs.h:45:25: note: 'CPUState' declared here typedef struct CPUState CPUState; ^ target/ppc/kvm_ppc.h:134:40: error: unknown type name 'PowerPCCPU' static inline int kvmppc_set_interrupt(PowerPCCPU *cpu, int irq, int level) ^ target/ppc/kvm_ppc.h:285:38: error: unknown type name 'hwaddr' hwaddr ptex, int n) ^ target/ppc/kvm_ppc.h:220:15: error: unknown type name 'target_ulong' static inline target_ulong kvmppc_configure_v3_mmu(PowerPCCPU *cpu, ^ target/ppc/kvm_ppc.h:286:38: error: unknown type name 'ppc_hash_pte64_t' static inline void kvmppc_read_hptes(ppc_hash_pte64_t *hptes, ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel Henrique Barboza Message-Id: <20221213123550.39302-2-philmd@linaro.org> Signed-off-by: Daniel Henrique Barboza --- target/ppc/kvm_ppc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/ppc/kvm_ppc.h b/target/ppc/kvm_ppc.h index ee9325bf9a..5fd9753953 100644 --- a/target/ppc/kvm_ppc.h +++ b/target/ppc/kvm_ppc.h @@ -9,6 +9,9 @@ #ifndef KVM_PPC_H #define KVM_PPC_H +#include "exec/hwaddr.h" +#include "cpu.h" + #define TYPE_HOST_POWERPC_CPU POWERPC_CPU_TYPE_NAME("host") #ifdef CONFIG_KVM