From nobody Mon Feb 9 23:03:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1644344083; cv=none; d=zohomail.com; s=zohoarc; b=gVPF9EUbI3qoRc/DKn1Eo92NUAgFWST6iD39WzTaP2GgPSgcB4rMfpyytExViGauaGbzx+y3IE0ueq3cyCqnmV/OUd6tRQE0AJ56Esjn3rUt8YtPsi+bebmsG9iEbLTwih/ssN8RMDMgfwz7ADulMk6RJp0FimUpu8dwY2E31Qw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644344083; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ha1poJJsMbEmVT2TWrI2VeQn1cQITks/LrH1hi0Yo+M=; b=AlW2XpM4+fFTSSMtaYY4f+fxvzy7zxGBYsjHW6+e1IpphMBumZGIiJfmvJeRS2PchvaToIcoxvYlWMoxeW69ZJxg96KNYy9+QFeh1tfkWq+N+s0DKKXH1dgcGeRjFu38TNthJpczaaGGunAGnSRjig+/w73XspzW5/8pHAo7IyU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16443440834211005.3675175543749; Tue, 8 Feb 2022 10:14:43 -0800 (PST) Received: from localhost ([::1]:48448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHV0k-0003zn-Er for importer@patchew.org; Tue, 08 Feb 2022 13:14:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHSLn-0001MD-5c for qemu-devel@nongnu.org; Tue, 08 Feb 2022 10:24:15 -0500 Received: from [2607:f8b0:4864:20::42c] (port=38686 helo=mail-pf1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHSLk-0000O8-FZ for qemu-devel@nongnu.org; Tue, 08 Feb 2022 10:24:14 -0500 Received: by mail-pf1-x42c.google.com with SMTP id e28so19429579pfj.5 for ; Tue, 08 Feb 2022 07:24:02 -0800 (PST) Received: from localhost.localdomain (154.red-83-50-83.dynamicip.rima-tde.net. [83.50.83.154]) by smtp.gmail.com with ESMTPSA id il18sm3304997pjb.27.2022.02.08.07.23.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 08 Feb 2022 07:24:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ha1poJJsMbEmVT2TWrI2VeQn1cQITks/LrH1hi0Yo+M=; b=edHs5JyHYxayOIUJSq6aIrr8cAiscbGxtNNij27g8yjUVcWon3Vz4udruDuZjAQX/B xVC5HSXms6Z99jUHSAQ75gpX5LbnduO8f410/4Rjel6me50aquW+hnMVG2Tbkh01ulRk zcQtgjzn70apHocJX01pmzct0v6U+YsZ6ay0WzoBLplgCzYVui9y8wNsUnCCnyCpDGlp L/q8GZtZJ7xsmkQjHCPkhIp09ruZNkW1yN3mvHv7YWWvYDqDUW52n2cchSwdOfsbOPSl udadMCWo7/ozXOBbh+6uvXOLCSGwzdDEEu/EGi/odJasABdZGbeow/Ur8mJGKFC5o+j4 OORQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ha1poJJsMbEmVT2TWrI2VeQn1cQITks/LrH1hi0Yo+M=; b=LQj1291KFm1lsvjYNwsC+TPvDIR2m9+MPVFX15mRgiZLxqETtaaIza+TVVvpNGJzqx JoUemp8knqxn3rj0hKAbs24EKSWQ3nCC7aggVk1Vq+2wFouL16ZXqcVxJPRhlCH5rF+e MtENIPSlMTHFPQfrCC7SRB4sDHwfN3tSuId1W0B3EjBN7QPBtsnd/LaCjj0M7pQCa9Ki fGIM2nilDPbyJ30dH2cnHULEfdc/7R4MEspTx4sHuGTtseFfKKXoFXxkyzKvA0vs8i/N 8ihfJDsJML/Czrc/MbTWYSaoyV4GPSUyAHod34uO0zmL2xVf5iBrv6TRU3B3ywSasXXH Dd9Q== X-Gm-Message-State: AOAM533RM2+nqd30TZFP6oSgxI7XsoJ12F6/V5nNo6XdBQFLPPZRl/yA DADLoXWUdmMg9WdGk/Z4356ON91WuRg= X-Google-Smtp-Source: ABdhPJzdfe3yio6xsl38g2VT8bjV2nvFoqpbqIt7KcLq1wGLGHsel6MhxV7V3ZG4MXMvZ8zR10mLJg== X-Received: by 2002:a05:6a00:2350:: with SMTP id j16mr4887278pfj.78.1644333841523; Tue, 08 Feb 2022 07:24:01 -0800 (PST) To: qemu-devel@nongnu.org Cc: Thomas Huth , Richard Henderson , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 09/13] target: Use forward declared type instead of structure type Date: Tue, 8 Feb 2022 16:22:39 +0100 Message-Id: <20220208152243.16452-10-f4bug@amsat.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220208152243.16452-1-f4bug@amsat.org> References: <20220208152243.16452-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::42c (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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.248, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Reply-to: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= via X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1644344084795100001 The CPU state is forward declared. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/mips/internal.h | 14 +++++++------- target/xtensa/cpu.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target/mips/internal.h b/target/mips/internal.h index f705d6bfa6..ac6e03e2f2 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -134,14 +134,14 @@ struct r4k_tlb_t { struct CPUMIPSTLBContext { uint32_t nb_tlb; uint32_t tlb_in_use; - int (*map_address)(struct CPUMIPSState *env, hwaddr *physical, int *pr= ot, + int (*map_address)(CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong address, MMUAccessType access_type); - void (*helper_tlbwi)(struct CPUMIPSState *env); - void (*helper_tlbwr)(struct CPUMIPSState *env); - void (*helper_tlbp)(struct CPUMIPSState *env); - void (*helper_tlbr)(struct CPUMIPSState *env); - void (*helper_tlbinv)(struct CPUMIPSState *env); - void (*helper_tlbinvf)(struct CPUMIPSState *env); + void (*helper_tlbwi)(CPUMIPSState *env); + void (*helper_tlbwr)(CPUMIPSState *env); + void (*helper_tlbp)(CPUMIPSState *env); + void (*helper_tlbr)(CPUMIPSState *env); + void (*helper_tlbinv)(CPUMIPSState *env); + void (*helper_tlbinvf)(CPUMIPSState *env); union { struct { r4k_tlb_t tlb[MIPS_TLB_MAX]; diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 02143f2f77..f2165b17e2 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -344,7 +344,7 @@ typedef struct XtensaGdbRegmap { } XtensaGdbRegmap; =20 typedef struct XtensaCcompareTimer { - struct CPUXtensaState *env; + CPUXtensaState *env; QEMUTimer *timer; } XtensaCcompareTimer; =20 --=20 2.34.1