From patchwork Tue Sep 14 00:14:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 510378 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1042400jao; Mon, 13 Sep 2021 17:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoxfUCeShs8EL+irgKGddmiXVRr9Qb1jVXXmzI73YoqaVNPnLU3OcMhTsAmMmk5cSrqEc7 X-Received: by 2002:a5d:9488:: with SMTP id v8mr4314877ioj.195.1631579004541; Mon, 13 Sep 2021 17:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631579004; cv=none; d=google.com; s=arc-20160816; b=UskFMyi0JKWj9w0hYzOmUu7ie0NEXF+1zNgHf8fD1gtDxBv73gteIHGgJvZpJBPu+S ife3zHuB1s/PH2KlnTYLkhJ1utodYHusytaVl67t5yD9sYRDBRmd5gIKa4C0lWx/1thU acvIKANlgykRI+n/odW5aibXaU7Vt1GwE3zxPt/0iEwWD924EnGqAecvIhtXuiVwEKWj fdK9XR/alyhwZ5prgoc9X9rUqVtTd/b/I0TaIPkEXTS/ntm+dLxyKepC6P72645gMUuo ciDTKS5cFtkfueMmp3Pj3Yne6IfRiWzXFGa0Q30FkyVzdiqkVccjfqUGByuSSsew+yeI cxrg== 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=ytp1qEelCCJ6X6YutHfxVHqgAYB1ZWOKL4KKnhxaBdE=; b=nQbRwcegBlHdgpwBsmeBZWTTCqn4rjFhwz/0HouRxmbyfh0uUNwuUpV5HKcbrmrWK5 ZxiQIHZChydPdG03ack/QNE654spBDO4dNYSFboyRgVbbc18MM+aVkStpBz+ZvFyIodn vBjG5e3ECkxNRuFmMPZElSky6pmGKm4IT2jlYc+NUh0Bg44oUDtDQ5h2qw20L7PRypZw 2Ia7XkhVY6RKqPwxM7FE9NteJCM0mfANNAdPJZSyt7jyS0BCQHk36ZKKcFaJHimpN+Nk tFkjRqrIOiW+YG2wL3CJxhEMpuIM20utqH+/ntqZBgL8NhNytdisEE1Fog5b8xjQiRLD m8gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LH5odn26; 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 x6si8978845ilv.93.2021.09.13.17.23.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Sep 2021 17:23:24 -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=LH5odn26; 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]:36112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPwEN-00056C-Vc for patch@linaro.org; Mon, 13 Sep 2021 20:23:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPw6Q-0001jL-Ce for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:10 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:56236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPw6O-0007fi-Gb for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:10 -0400 Received: by mail-pj1-x1032.google.com with SMTP id t20so7593542pju.5 for ; Mon, 13 Sep 2021 17:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ytp1qEelCCJ6X6YutHfxVHqgAYB1ZWOKL4KKnhxaBdE=; b=LH5odn26ajWV1GGoHhiCkkD3SP2g7r/jv2jmZT9JIEL7NmSGNnFeQnWyYAvU78o6L8 Uvy6OFpOvHdmiq/qb5cY9SjS9Skfv9LQwaHk6OO7/J0q2KEhNjtnwFuIrdsHwbQTPqFL T0MlLb/bRfumuv4Fud4lt+F83kBA4tqVRhvy5retsdvmwkoPrCLVw5jXyrmI/pTjuTRZ e9zTIvSfz+YxLwC1elzS/FD1iLAtdYNUF+Bbmkg0jnvk+Cx91yb9K6+UAd9idNaI+PMT JfkSgCLCr32Mc88EYOYkItAvdb38CePLPYZeur0tecmYEhvCGTRt4hN1A/RA+Ly1nIjc mMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ytp1qEelCCJ6X6YutHfxVHqgAYB1ZWOKL4KKnhxaBdE=; b=qW3mEIRomM3qKb5RUnxVpy6SxP9fRRQ3tzLXrijO7ldWTMSH9WR6BmrnDl1Xr8O0rw zFtpkQILkkigHHcVs8UZ0rZDmf+84530We/zLMT6eNtOivmx/oFASwLfij/Eroizgljw DXxK5EYwHJIJ4HFeXRkV3UWH3YKabEClC+FOo8H5DTUv1tmfUICAkEPcr0kYzkQOAUQF Q0MA7U/hIu3c8Pen3aKcEzZU2P3878uLeSEYkDaZyOcGx2z9dsbzchi1ttIac9aE+JM5 I1TwB4MZoth1vLOYBskoO7cCM82A37yuMwWnrazAd1sR/q1MeixzmBhNmrbpPA28IHvN 4SEg== X-Gm-Message-State: AOAM532cHBTofKrp2nGY2OsEACMpCYfx1CzRVOs9pEeF2oYtUq8ZKNNK dYUUodzHacAKpgW1N/sps0cTSfY4g3Z5lA== X-Received: by 2002:a17:90b:3901:: with SMTP id ob1mr2438958pjb.136.1631578507155; Mon, 13 Sep 2021 17:15:07 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id m7sm9334179pgn.32.2021.09.13.17.15.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 17:15:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 12/44] target/xtensa: Restrict do_transaction_failed() to sysemu Date: Mon, 13 Sep 2021 17:14:24 -0700 Message-Id: <20210914001456.793490-13-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210914001456.793490-1-richard.henderson@linaro.org> References: <20210914001456.793490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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: , Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Warner Losh Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé The do_transaction_failed() is restricted to system emulation since commit cbc183d2d9f ("cpu: move cc->transaction_failed to tcg_ops"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20210911165434.531552-5-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/xtensa/cpu.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h index 2345cb59c7..1e0cb1535c 100644 --- a/target/xtensa/cpu.h +++ b/target/xtensa/cpu.h @@ -568,10 +568,12 @@ bool xtensa_cpu_tlb_fill(CPUState *cs, vaddr address, int size, bool probe, uintptr_t retaddr); void xtensa_cpu_do_interrupt(CPUState *cpu); bool xtensa_cpu_exec_interrupt(CPUState *cpu, int interrupt_request); +#ifndef CONFIG_USER_ONLY void xtensa_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr, vaddr addr, unsigned size, MMUAccessType access_type, int mmu_idx, MemTxAttrs attrs, MemTxResult response, uintptr_t retaddr); +#endif /* !CONFIG_USER_ONLY */ void xtensa_cpu_dump_state(CPUState *cpu, FILE *f, int flags); hwaddr xtensa_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); void xtensa_count_regs(const XtensaConfig *config,