From patchwork Thu Mar 10 11:26:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 550115 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp921468mag; Thu, 10 Mar 2022 04:00:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhp+w0syHIfYaS/FM6eMHYLtY2wfjMyd+mckUCkjlIziAOqcitqCocNH5R/jEcurIWJDHL X-Received: by 2002:a81:5354:0:b0:2ca:287c:6b5e with SMTP id h81-20020a815354000000b002ca287c6b5emr3558063ywb.3.1646913640065; Thu, 10 Mar 2022 04:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646913640; cv=none; d=google.com; s=arc-20160816; b=lxgkuLVWtSDBwlicTuLVqNyWr39ytedXJSlHaxbDShFCQGtc3qjxCbdkT6rSzJOxm5 BagPn+KxquBPxCVTW3Bo9rOrruCjb04JUQ6H4Hl8Yd0pwKBuBUvuBTazDGhS18cvwqCq 8xzX4mj3pE1XMk1wgIpxsuPdQxM6Tbbsn+cz0wQZQs4cnPR1+UyzPW6CqSRtWXlDLy91 DJZWixTXIslpzX0L/UmYMDHdToPTaOkR+zOeXr1BgMbFY1nKM0vd4qI8DFJaCLew4EhO 1ZhrolIHhktz7C95igScfaSFKWvrprvqjnEdSYllP9uG3dWxg8pPXhxtbmP4fzFmYOgp R5rQ== 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=Cj1Mv1TK+d1R4GNVLpYWtLlcIcx/OqQSWvfjy4IfC40=; b=Z6fcmgb5rxue+mXQPTfYH4gsUdBoT7lVSMrawT6DsZRbwkfZetsIubSfAvaJDCci0u 5nLNbAWgbIYtXdAF7XU11fOyPsddAIuwDPbuEemSZA7wTnhegMJ5huH8imZBHPVZeduL BhMOI4T9hoPhH0qAQu58IvCxjQ1WDKaYpDdepcbL+VzF3OydLwkIfDNDbFGRePqhbTV6 /HFA78Tya/o5tAWf9SUtIQXSaZd8NHwgDDKn78oh9fI8kdnxxVjr9N9LhVGVx9I+qubi SFzW1506ge0dpWd87KC+WLPVpimXwuIkGKthc4eyyRGEhLcIH3b3heHU9tP1V3uTUW+W M4oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TyNW+pRT; 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=fail (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 14-20020a25090e000000b006294011c58bsi2750823ybj.669.2022.03.10.04.00.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 04:00:40 -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=fail header.i=@linaro.org header.s=google header.b=TyNW+pRT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSHTD-0006gm-GC for patch@linaro.org; Thu, 10 Mar 2022 07:00:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSGxH-00057e-MG for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:27:39 -0500 Received: from [2607:f8b0:4864:20::435] (port=38551 helo=mail-pf1-x435.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSGxG-0007w9-0h for qemu-devel@nongnu.org; Thu, 10 Mar 2022 06:27:39 -0500 Received: by mail-pf1-x435.google.com with SMTP id f8so4847757pfj.5 for ; Thu, 10 Mar 2022 03:27:37 -0800 (PST) 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=Cj1Mv1TK+d1R4GNVLpYWtLlcIcx/OqQSWvfjy4IfC40=; b=TyNW+pRTW0n2lRdUpmRyrzv2a63QvMUHFkGeDvKbCpKE3RLEBRmaE6MMfJYeAryjxu V+J5+44WMIL7FWT7BVfvG4VcWGtrhNZa+i+yoX1pDNw8swhoULgwCGvlhNiV+BZtWdNI PjqdkJossw9DmX4fA6/PiR8/sVweL610j3czGq2gXzYOVMaKv/ZLYNmGy2l+DQEMCQlF sIjShuN+H6/SsWNFPugCPvxJQXbdx2+yoY/NdUfmSIAOx0w1PvZWc5Duq4Mew9GFoPfD W953yDjgssbrlzTtdt9M66FjCo+DYXsnPd0SQCwXI2EMSDTh1fwCQ4MHyKKFiJLp+iXj y33w== 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=Cj1Mv1TK+d1R4GNVLpYWtLlcIcx/OqQSWvfjy4IfC40=; b=BLwhnrQ8zxJnmZ44fGFs2pL6tW/+WD76oONDjIlZPNsOu/P11KXOiZ6yu3/7KmlExD LUFE8dMRfvziX5vfv4s0DkgdPUbfq10GeybW1RVwfI+kifpuWU9d+VxAJtCWvMNY1ers Me7bLMoFJdw9W/8OUGPLMqJ3z8EGsSJumP6bRo+x8llSGInktA2Z9fwvTrTbFHsYI79t KkAJKroPXkGLtQZyUUCZjXLhyUQ8QO9YeeduTXT1raX/IXPa6AHtadXiLJYp+9wcvzu8 zSk4P4oMaALAqEnMggXVKQFcc/+9lxlVovvjLXqJpne9ll7q600O5ckerU2JAm9iWLOW ED4A== X-Gm-Message-State: AOAM533DtOJVD/nzrQ9nJXg2T/c1DRqN79q8zkdqYI19GNF2BiaH1wiB c1B85PzccfsEJY5TRjputPlR/kDcgUyZKw== X-Received: by 2002:a63:4403:0:b0:375:6d5b:5aa7 with SMTP id r3-20020a634403000000b003756d5b5aa7mr3578406pga.269.1646911656721; Thu, 10 Mar 2022 03:27:36 -0800 (PST) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id js15-20020a17090b148f00b001bfc8614b93sm3114977pjb.1.2022.03.10.03.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 03:27:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 09/48] target/nios2: Remove cpu_interrupts_enabled Date: Thu, 10 Mar 2022 03:26:46 -0800 Message-Id: <20220310112725.570053-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310112725.570053-1-richard.henderson@linaro.org> References: <20220310112725.570053-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::435 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, 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: , Cc: marex@denx.de, peter.maydell@linaro.org, amir.gonnen@neuroblade.ai Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This function is unused. The real computation of this value is located in nios2_cpu_exec_interrupt. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/nios2/cpu.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/target/nios2/cpu.h b/target/nios2/cpu.h index 9be128d63a..59e950dae6 100644 --- a/target/nios2/cpu.h +++ b/target/nios2/cpu.h @@ -226,11 +226,6 @@ bool nios2_cpu_tlb_fill(CPUState *cs, vaddr address, int size, bool probe, uintptr_t retaddr); #endif -static inline int cpu_interrupts_enabled(CPUNios2State *env) -{ - return env->regs[CR_STATUS] & CR_STATUS_PIE; -} - typedef CPUNios2State CPUArchState; typedef Nios2CPU ArchCPU;