From patchwork Mon Feb 27 14:00:22 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: 656989 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2368851wrb; Mon, 27 Feb 2023 06:06:02 -0800 (PST) X-Google-Smtp-Source: AK7set9pTAugvJruXTtsVCkRKOXNmO4+qUUKREuVR8X5ITWcvJ23+ZbeUqDTFJll8a7xOS+cVgMO X-Received: by 2002:ac8:5895:0:b0:3b9:bd05:bde1 with SMTP id t21-20020ac85895000000b003b9bd05bde1mr27808124qta.8.1677506762624; Mon, 27 Feb 2023 06:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677506762; cv=none; d=google.com; s=arc-20160816; b=J90+hOxBZFaWe8GWt++XciaAxXYd219HgCwC+tfW5L938Tay+qfEQM+sIaJWA+bJuR 4GafUEUVo3JFYRconnr+TA44dBNvtCjYNwr7pG/C+uha9vFSPRNG9MzewqIGbg4lKpbt dKwhNI8ODeSvy8q62wkFScBrIoso8rpUIe2WtVUPteTfkl4Ep123jZdYUa6kNq1Lgl39 3uL3LGFlN7wTZFt3Q8iIqVYuyLRXk1i6aquIqT2sj1YIlfIwFGHrbibM5LU3dSUKySo8 UWVsSnwl1KDrbKDiPZ78IkCJL3+8CvU5GANru/WgzhHeA/GsVBM2dZ3iMuRDqYiZAhdB 7uhA== 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:to:from :dkim-signature; bh=5G5C159PYFBj84gcvHOzkkmU2rOSmahVuhSDYc1h7Xg=; b=sRveZR75sPJZ+5uIe6GC/z/LZxolZImenDrA1dhnF8VyOzKQyJQYWiwJ4CIR9f9jm+ 0Q6XQ5GHdcyfXSS4z5vGm4pHdQdPQfOm5bqCpljaFOz0m96VZeEN1J30osXOiiB1E8A0 COQytjPMTWBEmPEICCsVD1UHnxF59DsCnI9iCdN4A82KvqwneZrwdEU0zERraeUNZRU6 HwAibMeJK2llARWddBhL3OQawTJ9WY/so8qnocmIAM4fEGxibpvEfS8AKyAjKq1RREek f9/eF+FgfBR8Aag8mlv6SoeUcSrRU9gahSA9VDVjqFHGKKfk7RZFyFmpPeBe+gdpmHC7 Nacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KdUZki1f; 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 t3-20020a05622a148300b003bfc4664a75si6563772qtx.795.2023.02.27.06.06.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:06:02 -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=@linaro.org header.s=google header.b=KdUZki1f; 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 1pWe5d-0005oF-D1; Mon, 27 Feb 2023 09:02:54 -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 1pWe5X-0005aP-RE for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:02:49 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWe5V-0007ls-KH for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:02:47 -0500 Received: by mail-wr1-x42c.google.com with SMTP id q16so6356007wrw.2 for ; Mon, 27 Feb 2023 06:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5G5C159PYFBj84gcvHOzkkmU2rOSmahVuhSDYc1h7Xg=; b=KdUZki1f85S7vwSomeohgLOjcBziFnF7RklkFygeGbmhJ8Fo17KxNR1sNdCaIBcjDK 8m1isKsWNvBzST6LBV8q8M8o9P8JIF6ND2rJc3Car8UxDjWOJu8+46eMa9HasnUOn/1j jG2BtuVTcgtgT+xqvjE9PNuvHXC4DXVBqBLw6DiCcgEGWqlPHF/EOwH+filETgCCmBVd PuuIG4i9qsnP3MWEDO3Zx6UHhqK28Z45Ba9BXARkusxj0V3FhOZjZcoS5b9ASsPWfay7 H0drE2X2g6ueF+FVfrFmM/xDT+4IyR9I1AzZMc7ZUN0fspPnR3P7DUBez1qC0Pu1oh9K CWuQ== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5G5C159PYFBj84gcvHOzkkmU2rOSmahVuhSDYc1h7Xg=; b=D3pE1dGSdU3PdTuFeumoot8zu3BAJiKLOOFSUqPkoBWVSmobMfp9GBLwlWp5cVm7rw Af4Fio0HcVUthotAhTUnjZybNLuzmiuUAGTo6sJ+kGLwfdh+0DlCrCsAt1iE3GKZSJZn 76/VrtcsbtwjpVI3LqlW/tX/ISEGpyYUlp+DIfFLGHDTW/DlXoFQwPlyQaQohmSAQqsj l8GZQIU1GHTjlvxCPdbjNlFSNIQD+IN5SBv7Kj2YkSicnV8GkZndAXp7OduGCvtGAiDg 5PhMogpIsMukPVOjkjZ9XmkdE5E3vjdCGw6CjyQACbITlPjowPlu5Zt0r/dNmRsIL6St 1WJw== X-Gm-Message-State: AO0yUKUq7uKoIfFmfyy6MPKU9mZU3qG1WyTOirvu5t6wq/wIX9zBOFeE Vu1KWebS25EpohnaF9zNZha3t3mANbzLxiNG X-Received: by 2002:adf:ee85:0:b0:2ca:c865:51b3 with SMTP id b5-20020adfee85000000b002cac86551b3mr3455459wro.12.1677506564387; Mon, 27 Feb 2023 06:02:44 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id j12-20020a5d464c000000b002c71a32394dsm7232764wrs.64.2023.02.27.06.02.43 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:02:43 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 015/126] target/ppc/internal: Restrict MMU declarations to sysemu Date: Mon, 27 Feb 2023 15:00:22 +0100 Message-Id: <20230227140213.35084-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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 The 'hwaddr' type is only available / meaningful on system emulation. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221217172907.8364-5-philmd@linaro.org> --- target/ppc/internal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 337a362205..901bae6d39 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -242,9 +242,12 @@ static inline int prot_for_access_type(MMUAccessType access_type) g_assert_not_reached(); } +#ifndef CONFIG_USER_ONLY + /* PowerPC MMU emulation */ typedef struct mmu_ctx_t mmu_ctx_t; + bool ppc_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, hwaddr *raddrp, int *psizep, int *protp, int mmu_idx, bool guest_visible); @@ -266,6 +269,8 @@ struct mmu_ctx_t { int nx; /* Non-execute area */ }; +#endif /* !CONFIG_USER_ONLY */ + /* Common routines used by software and hardware TLBs emulation */ static inline int pte_is_valid(target_ulong pte0) {