From patchwork Wed Oct 13 02:45:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 515681 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp6081808ime; Tue, 12 Oct 2021 19:52:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7B4uXC0DtBgI2JO8kIthevYoJ6Ez6/gjWFnTMSmo+Ti3vy+5N3BRn4i96jyU6Gt54kNMW X-Received: by 2002:a37:b842:: with SMTP id i63mr22633869qkf.262.1634093538979; Tue, 12 Oct 2021 19:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634093538; cv=none; d=google.com; s=arc-20160816; b=mMDqSkOTdMKmBC1N3C7MzipW+WavCXXfam+8wYvcPnF5R8gr8+WKtmWnq0Lo10ojun IzvSOuHtiaHJ/yhgiasXx6DmZeiC64hdrqkQZogQDh40cTA/Om1vOFIWLzVsstsOsZdn 7oz53LM5pj3qOHMe26PKWS8PGsWKjdNFX7wv3UYKj80weqmFPZ8BYl08BEVuBqYTWaWN oAQpZe8RSBPbSzq18xFTAdy45Tumyb3jVhPryCeV5oqI1Fqx4kewPmcU964pwUpOZ/y4 7FyAKDotnhoDXkWPMuWsZcr3G9oOAyqQ9YOvHxUDD4DK39T5U4TinGB6eCTjkgOY+PA5 y5eg== 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=edXkrbkqOm07djX1rJHm1DMaa+Lm/qwNrJ4BGEQSsuM=; b=yyJcjQWx6Eqmvh3QwIIR+bgiTCu9PVOtHwwlV+DOhD3TMTZpdDQie97P85bwOG74AF X3NqD7PA27b12cI35a2trMEl1ir16kWRzWEG/5M3LdAehFF/5cDhTm6g5dN2QadJcviD Tu8fE5OcczN2yXWfZPRnETCOf49aA9v2x3DgXlgYf0CS/b26jeTHeN/FHZaPuiqeacoF 7e9NHi1YYroM4BppKUNbuhjIYitvRa1S4oKTm95fSa+x+OHBcXyj5GnkhGBsH5wx0gnX wPzzQUTWHLc6LD6A6oFgmYmEx9SpLSIMPTxlDObDKAVsgbc8xsCmyH8zHXCXqeTKGKUU hDWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LdpsrxsU; 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 61si7903455qtc.154.2021.10.12.19.52.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Oct 2021 19:52:18 -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=LdpsrxsU; 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]:58692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maUNO-0008AF-EK for patch@linaro.org; Tue, 12 Oct 2021 22:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maUHe-0004JA-4w for qemu-devel@nongnu.org; Tue, 12 Oct 2021 22:46:22 -0400 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:45969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maUHc-0004pl-EH for qemu-devel@nongnu.org; Tue, 12 Oct 2021 22:46:21 -0400 Received: by mail-pj1-x1031.google.com with SMTP id ls14-20020a17090b350e00b001a00e2251c8so1111692pjb.4 for ; Tue, 12 Oct 2021 19:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=edXkrbkqOm07djX1rJHm1DMaa+Lm/qwNrJ4BGEQSsuM=; b=LdpsrxsUcEBh5MddBiZ905TonRBRUc+uMkvAYos9/VsyB8cvnYeUuL6wDmecfSPBBk ocK8ZejOhq8iG7bBZfoV6HGg0z7ldf3ln2arZRFEVZVFAMCrAR/oiox+vTrklcEt13XI bQ/vbdwlwWWw+5ZT5sOzac7c/r4H5oddw4q0R5Z7qZr3U0oESPqcpvvXUVGeEewCYcSU l7QNcLIK1YQkXOkWtkq8vC/DzDV7aASZEJVoRdPalcUhQsKT650VwoYqPqLGlUYvXo1w MfHlOcdxXc+ImFzVEIaoER1mqSwwZ/LkqXFPZb2wDSi6FCVmETuxEUepmMaEjku8otFP nD4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=edXkrbkqOm07djX1rJHm1DMaa+Lm/qwNrJ4BGEQSsuM=; b=krK78xp0+mRQIgkIW1+70nS44xqZLYomO0EKc5KeB9G+cnCQdfZI4MYciKs+HV5hPi 7PGZ0HIn5HUiyrO1BCpd/Gswr3ZvC5D6SMlFDxsqbRWQERY6pbCf8RL1SdRB6fMkFW0Q JEU9vpuVw3Hy1LElmzV/LMu/556l2buxBmcZlu6aUta7Wfl2NJUGjhoV3ePMJnRieF7B AqgQLYE4s2Lw9AC2ZVVSBbD13uAjcysyCOsRbTPWww2nthRR55raAVJ0GkrOZxwDT0t7 vi+kPBEGgXHx7PfepNPavW68jF2ILkb/ZozjkcDMtTkU/dDEa8bonQIIjZsxWORxYIey wdHg== X-Gm-Message-State: AOAM533/3wP20OljJRmJtWIB9bifCdsFmcYeBCj/7JgcedcQ9V91fi2L bo7jfaudiYc7Vugk09BaqIg9LCpwKjHabA== X-Received: by 2002:a17:90a:c081:: with SMTP id o1mr10643717pjs.24.1634093178858; Tue, 12 Oct 2021 19:46:18 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id qe17sm4855014pjb.39.2021.10.12.19.46.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 19:46:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 09/48] target/ppc: Restrict ppc_cpu_do_unaligned_access to sysemu Date: Tue, 12 Oct 2021 19:45:28 -0700 Message-Id: <20211013024607.731881-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013024607.731881-1-richard.henderson@linaro.org> References: <20211013024607.731881-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1031.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.23 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" This is not used by, nor required by, user-only. Signed-off-by: Richard Henderson --- target/ppc/internal.h | 8 +++----- target/ppc/excp_helper.c | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) -- 2.25.1 Reviewed-by: Warner Losh Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 339974b7d8..6aa9484f34 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -211,11 +211,6 @@ void helper_compute_fprf_float16(CPUPPCState *env, float16 arg); void helper_compute_fprf_float32(CPUPPCState *env, float32 arg); void helper_compute_fprf_float128(CPUPPCState *env, float128 arg); -/* Raise a data fault alignment exception for the specified virtual address */ -void ppc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, - MMUAccessType access_type, int mmu_idx, - uintptr_t retaddr) QEMU_NORETURN; - /* translate.c */ int ppc_fixup_cpu(PowerPCCPU *cpu); @@ -291,6 +286,9 @@ void ppc_cpu_record_sigsegv(CPUState *cs, vaddr addr, bool ppc_cpu_tlb_fill(CPUState *cs, vaddr address, int size, MMUAccessType access_type, int mmu_idx, bool probe, uintptr_t retaddr); +void ppc_cpu_do_unaligned_access(CPUState *cs, vaddr addr, + MMUAccessType access_type, int mmu_idx, + uintptr_t retaddr) QEMU_NORETURN; #endif #endif /* PPC_INTERNAL_H */ diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c index e568a54536..17607adbe4 100644 --- a/target/ppc/excp_helper.c +++ b/target/ppc/excp_helper.c @@ -1454,11 +1454,8 @@ void helper_book3s_msgsndp(CPUPPCState *env, target_ulong rb) book3s_msgsnd_common(pir, PPC_INTERRUPT_DOORBELL); } -#endif -#endif /* CONFIG_TCG */ -#endif +#endif /* TARGET_PPC64 */ -#ifdef CONFIG_TCG void ppc_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr, MMUAccessType access_type, int mmu_idx, uintptr_t retaddr) @@ -1483,4 +1480,5 @@ void ppc_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr, env->error_code = 0; cpu_loop_exit_restore(cs, retaddr); } -#endif +#endif /* CONFIG_TCG */ +#endif /* !CONFIG_USER_ONLY */