From patchwork Tue Nov 14 10:34:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 743764 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp2096403wrw; Tue, 14 Nov 2023 02:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjmz3ogljDC3gpR1u9R5w7aa2b0HiOAB4ha7l9HImcKqULdOOi8afTsRCu0oJjeOsJ9kWM X-Received: by 2002:a05:620a:5627:b0:76d:268b:9741 with SMTP id vv7-20020a05620a562700b0076d268b9741mr1710365qkn.17.1699958162980; Tue, 14 Nov 2023 02:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699958162; cv=none; d=google.com; s=arc-20160816; b=1HC51/EsoHykV+/dEK+VwOvGoUbwtd6JE9BUAAl6AWRqpDgUP2Wkbc7Tx0K0WjKmmo 883d3ZS3PhS9vS1b4rqJdOuTmkdFGYsVSJ0xY9EZUCWSWMr/aGON7H8ZvKXPzTrp/BXj wFl6mrQSi3bB1djO8I2IloQuyQWe11xiV0ftou+lxpb/mcBYHgR8VWww4NaR+BRKTHmp XZE1PDs0kehThtlqAthpqrjzxa4BirwwA42IfMKmFAN018le21eQk/Qrvnn785mFYeqB dPvSV8+dUKSiH9UMvGkHwBLLn48QI2qE5RzKD3cfh9zXnU+sErfJu/GgtDBKjWSJh/Rg PHXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=yW/4j0it7NGLdhTPZuUYAL56B+3njidh/zMW6jBAoe8=; fh=gT18LomMi4CJmwZG/NBzG0ez4299g6cVe7jEzIk4n3Y=; b=votYfbZ01jENwDo54ONzvR2GDOmLXq+yCshp99Cox4ChM2D0y7Uyr846bFYyQ1/Hl8 wnWfjghyGcjlAJdF51gm7/zSoDy0igxLBUwrDVmlBZ/pR25DwiSkmMddXj+zeukabmSq MQMxxznRq7I8Lgp2l81WI55pGdZHdJIxkmFMK52FvTWAkaus5CuwDYkwJIE2UFYhX1UM TwSZn3ZPXKTVpduKU92vqRpTRJEGn8Bm1u2yfPGLhjy1zXs1SpvQrBT2JzAJUf8QCMwM CcatuELgz8R1CX41ZOIxmk98NwufYpgCAiGZnINt66jpGkFC7pyGanUTeOhvB+Twthze emDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bm42-20020a05620a19aa00b0077707515152si6644558qkb.256.2023.11.14.02.36.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Nov 2023 02:36:02 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2qkz-0003nB-Ar; Tue, 14 Nov 2023 05:34:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2qkx-0003lk-O3; Tue, 14 Nov 2023 05:34:55 -0500 Received: from muminek.juszkiewicz.com.pl ([213.251.184.221]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r2qkw-00015X-9Y; Tue, 14 Nov 2023 05:34:55 -0500 Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 351EE26110A; Tue, 14 Nov 2023 11:34:50 +0100 (CET) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id 7SfRNMwKDuUL; Tue, 14 Nov 2023 11:34:49 +0100 (CET) Received: from applejack.lan (83.11.210.67.ipv4.supernova.orange.pl [83.11.210.67]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 8928B260251; Tue, 14 Nov 2023 11:34:48 +0100 (CET) From: Marcin Juszkiewicz To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Richard Henderson , Paolo Bonzini , Marcin Juszkiewicz Subject: [PATCH 1/1] target/arm: enable FEAT_RNG on Neoverse-N2 Date: Tue, 14 Nov 2023 11:34:43 +0100 Message-ID: <20231114103443.1652308-1-marcin.juszkiewicz@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: softfail client-ip=213.251.184.221; envelope-from=marcin.juszkiewicz@linaro.org; helo=muminek.juszkiewicz.com.pl X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org I noticed that Neoverse-V1 has FEAT_RNG enabled so let enable it also on Neoverse-N2. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Richard Henderson --- target/arm/tcg/cpu64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index 08db1dbcc7..fcda99e158 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -1018,7 +1018,7 @@ static void aarch64_neoverse_n2_initfn(Object *obj) cpu->isar.id_aa64dfr1 = 0; cpu->id_aa64afr0 = 0; cpu->id_aa64afr1 = 0; - cpu->isar.id_aa64isar0 = 0x0221111110212120ull; /* with Crypto */ + cpu->isar.id_aa64isar0 = 0x1221111110212120ull; /* with Crypto and FEAT_RNG */ cpu->isar.id_aa64isar1 = 0x0011111101211052ull; cpu->isar.id_aa64mmfr0 = 0x0000022200101125ull; cpu->isar.id_aa64mmfr1 = 0x0000000010212122ull;