From patchwork Thu Apr 21 15:16:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 564370 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp557113map; Thu, 21 Apr 2022 08:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlHlh0sreA4xkRm+2ir3bJv7xdwISES9Mye2UyYpGWAAs6B8tPAZ5K3sEo6l8YvB8T+Adi X-Received: by 2002:a05:6902:1247:b0:644:afb0:a40c with SMTP id t7-20020a056902124700b00644afb0a40cmr281380ybu.419.1650556292382; Thu, 21 Apr 2022 08:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650556292; cv=none; d=google.com; s=arc-20160816; b=TdBHh0/JsjZlAY+ENqFc3qWURiX6LjSyGDXTcBf16c165XZmfp2MSRzSj7Np0D/FwV vXJD5J65CNBtER8CVY3D6xIiuHYXQTjsrrabrD3uEZz6y2GwHlcXfK55P/h78/E2VxoF Eg0ki/JQx7/KjzvPSy5wg1fcFbb+AE2PYjkNjQqcsae4PUC49QiWni+dyGCnYW0Jq3mJ F80ExK2aDYa3NbK2sy/bVWENVjvtYhsFXPMypwxND3xZFix2UFEccFSGjECyo26Nkeev M8lH0oJh4jHqGtOfe3S6EjV+AVxprEMzkkY4KaTV5YOg/6EmptCi0O2GeE8HlbTiayUm 2/1Q== 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=S7sC/4UmY0KkIUVa0dACgOcIdGoqizVt2fv89FCsswE=; b=iL5Wdu6kKQnI4mxy2fE2P0xkS3aS0TYsmtxfFPp6epJrg21aa7uc1F9MDDI5e8vchS ewHg6lNxg2PKnl/+5yVKzRBFBeoBcOPL507PjUWzGiMAudB12O2hw8GDKb3ge3LmdGOS qZSVjmK2L8Ff+UDmckibXm92mfpAaCIAVnfVp+IDi5YVqvQNR9Z5wgEQCuCgT5yP8N0y nrd5DcSPDHOQlcfhv50QNE3oVHMsMFZLDX4r0b3D3acQVZWrWZ8RB102gIjAwyW4dzkF SbEvGC0jqlb4lgs8d4knmIFoNuPulPr6f1A5Fh14YjP2IpLFJsF9yTV+1lrQTiX0736f 2uuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJ3r5cC9; 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 187-20020a2515c4000000b00641e3e3b264si2555062ybv.91.2022.04.21.08.51.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Apr 2022 08:51:32 -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=SJ3r5cC9; 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]:51184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhZ5f-0007C9-Qv for patch@linaro.org; Thu, 21 Apr 2022 11:51:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhYZ8-000726-Sr for qemu-devel@nongnu.org; Thu, 21 Apr 2022 11:17:54 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:40534) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhYZ7-0006ER-CA for qemu-devel@nongnu.org; Thu, 21 Apr 2022 11:17:54 -0400 Received: by mail-pf1-x429.google.com with SMTP id i24so5287521pfa.7 for ; Thu, 21 Apr 2022 08:17:52 -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=S7sC/4UmY0KkIUVa0dACgOcIdGoqizVt2fv89FCsswE=; b=SJ3r5cC9pUnPIf2w6QxTRAB4MJkBXBUl5UgaLtapgha7WFxkwHjKdj6YTzAme4ErwC UPrrKl0FCZu9CTmqaAnuhdrucL5Mta4KguDItDSO2jTz3zQSQ0JO5eZtGRmmVTG0xoai lUsKGxGiUFh3zVmdE9webXJoqmaHPl6CydYzM31nsKtzAXBC7eqjvMJcIdWe+Mik+g+h zsibtL1lqHpsvdpURdt3iwpDf/Kbcv4XdKPSny95UPVBSzyAOl+iNMyFeH70ih6W/3LN E9TFGgRDcqTxFq63aBNFlXGcHbCIFcZ/GdQmevNDnOYlh22SxtHptWdB4Ar9V92mbI0W P8rQ== 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=S7sC/4UmY0KkIUVa0dACgOcIdGoqizVt2fv89FCsswE=; b=prX84jjWcpaOVIbvreRJ6iXt16ZTkU3hdr04v4y64uTtXhWO/1kj3JQDKiOFDe7A99 upY7srcPUWmz82Aq3x572sS1dYICSo9gtgWz7lgDx5KkIoqXaVDLcs10h/mO0wthysm4 zJlYQYxMNLJJTlC6JkyIxkNDEy+HgmwM9Sk9cNq2ZM1lvmXv2WeV3v8ldWoZl5AZwt3A TwPECChXHLqaNrUBnHtAYfx03bPKErpPLpB65ihMwhj5FaNEhmsku2WUdY1CBTToiyyr 5GM+UXRzS7ATKgF3IA9dUyz3iylQx27tSKzYcPY4Q/Ekig1yzK3WmppMPOpwa8juXbNj 70EQ== X-Gm-Message-State: AOAM532pXc3fmyDuzqEHSrx7qRXtgkhki/gjKhJZeJuSYckXMrUYH28+ cm3Nc9mouKYkq8z2QpaiZbJNkSV+VNKb3Q== X-Received: by 2002:a63:4b1e:0:b0:3a3:9226:594c with SMTP id y30-20020a634b1e000000b003a39226594cmr24208430pga.5.1650554272100; Thu, 21 Apr 2022 08:17:52 -0700 (PDT) Received: from stoup.. ([2607:fb90:80c8:6cf3:a91a:4957:ba18:ac18]) by smtp.gmail.com with ESMTPSA id z16-20020a056a00241000b004f3a647ae89sm24616248pfh.174.2022.04.21.08.17.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 08:17:51 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 09/64] target/nios2: Remove user-only nios2_cpu_do_interrupt Date: Thu, 21 Apr 2022 08:16:40 -0700 Message-Id: <20220421151735.31996-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220421151735.31996-1-richard.henderson@linaro.org> References: <20220421151735.31996-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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: , 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 --- 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)