From patchwork Sun Feb 6 09:18:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Atish Kumar Patra X-Patchwork-Id: 12736492 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B50DFC433EF for ; Sun, 6 Feb 2022 09:39:23 +0000 (UTC) Received: from localhost ([::1]:48180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGe0v-0008ON-Ro for qemu-devel@archiver.kernel.org; Sun, 06 Feb 2022 04:39:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGdh7-0007xg-3Y for qemu-devel@nongnu.org; Sun, 06 Feb 2022 04:18:53 -0500 Received: from [2607:f8b0:4864:20::331] (port=40622 helo=mail-ot1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGdh4-00012r-Ue for qemu-devel@nongnu.org; Sun, 06 Feb 2022 04:18:52 -0500 Received: by mail-ot1-x331.google.com with SMTP id x52-20020a05683040b400b0059ea92202daso8817188ott.7 for ; Sun, 06 Feb 2022 01:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EyU4+THqr3Y8pJWma7DCKWkG8X88FhKyF8Z3F935mXk=; b=DeEJuJKdoj0NZhvR5f7t3V/hpuY+3ezAjLO+WtuShf4YFEmrKAeUXNBnf6GOsyW/1t MoHsmtljrC8pUzJhd80DicVXhkB4Pzv4f/lNn/vzdu2Zb0uC6ACabqgnPReiY5bEYrYq LfFIb2vXPHZHgL4qAozr9zCXQc6D4SVS/1SAY/9hp7DpyKNin/nN7SXtuApWG3oWOWBw kAHV8CQQDD5OguezBSyeMDRs+2Ts9iRVicuV6qI3KURsWb3CNyFgvnjkdjkphwpHBp/k BIk+3ihOwlTMxz8xut/FUHyV6tLuZ/E0ehnXPY1inaiskPZXScx3eni9V5LrUFypES+H 9trw== 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=EyU4+THqr3Y8pJWma7DCKWkG8X88FhKyF8Z3F935mXk=; b=b5yFBjodJD+SAw1otyBw7SaomJ4tazkxMjWEnOWAfx+yhWesxe2peFiubpiP3cZ7Ta Rwmra6pn2dlfIfjmSf7BNMxPuDNvhYEPmlWRIDt754XuFpD8FRAwHHZWJogPXICICGb8 RrAH5VLo0oIhHm46WocsnWEDIJjnBqU57tsAZRN4V27emVHx9gekzSWpM0meZPzYm3Wa 9SfvXbacl+0iTgs1EAMScxQRzWKxNWGmFkiMoaT9q4hJYkzllGWLnhCu4L8sk9ntjA0n Ug/9b6Ai8H+IJAVtOQm9OmW7dNijXcPTnGUrObbFMttPNv6U5zoITKqlUBGDJ+gil+zF gwOw== X-Gm-Message-State: AOAM533oR2czz+g9wtFWeVKUfqqANHVawAuLOm0MfTiZKwwp/sG9HSSk vn8n0dXztzBA23KB6H2UVRMHt9xeJT4o2AbJ X-Google-Smtp-Source: ABdhPJxsK+rSquopr6U5ArkFnbkEZKOVK6ZAJDDTF7giz1xHdift55ZNJiWoK29tfTqHVKgCkwRLRA== X-Received: by 2002:a05:6830:839:: with SMTP id t25mr2405711ots.372.1644139129698; Sun, 06 Feb 2022 01:18:49 -0800 (PST) Received: from rivos-atish.. (adsl-70-228-75-190.dsl.akrnoh.ameritech.net. [70.228.75.190]) by smtp.gmail.com with ESMTPSA id 1sm1596841oab.16.2022.02.06.01.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Feb 2022 01:18:49 -0800 (PST) From: Atish Patra To: qemu-devel@nongnu.org Subject: [PATCH v3 2/6] target/riscv: Add the privileged spec version 1.12.0 Date: Sun, 6 Feb 2022 01:18:31 -0800 Message-Id: <20220206091835.1244296-3-atishp@rivosinc.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220206091835.1244296-1-atishp@rivosinc.com> References: <20220206091835.1244296-1-atishp@rivosinc.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::331 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=atishp@rivosinc.com; helo=mail-ot1-x331.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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: Alistair Francis , Bin Meng , Atish Patra , Palmer Dabbelt , qemu-riscv@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Add the definition for ratified privileged specification version v1.12 Signed-off-by: Atish Patra Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index e5ff4c134c86..60b847141db2 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -86,6 +86,7 @@ enum { enum { PRIV_VERSION_1_10_0 = 0, PRIV_VERSION_1_11_0, + PRIV_VERSION_1_12_0, }; #define VEXT_VERSION_1_00_0 0x00010000