From patchwork Fri Jul 9 05:17:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 471805 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp980212jao; Thu, 8 Jul 2021 22:31:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhH56nuUVSAwQnQL+XCSl2xyB52bkBTH97+wJrJoHNAkeHGMz+C+EW1o4GEtze9cl+o8mm X-Received: by 2002:a67:ee54:: with SMTP id g20mr33035374vsp.55.1625808689573; Thu, 08 Jul 2021 22:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625808689; cv=none; d=google.com; s=arc-20160816; b=BXgesjnycJUrko3N8G2+BmtGEevwWq/PwhshlLH4x4A1Or98u7e0H8wgUW9S4JaTVv ZahlhQOLbxe3PtM4pi3ScQDJEbyo4guughKrlmhdqTJksS/aavfbvCIYn2vjsjV542J/ uI0u4tl3FmVUvqyGGFkBJR2sHANGlAZx7wfraPumAYIOyE44IBdYqMkPOMtU94E7LyYX 1vY0sypsoWC2iEYd6tK8+1u1osyvjEBZsoUv3jkOpEonjAube8jPvLy6oViYprUHVvWE x5fwznxWFr3QxqKxaGLLQYqvSG1frS7THegRlhNBKWAEA+6ABPU1pQc6ObaSKYadDr1m CdOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=hH6X61b4lTkROClYErluUyShnHwlY2fLO8FD9oH8Vko=; b=o2BC7gpAtIWxpnRcqz56W1dMWumFIqQwhI/48VHljTWzT+qYmfvI67JE2GKDVILJvT /G2chMe4lFnJIdgoi8BmtxdtmCH95cjM+j5ZZJaqj9FmDaDrMbbJjhyW+1RvO+rzH+FE 0cfDfWW5KmpfQ6SgVbZ7bUCq9qubxjuPzcA78J6tYBAulWlTxcLiKSYzEONJkShTCNLq II30Ag99AuelVZGKMCndUw+R7HIDRi/J3jFUOUxYA3LuvWB9uGCmrb8mK6pAWh96QnmY 4EQZXh3vNzf03cD8HFocdFPsGl1pTkcqzw2qzMIRnmhHS3ZmwFRasmJ6cjcF3S+ukgb6 wTZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gibson.dropbear.id.au header.s=201602 header.b=c1ZmfHKG; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e29si4181806vsj.341.2021.07.08.22.31.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Jul 2021 22:31:29 -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=fail header.i=@gibson.dropbear.id.au header.s=201602 header.b=c1ZmfHKG; 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" Received: from localhost ([::1]:45828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1j6m-0002GM-T5 for patch@linaro.org; Fri, 09 Jul 2021 01:31:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1itg-00014O-7w; Fri, 09 Jul 2021 01:17:56 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:52645 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 1m1ite-0001yC-3q; Fri, 09 Jul 2021 01:17:55 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 4GLhHd4whpz9srX; Fri, 9 Jul 2021 15:17:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1625807853; bh=VUe7ZSHiWg41MtgkPuVTCh1/VfI/d8Vldeew52mc0ok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1ZmfHKGx3iVbjswwbl+5GBxH7cvRxmOEoz80L9L9DeBBfc8+Djux4TmFMFYeFDW1 eZ/vRRk8Saj0tKr3P3jZ7vJPqxGxpjIeyowxGXI6O9wIGoC5GmlV/PVg7E1n57XTPq ujR5W3i5w4ihB+qKTxWUtqf0hwjjUDo8MGYhAm9k= From: David Gibson To: peter.maydell@linaro.org, groug@kaod.org Subject: [PULL 12/33] target/ppc: Restrict ppc_cpu_tlb_fill to TCG Date: Fri, 9 Jul 2021 15:17:07 +1000 Message-Id: <20210709051728.170203-13-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210709051728.170203-1-david@gibson.dropbear.id.au> References: <20210709051728.170203-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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.001, SPF_HELO_PASS=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aik@ozlabs.ru, Richard Henderson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson This function is used by TCGCPUOps, and is thus TCG specific. Signed-off-by: Richard Henderson Message-Id: <20210621125115.67717-10-bruno.larsen@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/mmu_helper.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.31.1 diff --git a/target/ppc/mmu_helper.c b/target/ppc/mmu_helper.c index a0e4e027d3..ba1952c77d 100644 --- a/target/ppc/mmu_helper.c +++ b/target/ppc/mmu_helper.c @@ -2948,6 +2948,7 @@ hwaddr ppc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) return -1; } +#ifdef CONFIG_TCG bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size, MMUAccessType access_type, int mmu_idx, bool probe, uintptr_t retaddr) @@ -2968,3 +2969,4 @@ bool ppc_cpu_tlb_fill(CPUState *cs, vaddr eaddr, int size, raise_exception_err_ra(&cpu->env, cs->exception_index, cpu->env.error_code, retaddr); } +#endif