From patchwork Wed Mar 21 20:46:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Clark X-Patchwork-Id: 10300389 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 04163602B3 for ; Wed, 21 Mar 2018 20:55:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E130D2842B for ; Wed, 21 Mar 2018 20:55:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D60D6297AF; Wed, 21 Mar 2018 20:55:26 +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 7ED0F2842B for ; Wed, 21 Mar 2018 20:55:26 +0000 (UTC) Received: from localhost ([::1]:57391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyklZ-0000cK-Lr for patchwork-qemu-devel@patchwork.kernel.org; Wed, 21 Mar 2018 16:55:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eykeZ-0002BQ-PE for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eykeY-0002C3-Ma for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:11 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:41238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eykeY-0002Bo-GM for qemu-devel@nongnu.org; Wed, 21 Mar 2018 16:48:10 -0400 Received: by mail-pg0-x242.google.com with SMTP id m24so2398653pgv.8 for ; Wed, 21 Mar 2018 13:48:10 -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=Gmdx8xg/FivOUC1BDkURe2l5W4Vg/v301ZFAuqGI5J6U0+n3vPlIOnc9qLfM8kYN7M hUBn3J4MjZWM6+frgCNkpn/oF5aI4gpQ5uPVmbSPSyjgSQRUEuxpFX0YgmZUgI94l80A bQZWd4RzOBjtsKpbjpJ5EEcm1pbIyBoZZ2gUpC/Lvymajbo0aJIxx0+67dH5knSEwE5h 7GcAFSzEN8bYm/7tzpIpgXWQFi5xNNeNT7Dm0HQFGgGE5SGaeJTGgX1IMoneqv8AZwkV 0Lt8SWyTfySHLiCcX/iDWaf2plcliQU6boC1ewHxq+OjW9+shLpEt4YwBMB8rj40LuGc qgcg== 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=Hyw4lpOmmw3fWn3gHdnOIEd9uoCwrtK6qVjsRGDrD2yv+vEkk5iOWXhcbeH6hrxvSl vG4W//BwWZ0ewAhWGYiTciiJ8QfNDn+o5eUQllwMRNhFQDGQ2QS5Ypv1IF5lBX5dYe8r ShVuXuQziqeOFqfif3MVCsuHo/bfNpustr4ZTxPBOZCTiWfJhDuMofKDk5MJ49X2I0vF 9NYYMjtV6bYaXcgPZrnLqw6uWIzerFP3qfMexZvKM9MekLm/XbmHMS3xCjcWDZDvJ3r/ kOAXlQMqEK141i9xKp3BebAJcb8QaeT/hCueCZA0NeH2LcZcg2BCKpWHBkyVlRmbpub9 txUQ== X-Gm-Message-State: AElRT7Ezn3XKHiMBtFgLf78YZ5s2vXETlb532A082LNfkhfpe/zO+IVp lsM/gJwHsDbLdQQZVm8WoA/v7y5sVY0= X-Google-Smtp-Source: AG47ELuNP2bDMnjT0V96UsQbvwMChAbjNqpx9eY6tgTbR5JUlndYoF75iOcmdpkxOy/FJFgrtPO5bg== X-Received: by 10.99.149.86 with SMTP id t22mr2307754pgn.144.1521665289501; Wed, 21 Mar 2018 13:48:09 -0700 (PDT) Received: from monty.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id w10sm8244499pgr.57.2018.03.21.13.48.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Mar 2018 13:48:09 -0700 (PDT) From: Michael Clark To: qemu-devel@nongnu.org Date: Wed, 21 Mar 2018 13:46:57 -0700 Message-Id: <1521665220-3869-22-git-send-email-mjc@sifive.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1521665220-3869-1-git-send-email-mjc@sifive.com> References: <1521665220-3869-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::242 Subject: [Qemu-devel] [PULL 21/24] 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