Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nG2gZ-0004Ej-Jv for mharc-qemu-riscv@gnu.org; Fri, 04 Feb 2022 12:47:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG2gT-000463-RX for qemu-riscv@nongnu.org; Fri, 04 Feb 2022 12:47:45 -0500 Received: from [2a00:1450:4864:20::432] (port=46899 helo=mail-wr1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG2gS-0003nW-Cm for qemu-riscv@nongnu.org; Fri, 04 Feb 2022 12:47:45 -0500 Received: by mail-wr1-x432.google.com with SMTP id q19so314395wrc.13 for ; Fri, 04 Feb 2022 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GQXbzJRGCAzi7ppy9JRHchfsyush4KC9W9dGSjxVrXU=; b=vficyNrpaMIydVJ5oAUF3g2+4/TaY2UGa7tsxDJKUwE27Pq6BlTaG/V2uCZYpOYEd3 jqrDKQwUz8tFwz4BASZkSIWRkkjv1ZdJTgpn+uSMXaMdroZfmHt8i7nmtWfaCCjOlsp/ uoSQPo+juo6bNUqOy+MT6owB/+yIRwDLO2P8WDncK1ca11pwQNr/gBH8bDi/GgwdgG2U wgwbw8W4Ou/B1ZQzJmI03f5tBr5QWXRyYcBUubSq5aePFtYE0hkxsdmO1Fy4MzYh1SIM 6cTLywq5wbcqao22OhYc/+tWf2JgwLA9/bf7rf5dNhpxwnjNz3SYa+v99fsj8JZB1LZI wJ/g== 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=GQXbzJRGCAzi7ppy9JRHchfsyush4KC9W9dGSjxVrXU=; b=EWE9UhYFdifXZM8ZgkJneyrhKKKBT/EE5R8QB6pkBM2zwZk/SVFbaud/rlNN5v4NRL SdYg7zUAGjASPIyYeMEBjVmLJ0rJQPOF9r5/OceQge+tAedlQtYk9buzEI4MrMWw/Y0y FbfLSsO97lwb4ywNXpb3fZUVBsL58T2iGCZbyTbG6KyzNdpAmTBlY1YcuIPCe/uhVSpz 5RmN8yxACJXBkyKz6oRKYwA1s93Poep6iZK84wJK0Py6TcaSFZLYpwida1ispOfjdpTz JWtR+xmUHX/KOHGswjZMsJMDbyHOSWCEjGbUsmNWZcGwX22VS8Y9PUKfSOb7JeziXJT+ vAFw== X-Gm-Message-State: AOAM53277w60dKoahhvGhgt8HQPbx7Zwd4g217cxT3gxDpLd9g1H4pVq VSyIQXPo5cpA8GJ+PZDZtsHTLQ== X-Google-Smtp-Source: ABdhPJyDQK6wibqWfv2U2aVY36pV62p+D+LFjisYJFaTxGMfdmpO2xHIqGky1DIRVSDERKMceQgOBQ== X-Received: by 2002:a5d:6409:: with SMTP id z9mr3347169wru.587.1643996863038; Fri, 04 Feb 2022 09:47:43 -0800 (PST) Received: from localhost.localdomain ([122.167.157.188]) by smtp.gmail.com with ESMTPSA id f13sm11381876wmq.29.2022.02.04.09.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 09:47:42 -0800 (PST) From: Anup Patel To: Peter Maydell , Palmer Dabbelt , Alistair Francis , Sagar Karandikar Cc: Atish Patra , Anup Patel , Bin Meng , qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Alistair Francis , Frank Chang Subject: [PATCH v9 06/23] target/riscv: Add AIA cpu feature Date: Fri, 4 Feb 2022 23:16:42 +0530 Message-Id: <20220204174700.534953-7-anup@brainfault.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220204174700.534953-1-anup@brainfault.org> References: <20220204174700.534953-1-anup@brainfault.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::432 (failed) Received-SPF: none client-ip=2a00:1450:4864:20::432; envelope-from=anup@brainfault.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2022 17:47:46 -0000 From: Anup Patel We define a CPU feature for AIA CSR support in RISC-V CPUs which can be set by machine/device emulation. The RISC-V CSR emulation will also check this feature for emulating AIA CSRs. Signed-off-by: Anup Patel Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Alistair Francis Reviewed-by: Frank Chang --- target/riscv/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 283a3cda4b..8838c61ae4 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -78,7 +78,8 @@ enum { RISCV_FEATURE_MMU, RISCV_FEATURE_PMP, RISCV_FEATURE_EPMP, - RISCV_FEATURE_MISA + RISCV_FEATURE_MISA, + RISCV_FEATURE_AIA }; #define PRIV_VERSION_1_10_0 0x00011000 -- 2.25.1