From patchwork Mon Mar 19 21:18:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10295291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1190260385 for ; Mon, 19 Mar 2018 21:36:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3059293FB for ; Mon, 19 Mar 2018 21:36:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E76E8294C3; Mon, 19 Mar 2018 21:36:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6ED77293FB for ; Mon, 19 Mar 2018 21:36:24 +0000 (UTC) Received: from localhost ([::1]:44076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey2S7-0007ZT-Hl for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Mar 2018 17:36:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ey2CI-0001WH-RE for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ey2CH-0002m8-P7 for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:20:02 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:46017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ey2CH-0002lo-Jj for qemu-devel@nongnu.org; Mon, 19 Mar 2018 17:20:01 -0400 Received: by mail-pg0-x241.google.com with SMTP id s13so7415192pgn.12 for ; Mon, 19 Mar 2018 14:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RvRyzfYgb12J2CkTRHyrrd6gzWrTtLH2jLkTzBBivOI=; b=VVJoAoWtPTEF04+eWw+d4f5beJOVUmGud8ZX6gbHUU86v3wGyiT5HiBcTFDg9+VCsl 7qonnz0s7WSoTuepZYs6kJk8VF615QL+8DqOyiGNCySxwCCmdGSpKFzaxIwt5vKkMx4Z LtdjONQ9paZ8oyVmFrnHUzkLulU9+CR58rG4wNMuofC/011nVGpmqgFL1L+NsOjjH3ou rmFjzJpWkriFpYBWhAYyjCKjRfa06TisXmCERBCvqCRqutPiG7jCCU4ylNkCM/AahYiA fM5Eq1qrBLT06WRK3mwY94fFkPeDBe50VfKE2EsFZknCyJlEOQkpLbVco5eadqCnJcPw YIOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RvRyzfYgb12J2CkTRHyrrd6gzWrTtLH2jLkTzBBivOI=; b=ugxNpNk/AO8XEWQTuqqx5CLoCGodTUacp/+DM9RhGBgl+n3kg/SlNQKwH/4n/lFlF5 wuGKfoqSucyRpvS8QMMQpRD0I1iAdGAPho81YF5alZVi3Rj60Rh2a0ERrClba60/g30L rl0TEHUlfwqT7E+BzK/V1L0AxIGZq6h4pAARQdnu1T133LaZpzklay2IKzrjDdxRmG0d gnc2UkrfxastDcLrMqfNNqDBFZBncW5XhrYDqt9Slgl+iwSAhNpg3lPIaAPxBlhl2fC5 0M5dFckgMZlQBBEUavo7upibynKbrOBa1A2GJIveWKELRLEdXxCEDzvrudLxyJB7X2lN EU9A== X-Gm-Message-State: AElRT7EWShKi2S75ClIr+oqW4iNCah2AZpHOtz/LhBWqUiVJtdEDvpgQ gJhir6QryutEdVMihtE/tTx0nJzrAvQ= X-Google-Smtp-Source: AG47ELuoO4nzdqKeZB4c0sgcRaLWE3iMBrkBeyeLUhqkHCTlsNM9FVyjytNIZ3q170DZh2yP254xEg== X-Received: by 10.98.9.134 with SMTP id 6mr11441086pfj.149.1521494400718; Mon, 19 Mar 2018 14:20:00 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id i127sm120500pfc.136.2018.03.19.14.19.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Mar 2018 14:20:00 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Mon, 19 Mar 2018 14:18:45 -0700 Message-Id: <1521494329-19546-23-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521494329-19546-1-git-send-email-mjc@sifive.com> References: <1521494329-19546-1-git-send-email-mjc@sifive.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PATCH v4 22/26] RISC-V: Remove support for adhoc X_COP interrupt X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patches@groups.riscv.org, Michael Clark , Palmer Dabbelt , Sagar Karandikar , Bastian Koppelmann Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is essentially dead-code elimination. Support for more local interrupts will be added in a future revision, as they will be defined in a future version of the Privileged ISA specification. Cc: Sagar Karandikar Cc: Bastian Koppelmann Signed-off-by: Michael Clark Signed-off-by: Palmer Dabbelt --- target/riscv/cpu_bits.h | 1 - target/riscv/op_helper.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index 12b4757..133e070 100644 --- a/target/riscv/cpu_bits.h +++ b/target/riscv/cpu_bits.h @@ -346,7 +346,6 @@ #define IRQ_S_EXT 9 #define IRQ_H_EXT 10 /* until: priv-1.9.1 */ #define IRQ_M_EXT 11 /* until: priv-1.9.1 */ -#define IRQ_X_COP 12 /* non-standard */ /* Default addresses */ #define DEFAULT_RSTVEC 0x00001000 diff --git a/target/riscv/op_helper.c b/target/riscv/op_helper.c index ba3639d..1fdde90 100644 --- a/target/riscv/op_helper.c +++ b/target/riscv/op_helper.c @@ -90,7 +90,7 @@ void csr_write_helper(CPURISCVState *env, target_ulong val_to_write, target_ulong csrno) { #ifndef CONFIG_USER_ONLY - uint64_t delegable_ints = MIP_SSIP | MIP_STIP | MIP_SEIP | (1 << IRQ_X_COP); + uint64_t delegable_ints = MIP_SSIP | MIP_STIP | MIP_SEIP; uint64_t all_ints = delegable_ints | MIP_MSIP | MIP_MTIP; #endif