From patchwork Fri Apr 22 16:51:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 564850 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp665116map; Fri, 22 Apr 2022 10:05:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlHRCtZQ75LA8c6br+CpDCCGxjpjdHzKPLQDMHv1piOnDA+FLLmNnR9OSdTGcxocHG7CMz X-Received: by 2002:a05:622a:104c:b0:2f2:4e4a:fcf with SMTP id f12-20020a05622a104c00b002f24e4a0fcfmr3959018qte.663.1650647158582; Fri, 22 Apr 2022 10:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650647158; cv=none; d=google.com; s=arc-20160816; b=VCC8XH9X8MZSyccUq2qmgB8mYbc3vuZTzIe+a+8MSWQI9zEX5VnxHfUkZCQEAdbMhR xTvy92YI3jN4eeYP0r2mJthR15g1DoZmuXJCfl9T8ehcsojfpn/EDB7NmwChPViGszAL sLXY+16VWnW7FsVPRwDAZZkIeQOeqECnAON32bza90ZA7T4vVUyUY/fWOe+OfzJwpYp0 hN2lfdGhqtEeSdMpSqNGIEVBKtUvKX81/IFT4lwAo+u45bLxtSBRGbMohOo3lytLZLd8 h2fO4dyqc4gW9GGf3Wh/rGXRVxcJwpgjEEowKgibKOViD+OxwdhYSdvU/nIG0cIvjmMY t/Rw== 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=oKKUu+zNBC8As9SImKOzVlpqPHOufT8qoTmRma0rBy0=; b=LhJEkFe+pcQV9uVMTWz+OrlqZ/GE1Lmic2NrMYdTbKWghVjVfmkCohPNJyG6zV2Qiu WvusklHFnCGOZUiuLxkkh02cWZ5kVJaQc0gxnuHtMG6WXsZ+bHUHvqbEQzgzCJAuRZ/S Qa7ieAqjRcJIpdsk8SBZVtZxLODcVL+mymaJ1qdfoyoTt4kdbgZkVOwGyza6CyFNzncS X0ARMwcMDsOCrtdEnpknwT/04Rt2HdVS90JE4hVeq7xxqAjPUM6GJZ5/M6rfWEmEwn4g 3fxM7ZZyQR8ze8uPWsJBrUAUfc83faXxEh+PnHdos+Xw82FU1tqq3w1oNWwxGkO7emAl D8CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zmrNMlzk; 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 s7-20020ac85cc7000000b002f339d33de9si2525653qta.389.2022.04.22.10.05.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Apr 2022 10:05:58 -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=zmrNMlzk; 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]:47502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhwjG-0003MF-5x for patch@linaro.org; Fri, 22 Apr 2022 13:05:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhwWh-0000Ua-UY for qemu-devel@nongnu.org; Fri, 22 Apr 2022 12:53:00 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:41941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhwWg-0007Ep-FI for qemu-devel@nongnu.org; Fri, 22 Apr 2022 12:52:59 -0400 Received: by mail-pf1-x436.google.com with SMTP id p8so8524474pfh.8 for ; Fri, 22 Apr 2022 09:52:58 -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=oKKUu+zNBC8As9SImKOzVlpqPHOufT8qoTmRma0rBy0=; b=zmrNMlzkpLmfhJFbK/hcJ/twX4vvpVIXSqLhM7weG3iuHCHXDgtOYB7mIJ2KeSI73Q 4/Ral5D4C34mTudSYwudJnmEfemHbeEIqa3UctHShWr1hrK81OIMKii7ZKEnLd6Wr1dg w9FQGxj/Tbi1qRwwpBxesydrdQZ+mkQwqux0V2+k5mAWsSl/ggKTQe/PNmQaJSrNo57I z1RdPTOw7r6mMFEIvxqvIcUYglk44B0sY1TpC1gCmJjuRgpOV7OjhpFD3BG3l631QJM4 LijXMZkbGvpJ5v5jjEBOSsuMHPZsW0LYZDhexCZzVGLmiB890llExhkAXtVgK4yTZHLB fYow== 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=oKKUu+zNBC8As9SImKOzVlpqPHOufT8qoTmRma0rBy0=; b=iWv0QyWqY5PHRytsD3UfFhVHGr8VfRbwoDk0akET58qtE3Tbxm1SPmBGBPhPywuV4q T95LUlilP1kqqjr352agxJCr3JN4f8T13522tlyYAgjw8gCjQfCd0ZYOPfspYYNyzge4 2ldwj7GnY9HCL61QDC8ujZWfyZMUfqM9qM0vFBgb+WPOf9Hr0Z/a+5fYD25FnBGOhK8Q W9xWuRfJf1tqPfRNPysMrqPuRdJJft5Cp5PfrI1UUeHfUcPhzFGdJrDBXvD1s0n/3GP4 bO/eQpp9QjUPS0/RYcPuuGc31vk+k0mqwKItYVhvfnr0GG6cAroluod5TkqggjSJVZzv RAWA== X-Gm-Message-State: AOAM530kRyDBE/JfDRdoW2jJpMVN85i13+DtVe7aABXQDLrrKVraaPxk l7B0GAy5hk0TZHTIwCzwQn7E3H45cG9AvFNM X-Received: by 2002:a63:ff08:0:b0:3aa:594e:5735 with SMTP id k8-20020a63ff08000000b003aa594e5735mr4621241pgi.183.1650646377018; Fri, 22 Apr 2022 09:52:57 -0700 (PDT) Received: from stoup.. ([2607:fb90:27d0:b0f2:934d:3e2:9f8c:dd1]) by smtp.gmail.com with ESMTPSA id 6-20020a17090a030600b001cd4989ff5fsm6835904pje.38.2022.04.22.09.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 09:52:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v8 09/68] target/nios2: Remove user-only nios2_cpu_do_interrupt Date: Fri, 22 Apr 2022 09:51:39 -0700 Message-Id: <20220422165238.1971496-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220422165238.1971496-1-richard.henderson@linaro.org> References: <20220422165238.1971496-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x436.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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Since 78271684719, this function is unused for user-only, when the TCGCPUOps.do_interrupt hook itself became system-only. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Message-Id: <20220421151735.31996-10-richard.henderson@linaro.org> --- target/nios2/helper.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/target/nios2/helper.c b/target/nios2/helper.c index e5c98650e1..678fd96c4e 100644 --- a/target/nios2/helper.c +++ b/target/nios2/helper.c @@ -30,14 +30,6 @@ #if defined(CONFIG_USER_ONLY) -void nios2_cpu_do_interrupt(CPUState *cs) -{ - Nios2CPU *cpu = NIOS2_CPU(cs); - CPUNios2State *env = &cpu->env; - cs->exception_index = -1; - env->regs[R_EA] = env->regs[R_PC] + 4; -} - void nios2_cpu_record_sigsegv(CPUState *cs, vaddr addr, MMUAccessType access_type, bool maperr, uintptr_t retaddr)