From patchwork Tue Sep 28 19:00:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Baturo X-Patchwork-Id: 1534027 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=lkL+TZ0X; 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 4HJplz0F2Xz9shn for ; Wed, 29 Sep 2021 05:02:23 +1000 (AEST) Received: from localhost ([::1]:56168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVIMu-0004Aw-PJ for incoming@patchwork.ozlabs.org; Tue, 28 Sep 2021 15:02:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVILW-0003hB-Mn; Tue, 28 Sep 2021 15:00:54 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:37378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVILU-0000ua-IW; Tue, 28 Sep 2021 15:00:54 -0400 Received: by mail-ed1-x52b.google.com with SMTP id ba1so29175663edb.4; Tue, 28 Sep 2021 12:00:49 -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=XFBG85A/bxkc4cgssKypjfQTM8t7ELRlcncf1RBkjus=; b=lkL+TZ0Xt9RyMrNpKQ0TtL2r7s84SWpO0kcLvQEyeto2m6ovvSgGoIyx5nufNN3T6l 4+kHRMNwdSC2/w2Hb4eA8tUT+//t9YfHVwHx1AnNuVRD9dlDrpLOdShbO+xz1NaGnpTj R18Jxj7xPrSXr7NhCPCSp0aJUKQVVsnZcjJ5dD4xXQzm7ltBE+U8s5j+dTD/Zo7WkAwz q13/79SYcKOLZdIDjxuH2EYCPvPU4i0ky7Vx7ABYs5ChPJQC0s1E89x7wYQxykOJWS42 oUXty8SzQZEG7BhkAgnft0qYCPkXCJWVokERE92nQOL0SU4kdwA/9F76lbVDqfqISsO5 ySbg== 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=XFBG85A/bxkc4cgssKypjfQTM8t7ELRlcncf1RBkjus=; b=hd+qIW1bDKiVl8peP7D3AE4LhmrRY6tCXwi9lHVYM5QyQSiY7gDFhJocWPbHSuUq3K JYt6OfAjayiPT2inVrsdp+HZAm/X3snYJP6cco9QZWsTWYQrWb4ImZz41rNdbOoJD/ne bWeFKzkTa3WArinKC9gDGfs5CtbBy9hf/hhjatJ+HuuX+KupVhiO/bUTC8vTcXsgpV11 4M01vA+JtKhSvl8sOmwUchxL88YUQYFJ1g02wkXW1TQXYGWPMmoWMr6A0igP+qge/7yC 84/v1gYQw3fzqh/xFKLwaCipSe2xqMKFDc+idOTdAyaywYA7nJNxEFYL7ZnIN9b4sT9O 1KsQ== X-Gm-Message-State: AOAM5302b9BCptA+NxO2wcPgj/QuqRl74nvovfvwvrqZe11NV6bL4WkV irzzITcT8oPgsNLcJYSm8vQ= X-Google-Smtp-Source: ABdhPJxDUL0S7UIJAg1z4f3Q6JCR50MnxutKEPC6/c0XLDi521FQR2O9P1xYaQUDGvPjzV9Psw8xjA== X-Received: by 2002:a17:906:901:: with SMTP id i1mr8438042ejd.234.1632855648298; Tue, 28 Sep 2021 12:00:48 -0700 (PDT) Received: from neptune.lab ([46.39.229.233]) by smtp.googlemail.com with ESMTPSA id f10sm4500330edu.70.2021.09.28.12.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 12:00:47 -0700 (PDT) From: Alexey Baturo X-Google-Original-From: Alexey Baturo To: Subject: [PATCH v12 1/7] [RISCV_PM] Add J-extension into RISC-V Date: Tue, 28 Sep 2021 22:00:30 +0300 Message-Id: <20210928190036.4114438-2-space.monkey.delivers@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210928190036.4114438-1-space.monkey.delivers@gmail.com> References: <20210928190036.4114438-1-space.monkey.delivers@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=baturo.alexey@gmail.com; helo=mail-ed1-x52b.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, Bin Meng , richard.henderson@linaro.org, qemu-devel@nongnu.org, space.monkey.delivers@gmail.com, Alistair Francis , 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 5896aca346..cd86f5422f 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -68,6 +68,7 @@ #define RVU RV('U') #define RVH RV('H') #define RVB RV('B') +#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 @@ -292,6 +293,7 @@ struct RISCVCPU { bool ext_s; bool ext_u; bool ext_h; + bool ext_j; bool ext_v; bool ext_counters; bool ext_ifencei;