From patchwork Mon Oct 25 17:36:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Baturo X-Patchwork-Id: 1545871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=bB3dOIof; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HdMc90VGQz9t14 for ; Tue, 26 Oct 2021 04:38:01 +1100 (AEDT) Received: from localhost ([::1]:42276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf3v4-0000bX-Se for incoming@patchwork.ozlabs.org; Mon, 25 Oct 2021 13:37:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf3tY-0008V6-Hz; Mon, 25 Oct 2021 13:36:24 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:45864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mf3tU-0001sy-Mv; Mon, 25 Oct 2021 13:36:24 -0400 Received: by mail-ed1-x534.google.com with SMTP id j10so2684621eds.12; Mon, 25 Oct 2021 10:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KIrYmD/+jqYxwxjugzy8laRQMng9maelmFxSGDOYKDM=; b=bB3dOIofVuwSz6vK4CuGLbsgAIUx1tCLnzEKIvSpDhgZsxm22Bi1Zx0wE7DGY09sy+ t1sXsRwUaByyeR5qqLcktYDPYs8STuDPWHS8+p4Y/5vykYcJ0OO4nnkzZpNYzMb6MdXr +7HJhXeAjnxG0QP0fyyFgWJOCfxTlBwzXD1u5vw96ZvK0gq+vLlN+2lodJGIDVRgAvdM LBoZb0yzM3NBltMH61AlKtmTzNfmc+dAEmG+RZYr27DWp43mvcb06VkmDT2zZcbnVgiU laAbGHGB/NFqJtYuq2xGa1Xoou4wVRlQNUMLGskbpq1kYsuP6bS8gxGcK77szLtXy+c8 q5dg== 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=KIrYmD/+jqYxwxjugzy8laRQMng9maelmFxSGDOYKDM=; b=mFi0s4RPFHJerftGSBNZuXnqytE+eW9E5NluL2R+kVM7yxh1JYFTdXP/rSH8y9rmJe KmOo4BvPkgaBQJKtq5e5maxz4fGFZ0g3WELm6lGxO1e4h0UCXCu8taCevtPanau2F90L H8nVwbSdkSPSqIcbpkOgGSyUpt9nw10JYg7cI5wWq5kpRDspBC1ITy63Pn4wPa/ewyMw LzB6kVny0yJ+B0c8+CiEVfo4+7TcWAGY/LTo9l3TNIpvA4hD2uzTTYNSIiGKrQySW7pv YsjjwU1Y44VXPPDqfhps3IsQoOYohHERyzefvQtyThUpvxk6ZBr7y10IyHaty5DQF+Ch 0QEw== X-Gm-Message-State: AOAM53239FkgU7B3EVS1sWNEtyAooxocF+IpR1xmnF5COhhM9fVgPJKK P4pZ6CVRR2xdTwyvZV1Z0IY= X-Google-Smtp-Source: ABdhPJzY2LzA5vjPDsD3WY5wmSQnpWilLDObYRCencDZKKw6yEehNkGfPUgZz+ZVlrAxnGG3UaDNTQ== X-Received: by 2002:a17:906:d1d1:: with SMTP id bs17mr23130578ejb.198.1635183378724; Mon, 25 Oct 2021 10:36:18 -0700 (PDT) Received: from neptune.lab ([46.39.229.76]) by smtp.googlemail.com with ESMTPSA id q14sm9718871edj.42.2021.10.25.10.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 10:36:18 -0700 (PDT) From: Alexey Baturo X-Google-Original-From: Alexey Baturo To: Subject: [PATCH v17 1/8] target/riscv: Add J-extension into RISC-V Date: Mon, 25 Oct 2021 20:36:02 +0300 Message-Id: <20211025173609.2724490-2-space.monkey.delivers@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211025173609.2724490-1-space.monkey.delivers@gmail.com> References: <20211025173609.2724490-1-space.monkey.delivers@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=baturo.alexey@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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: baturo.alexey@gmail.com, qemu-riscv@nongnu.org, sagark@eecs.berkeley.edu, kbastian@mail.uni-paderborn.de, richard.henderson@linaro.org, qemu-devel@nongnu.org, space.monkey.delivers@gmail.com, Alistair Francis , kupokupokupopo@gmail.com, palmer@dabbelt.com, Bin Meng Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: Bin Meng --- target/riscv/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index a33dc30be8..1cfc6a53a0 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -65,6 +65,7 @@ #define RVS RV('S') #define RVU RV('U') #define RVH RV('H') +#define RVJ RV('J') /* S extension denotes that Supervisor mode exists, however it is possible to have a core that support S mode but does not have an MMU and there @@ -291,6 +292,7 @@ struct RISCVCPU { bool ext_s; bool ext_u; bool ext_h; + bool ext_j; bool ext_v; bool ext_zba; bool ext_zbb;