From patchwork Tue Apr 26 18:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 566081 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3849479map; Tue, 26 Apr 2022 11:43:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhaK/kPK8MlpDgP2NLNsZsQ0sum/tcbYn6MT1YqLh1msX5BDLNwY4dIdPv0vtw6NJeljfj X-Received: by 2002:a25:d801:0:b0:648:5604:979f with SMTP id p1-20020a25d801000000b006485604979fmr10955499ybg.542.1650998625393; Tue, 26 Apr 2022 11:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650998625; cv=none; d=google.com; s=arc-20160816; b=ghRqYPTsMOWHEJMj+tzwGw5A7mBziI2au2q1BQR19lf1YE9VUlITtrIn1nDvFjxWVB IDUgxRO981IUyrR/zzcTO+iap2eWzKjA0xTJ9ez4caeZt8TN5kTHbp3+oBZwwUpiodLy RqUod9cWWYBEewEXmd8sZtQNl+xwjBv8JSNAXca3uwj29v1RodViSlyee6e/Ftuo67FN WoJTnYvDvudfxfx+YaIIA6AleVOX32ZYIabulj76o0iFcT/ywRmJjap0eCSbbyyjfYIM 5EscHzYpwMWJMnBmz5e57l4kQAE5YVHhMdkMIbPAcIKZaSHLc4dRU8fsjJZ6GWuTJlcD m8LA== 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=WtijAPDsarkaDZE34rPMYaYugCLnKIM1fmH9hLbohX4xwLjMlFA4pC5I/SrcYSwIAX QbzePiS103wn3tX/r+2vkGaoEinBUzX3+eATDEi1VPFpGyPmXWo2r5dcRxSyO/v9NgyM F0XxpZMsbEBdgo0BoQHLpH0MpPyZP7iLlWQGTJuBLcz5t4IGyoawRK9n7Gjl3py9XrAI cP4mac6y/rCNVCOrf7gE9vDYCW+HvNnRlKucLKF0GxHiWI4LZNWr4YI9sy5Eyk1qkDOn 1zP4BfFZWE5bgpiODF+8Fv32fXmkScvijVNXUwLI0injBGvsB89KFyBQtHpeNU+BcxSk a3AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d7T+4Pp0; 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 188-20020a250dc5000000b006484ccd6b4bsi6737753ybn.274.2022.04.26.11.43.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Apr 2022 11:43:45 -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=d7T+4Pp0; 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]:38416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njQA4-00051F-TV for patch@linaro.org; Tue, 26 Apr 2022 14:43:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njPmW-0002Ui-A5 for qemu-devel@nongnu.org; Tue, 26 Apr 2022 14:19:24 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:40816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njPmR-0004LU-Jl for qemu-devel@nongnu.org; Tue, 26 Apr 2022 14:19:24 -0400 Received: by mail-pj1-x1032.google.com with SMTP id iq2-20020a17090afb4200b001d93cf33ae9so2838979pjb.5 for ; Tue, 26 Apr 2022 11:19:17 -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=d7T+4Pp0rVCuo539R5J9OMM8kKFfGyUSxwDi7fhYiuQfpCAl3x/IWqyrH2W0kQjPTT j7HH4XpDqo165mXB+QlJv/ON/Zr/qlRr6JeLZlKx9Ov8Lzmvwsxlu6/mOT0FZjdPOh5s eZ/iwiLBR3dh+zdS2Bdj8q/OX/Tw/DMum9dtcx1tOsmdhRIRISnbZGlKGTl4ROrxKaFi SETDBKOMeoyAfRMAWJx9wV7qkhqMARam1Z+prxBe83sqCBotbYBegKIqldV1hBqGq8nH Nwe526OSUP5RZqIUOGDgnSb0YL6IBSmHGbHCro7UryWYBxRT/uK/i4yTLH/KeO5pFaXk VSaA== 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=UyXpLnK/tHEuYjYsKw1xGTm8g6zTGFMHYzRw4iXggIP3xaxaQLtAlqq8loIsAJp6IA brC1T5dXmM/H84AqNmr2rOYKjY2mUxaNBdlrPn9S9GOQ8N8GnyhBslkX7+XcCwKmQe6/ EGz0GSVywBRealeyviC+i67tJbJz/93WE3esbFiL6u2Sgi+GwNmonH2WhLybBVdIG61u P2x9RtFC3ScZT55ZJ3yMUl0xQostIWWKDg+nbWE3p+qFecrw0MXMSSnCU0GEAK9tUg+G iXPjBEcD+s5JVUkODYamIDvb3dW8Tnvi+LI2T09F2MsRiDNKUEH01uTEnVZkLWNl563k uxTg== X-Gm-Message-State: AOAM531HwuBxzrwKPuhc7/L/PDn5oXFWRok7wvoVoZouDbIO0GdVN8Gr 2tBjuvl8QV59K8QC2QC5X2Sqr2HglVmTuA== X-Received: by 2002:a17:902:eb8e:b0:15d:11f5:59e7 with SMTP id q14-20020a170902eb8e00b0015d11f559e7mr11972478plg.32.1650997156487; Tue, 26 Apr 2022 11:19:16 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id j7-20020a056a00130700b004b9f7cd94a4sm16482827pfu.56.2022.04.26.11.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 11:19:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 09/68] target/nios2: Remove user-only nios2_cpu_do_interrupt Date: Tue, 26 Apr 2022 11:18:08 -0700 Message-Id: <20220426181907.103691-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220426181907.103691-1-richard.henderson@linaro.org> References: <20220426181907.103691-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, 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)