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 493C9D58D4B for ; Mon, 25 Nov 2024 13:37:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFZHM-00023D-5x; Mon, 25 Nov 2024 08:37:28 -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 1tFZHJ-0001zF-FX for qemu-riscv@nongnu.org; Mon, 25 Nov 2024 08:37:25 -0500 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFZHH-0000ln-J5 for qemu-riscv@nongnu.org; Mon, 25 Nov 2024 08:37:25 -0500 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-724e7d5d5b2so2671339b3a.2 for ; Mon, 25 Nov 2024 05:37:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1732541841; x=1733146641; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=30sNnKLjIG+X0DddhDYNVvgCWDY8gxVcKu0ojUEV0Ic=; b=n0upVOuy6qjGQWkO6m7fO+VSABhJN5wb3vfy7EvcxOEl2Gzmhaje+PnGAWitkKRgCZ DNhheqjb0NL9fz20w2GjZ9Nh7awiE0NcUUj0gK93dHGy2sXkAoPeH40R4N58qQxhNgbM G8fM0W1PSiuiaTX6KO4gftM9J5HfWnznpwl5cVhc/AA6X/A52Kw6wUDYtxEJ6hrfeOh0 yLVfZq4aRxrhDJ7bWpvD5iiDQejacNlPE/6enpUZJqf9kFl7jLgRJ4VztHNO1Df2x1R/ PrLwyKIOOUZKs+E7e7hZKCUoqefTnJ2DnPpsLuKOhyO02WpC4SOAykCYawVQjwrqCTAh pGLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732541841; x=1733146641; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=30sNnKLjIG+X0DddhDYNVvgCWDY8gxVcKu0ojUEV0Ic=; b=p0kBWnT39UMyQXySLYBj3ptvNzd9Qtwiep6kkAGyCCqpNpsi5C9121zAQ6B6DDRNIU xzpQ9L7wN55HXvGb9mQmlM+OxgUwfZlpP8E6MTeWr2ubokmOl+e7t4PyIjnwQgVn69co Pp0mbR7q+C9ALPwrNAdoxSGmdVxZaqaA30ewE8H+uPANZ573NbMVKkwohVA/EuWTKvKv bUkEyRTswNML6yLXBcRdF47J+K2SF5mdpGgASV1drtnIsXY7BlBEN7mo4zpm2504AJwn Z6LealhbIVl8LX0clfREdyv7O/BoP1p9ZZ2JwriltkeISwP5zKASPKh0ks/rEQdC8/vK F6Hg== X-Forwarded-Encrypted: i=1; AJvYcCXrPIXvP6eiBndHRzaGrf9Bv69ZVR2ELSDhWVwkS1Lw7kafWUFR/pJ7avHzvqVXeobtBxfoORhraXXh@nongnu.org X-Gm-Message-State: AOJu0Ywz4pwRbpgOK03x9MViT07rH2+ZcSroEUC7j+zFwcqsV5jfjBCa dDh41Olg7a7bbOj/Q2jnh2mXYsIvvWOO1LTdU0UgCPj9f7MgFSAw1rQD1e1WpF4= X-Gm-Gg: ASbGncvW/dCJSU2yhiapM65+wBoX3XLNm/sUgQGIie4NDIjfN/R7n3pnghj53KoYnnO hjQSmx6fGn4lRYdA2apOLFw6FonbbqGKiiFx5ArPYezPdA1dojnRZ2M5DVWJb+ZHunUQmINJyAN /cGEFSzvCFH1AR90cPTNg33hS7lmdEhUkuycNWp4Xy6phkbfk5V7q3CU/YBXZd3s8hyb3nRAEVV DHww56rguIjySphM8h8gm65k58SDZAXJ0bliBgdode84h4xsRWrJbGhLti5hKk= X-Google-Smtp-Source: AGHT+IF0ORFvsoXHhr245DHOFUfCRQ5+JqW4V/UPXsmPoVch6cWd4xk9e7Iy5HRpFc99b8rO2gyrzA== X-Received: by 2002:a05:6a20:c91c:b0:1dc:5023:e8d9 with SMTP id adf61e73a8af0-1e09e4af483mr19642573637.25.1732541841557; Mon, 25 Nov 2024 05:37:21 -0800 (PST) Received: from [192.168.68.110] ([187.101.65.72]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fbcc3de284sm6606468a12.55.2024.11.25.05.37.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2024 05:37:21 -0800 (PST) Message-ID: Date: Mon, 25 Nov 2024 10:37:15 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/7] Pointer Masking update for Zjpm v1.0 To: baturo.alexey@gmail.com Cc: richard.henderson@linaro.org, zhiwei_liu@linux.alibaba.com, liwei1518@gmail.com, alistair23@gmail.com, frank.chang@sifive.com, palmer@dabbelt.com, Alistair.Francis@wdc.com, sagark@eecs.berkeley.edu, kbastian@mail.uni-paderborn.de, qemu-devel@nongnu.org, qemu-riscv@nongnu.org References: <20241121061259.4043177-1-baturo.alexey@gmail.com> Content-Language: en-US From: Daniel Henrique Barboza In-Reply-To: <20241121061259.4043177-1-baturo.alexey@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=dbarboza@ventanamicro.com; helo=mail-pf1-x42c.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, 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-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Hi Alexey, I believe this is not the second version of this work. When I asked about the next versions this was already in v9: https://lore.kernel.org/qemu-riscv/d4241c7b-ae97-4dc1-bc60-5f0eed58d3a5@ventanamicro.com/ And it had most of the patches already reviewed by Alistair and Richard. So this would be in fact v11, with a lot of patches already reviewed. If you could re-send this series as v11, keeping reviewed-by tags from code that you didn't change from one version to the other, the review will go faster. Thanks, Daniel On 11/21/24 3:12 AM, baturo.alexey@gmail.com wrote: > From: Alexey Baturo > > Hi, > > I've rebased this patch series and addressed Richard's and Daniel's comments. > Thanks > > *** BLURB HERE *** > [v0]: > As Pointer Masking is finally ratified, these patches intend to update the existing code to the final version. > These patches have been submitted previously and I tried to address all the suggestions, but I'd suggest to review them from the clean slate and then finally push them to the repo. > Thanks. > > Alexey Baturo (7): > target/riscv: Remove obsolete pointer masking extension code. > target/riscv: Add new CSR fields for S{sn,mn,m}pm extensions as part > of Zjpm v1.0 > target/riscv: Add helper functions to calculate current number of > masked bits for pointer masking > target/riscv: Add pointer masking tb flags > target/riscv: Update address modify functions to take into account > pointer masking > target/riscv: Apply pointer masking for virtualized memory accesses > target/riscv: Enable updates for pointer masking variables and thus > enable pointer masking extension > > target/riscv/cpu.c | 19 +- > target/riscv/cpu.h | 51 ++-- > target/riscv/cpu_bits.h | 91 +----- > target/riscv/cpu_cfg.h | 3 + > target/riscv/cpu_helper.c | 124 +++++--- > target/riscv/csr.c | 357 ++---------------------- > target/riscv/insn_trans/trans_rvh.c.inc | 11 + > target/riscv/machine.c | 17 +- > target/riscv/pmp.c | 14 +- > target/riscv/pmp.h | 1 + > target/riscv/tcg/tcg-cpu.c | 5 +- > target/riscv/translate.c | 51 ++-- > target/riscv/vector_helper.c | 18 +- > 13 files changed, 224 insertions(+), 538 deletions(-) >