From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D809CC433B4 for ; Wed, 7 Apr 2021 14:03:09 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B31661165 for ; Wed, 7 Apr 2021 14:03:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B31661165 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU8lw-00010N-L1 for qemu-devel@archiver.kernel.org; Wed, 07 Apr 2021 10:03:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU8hA-00055k-UL; Wed, 07 Apr 2021 09:58:12 -0400 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]:41585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lU8gy-0001ka-Hd; Wed, 07 Apr 2021 09:58:12 -0400 Received: by mail-il1-x130.google.com with SMTP id n4so9468397ili.8; Wed, 07 Apr 2021 06:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Du6uP5XeSa960AupAu2v3JIOFbV9ah0z+BgNYDZjZBM=; b=gpWvK7oBkSkQK2mOz/TFFC6/D6irtFmhHl1zwnxgOlz8yAtVsAHYHydPIxCk7z51kw 3YISucyPxdNdFguFqU8I6M4H2BxcFvbPsyMN7ZQi8moZZItZLbhFtpr+1wfIOl16iZsC y2xUkyut2M2OJpTuA+45fspHqiVJSVw86MFa9uH9f1PDh83J/ooLr4OI+JUTCAo9Duai GPGb8Cz1+HC5DG9Z/77lJAutPqpJm0awBJfZmw+ErJ+AVgCfnqW3gET/G8Aj6Jk8I4Pn IOdhUJhBakRVAJdFGP0OzH/CCqoEiHACIgxw+/7lbQ4x7/2inWZwJAgc8DbqH6xzvyxM VFvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Du6uP5XeSa960AupAu2v3JIOFbV9ah0z+BgNYDZjZBM=; b=UO9NSaEBymFap14AVkRYzKw5gXNx13cEoNttiG989efq0Jqof8Mn8WNQJrfgJLr2YP Njw/hvMIs1qT8ztqz/gF+kpPPk4odNfZQO5ZPP4hqXF8qnHjBx43UVzwEdWTWs7IXWFC Hbbd9sC1I9QNm0pbTx/iSb31+PEWtMtQ5ebBL/yyrhZRaGZyFTuWgMT+NXlxo8CT2gtn zVi9jNkawa7oej/V01Uh6tIaEdsfpRH+JUibtlPEXjEQi0Y+HOcsZWJxHSuR4aoeUEwN 1psL5UCpd1LHbL1hIze+AGwQmcm/h6onmmpdHASB35+IIcyVnSLrxnQSuDCUwASOJsbB TXsw== X-Gm-Message-State: AOAM533ChRR7m+3q2AMSF17BVixj/XnuBbtSqGnrWvvBJc6N+Y15EF+X iEaaq8JVpQKUTHS3VwNiiI+l2wsKAC57DFhamOw= X-Google-Smtp-Source: ABdhPJxqOWut/uNQ8CZAxEIgLlvhunAPEX1lz7TSFZJytFFvFD+0zJLyf8SM4o2iPja/vki/nRr2wF2A9U7dSwuqJRM= X-Received: by 2002:a92:d6cb:: with SMTP id z11mr2796500ilp.227.1617803878393; Wed, 07 Apr 2021 06:57:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alistair Francis Date: Wed, 7 Apr 2021 09:55:37 -0400 Message-ID: Subject: Re: [PATCH v2 0/5] RISC-V: Convert the CSR access functions to use To: Alistair Francis Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::130; envelope-from=alistair23@gmail.com; helo=mail-il1-x130.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Palmer Dabbelt , Bin Meng , "open list:RISC-V" , "qemu-devel@nongnu.org Developers" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Thu, Apr 1, 2021 at 11:19 AM Alistair Francis wrote: > > V2: > - Renmae the enum > - Rebase on master > - Fix a few incorrect returns > > Alistair Francis (5): > target/riscv: Convert the RISC-V exceptions to an enum > target/riscv: Use the RISCVException enum for CSR predicates > target/riscv: Fix 32-bit HS mode access permissions > target/riscv: Use the RISCVException enum for CSR operations > target/riscv: Use RISCVException enum for CSR access Thanks! Applied to riscv-to-apply.next Alistair > > target/riscv/cpu.h | 28 +- > target/riscv/cpu_bits.h | 44 +-- > target/riscv/cpu.c | 2 +- > target/riscv/cpu_helper.c | 4 +- > target/riscv/csr.c | 740 ++++++++++++++++++++++---------------- > target/riscv/gdbstub.c | 8 +- > target/riscv/op_helper.c | 18 +- > 7 files changed, 492 insertions(+), 352 deletions(-) > > -- > 2.31.0 >