From patchwork Wed May 26 17:57:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Baturo X-Patchwork-Id: 1484207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: 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=20161025 header.b=eqEoCViO; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 4Fqzp85Wgnz9sTD for ; Thu, 27 May 2021 04:22:56 +1000 (AEST) Received: from localhost ([::1]:38648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llyBC-0002K2-OB for incoming@patchwork.ozlabs.org; Wed, 26 May 2021 14:22:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llxnU-0002qj-Ow; Wed, 26 May 2021 13:58:24 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:47059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llxnT-00071w-1y; Wed, 26 May 2021 13:58:24 -0400 Received: by mail-ej1-x636.google.com with SMTP id b9so3801093ejc.13; Wed, 26 May 2021 10:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MU3JTu3rmDbZc+WwTSzdujwDE0KKZH6TsSTAfE4l5Ts=; b=eqEoCViOy06LqnwtyLVD1S0Vo+k3cARfcpcaQ4tpEnNH/YYxUeLuA6pkyxuc0aDL02 +pUY9Js58RrwVgPiS64Ww2IDxwb32M3OJmrZtkHMcR747O4SlSLWkesZlRXusZInytPj NMuJg3H8dLaAOkH1V9bT2L3+kegQx44nmqPXz6VcSuV07C9jukXz+edjnmiQ9TxFV8FW AbwtTIWhO/BxM7ZWLQGOr5THC7vQGvnXbfB3PghA/FonAec4BKgDPIWwxCPdOCijOZYi by1HkfFRIfwq56SfOT4ZxrSsrtqIYvXmXJn3+LOk0SIIiiAmSpo9kU83unfbf3ZI+Dda aMfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MU3JTu3rmDbZc+WwTSzdujwDE0KKZH6TsSTAfE4l5Ts=; b=ABIExqPvX/RjI21yjMcbqrarpMI3+duHiYEZxW3ZNpvU7zOrC4yHR6Fxc7bPGzyEKR fPAic55RuQpgC5SGS00bKzJAcl42yBctmQ64+8gvQqwi0jnSziVJHAcNxWe8KUrGXLff E0H+OmiNw+58pCqH9cJBEPW+yONpXZQvR6qrSgRIepnoXJfgVhQ6WVRd7aCz1AfR/Iit jZJ97BIZpGV/TwiSKBoNTRPj/CbxaGulZqEFAzk4oMdh4qpiRJ3y/dd6Y3zVZSEn5o5B GnCwnTHwu4GH7lNKRc1AXVs880WXGy/AI3WXqI1Xfd7Nknywbx0FE3L0jhMGfqbggRNQ wFOA== X-Gm-Message-State: AOAM53351+fv0pdN86iYDxbrsmJJLB+6vvF0/5348KNIQnDCY06ZABP0 2l5ZUikN3t4h90J2x+dSvX8= X-Google-Smtp-Source: ABdhPJwk6OQRE0rsO7LB9XCgo0g0lw1LvO3O949JB1hVuPuJdLlW+58ZYe10KsaIh63sB3ErfyQAtQ== X-Received: by 2002:a17:906:5fca:: with SMTP id k10mr35682346ejv.357.1622051901293; Wed, 26 May 2021 10:58:21 -0700 (PDT) Received: from neptune.lab ([81.200.23.112]) by smtp.googlemail.com with ESMTPSA id hp1sm10407449ejc.96.2021.05.26.10.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 10:58:20 -0700 (PDT) From: Alexey Baturo X-Google-Original-From: Alexey Baturo To: Subject: [PATCH v9 6/6] [RISCV_PM] Allow experimental J-ext to be turned on Date: Wed, 26 May 2021 20:57:48 +0300 Message-Id: <20210526175749.25709-7-space.monkey.delivers@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210526175749.25709-1-space.monkey.delivers@gmail.com> References: <20210526175749.25709-1-space.monkey.delivers@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=baturo.alexey@gmail.com; helo=mail-ej1-x636.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 , kupokupokupopo@gmail.com, palmer@dabbelt.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 25e28e9b95..21a96ec366 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -516,6 +516,7 @@ static void riscv_cpu_realize(DeviceState *dev, Error **errp) /* mmte is supposed to have pm.current hardwired to 1 */ env->mmte |= (PM_EXT_INITIAL | MMTE_M_PM_CURRENT); #endif + target_misa |= RVJ; } if (cpu->cfg.ext_v) { target_misa |= RVV; @@ -588,6 +589,7 @@ static Property riscv_cpu_properties[] = { DEFINE_PROP_BOOL("u", RISCVCPU, cfg.ext_u, true), /* This is experimental so mark with 'x-' */ DEFINE_PROP_BOOL("x-h", RISCVCPU, cfg.ext_h, false), + DEFINE_PROP_BOOL("x-j", RISCVCPU, cfg.ext_j, false), DEFINE_PROP_BOOL("x-v", RISCVCPU, cfg.ext_v, false), DEFINE_PROP_BOOL("Counters", RISCVCPU, cfg.ext_counters, true), DEFINE_PROP_BOOL("Zifencei", RISCVCPU, cfg.ext_ifencei, true),