{"id":2230026,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230026/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429044752.4176397-50-alistair.francis@wdc.com/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260429044752.4176397-50-alistair.francis@wdc.com>","date":"2026-04-29T04:47:50","name":"[PULL,49/51] target/riscv: Rename riscv_pm_get_virt_pmm() to riscv_pm_get_vm_ldst_pmm()","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"32b1ace154665389a4883fe6a1bdabb3ee36db27","submitter":{"id":64571,"url":"http://patchwork.ozlabs.org/api/1.1/people/64571/?format=json","name":"Alistair Francis","email":"alistair23@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260429044752.4176397-50-alistair.francis@wdc.com/mbox/","series":[{"id":501983,"url":"http://patchwork.ozlabs.org/api/1.1/series/501983/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501983","date":"2026-04-29T04:47:05","name":"[PULL,01/51] hw/riscv/riscv-iommu: Use standard EN_PRI bit for PRI","version":1,"mbox":"http://patchwork.ozlabs.org/series/501983/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230026/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2230026/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=RPBR9/2K;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g54mS3gbPz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 14:57:28 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wHwuM-0001qR-LZ; Wed, 29 Apr 2026 00:52:28 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wHwuK-0001pA-0U\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 00:52:20 -0400","from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wHwuI-0001Kn-9S\n for qemu-devel@nongnu.org; Wed, 29 Apr 2026 00:52:19 -0400","by mail-pl1-x62b.google.com with SMTP id\n d9443c01a7336-2b2589c26e3so112409555ad.1\n for <qemu-devel@nongnu.org>; Tue, 28 Apr 2026 21:52:17 -0700 (PDT)","from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b988772ae8sm7756145ad.7.2026.04.28.21.52.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 21:52:16 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777438337; x=1778043137; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=227Q35fZE6+M79xkJxQPFRbAqP+g1VEBQ9gOOBT2sro=;\n b=RPBR9/2KBG05ahmpYzjpJAcuGGQuWU/HkNwT2VeqEQpySKPF2EHRMf0P6CnoyiiyL3\n 9sa8wEIl4WNQAsQOTfDMdDJuqrCX1R09pDS7TT2i2iQ7f3RZ0PDBL/UlwFbYn/bYujTH\n Fa90fankYSZ5WkNcQfW0QL+C/rqG3BxP2BW8sO+WVsJJIelDZfGK9ATSpsTPJ3SO5WGt\n J5qMPeJsUBodFo6QRjay42kDBF4ac4CuR6ihxPOsda1v3QRtHshG2YAM189s8bqcXAPr\n 3RMj0Hw26MlOhd6yWgkiweD8FrVxJHEuc46+UJymFrpIdY2EEBjo3aBTQia6/G1YOHec\n eSpw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777438337; x=1778043137;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=227Q35fZE6+M79xkJxQPFRbAqP+g1VEBQ9gOOBT2sro=;\n b=FtNoeJMwF8ZhNbmPIDcMAVlF1x4Ip4n8qdh/i+c09rHHvJVZwjh54aEbYxeKSEcHx5\n GSCWxK42Z9sVA1H3Mrf8whRiFy2RsTZPcqZNPX8Hzp5n4LtkXfu2DDg+XnE/SRYhRlZL\n tzyljOX+7+h9Hc1o+93Y0d5Id0zLRdrNkOKO5teR/pyziYiFoh6pSg/61+21f3qMb+xz\n 40FL679Punf0gAR4A1iQw70L/1qolvKS8H8llnp6PLEnIxb/3xLBPL2L2qLss8Fy/mgH\n MCISalRqc8JSWPuLCzpNHNSUSe1TuYJ23w+fPgDqOdk0oFnSbD+kRHpRD43NGcL37Yx4\n z28A==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8qwC3b7opr2ynzEM+NzXVUHTji2hxGfuoIxoYiKKYBr4ZTAkrIYHCIMpG+cYhT2riLYVTu83JJyRI4@nongnu.org","X-Gm-Message-State":"AOJu0YxL7BbqSxlDpa2DwVI2lkcZ/J9uueaTUKfZPmabMS4m6t4JKxC/\n rzVD0qoSxKZugxgEqobVRWpnUShRkvbAZSZoiHiZ7sV/74mRMN5UEHZR","X-Gm-Gg":"AeBDietU+9Pyvu7DIRCtbj2BRgybOJ1lL67rLylXTzJ13b+sfQmy+mXvg4jZH/EAz4x\n 26KTgq2dzdW85oHoJQf+Khy+ltSR83VYmq/NJEqL1EvfKG3f03ERnn7CVROzeI2ebOsf3LZEsx0\n N4VrotXcbPtELBDBCRSryQpr5yuoNRW4xDu4xXmIf1PpaR/gYrBCai8n9TJOuBJSvMAnWcMjPJI\n UOQV2dTDgX5p2U4kiYJCQqZ5/kFGCjH8T4CJsmj1lV6Rw9jRM1oLDdhmNfHraz1wvQ1wx21jECt\n l34B+6tm7Doz5hwH6yML3s3RdVWtizZWCfVMCCE2SvJtvzWIX3zutWJeI6r7ULxdmAowDfjS/L+\n 0qPHh+ywKJptwIIQKFGFVFWwjqHo6K61tCuEOEvbG2FherIWbEqtpp29B8k1Miyyu3Ye87t1bfm\n 17GRjUzixBpgogtJXn7VP6vU9g0Ldb+pycRia8waSogQSNamncl240","X-Received":"by 2002:a17:903:1aad:b0:2b4:5ed3:415f with SMTP id\n d9443c01a7336-2b9873fc3afmr21588985ad.18.1777438336684;\n Tue, 28 Apr 2026 21:52:16 -0700 (PDT)","From":"alistair23@gmail.com","X-Google-Original-From":"alistair.francis@wdc.com","To":"palmer@dabbelt.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,\n zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org","Cc":"alistair23@gmail.com, Frank Chang <frank.chang@sifive.com>,\n Daniel Henrique Barboza <dbarboza@ventanamicro.com>,\n Alistair Francis <alistair.francis@wdc.com>","Subject":"[PULL 49/51] target/riscv: Rename riscv_pm_get_virt_pmm() to\n riscv_pm_get_vm_ldst_pmm()","Date":"Wed, 29 Apr 2026 14:47:50 +1000","Message-ID":"<20260429044752.4176397-50-alistair.francis@wdc.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260429044752.4176397-1-alistair.francis@wdc.com>","References":"<20260429044752.4176397-1-alistair.francis@wdc.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::62b;\n envelope-from=alistair23@gmail.com; helo=mail-pl1-x62b.google.com","X-Spam_score_int":"-17","X-Spam_score":"-1.8","X-Spam_bar":"-","X-Spam_report":"(-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Frank Chang <frank.chang@sifive.com>\n\nRename riscv_pm_get_virt_pmm() to riscv_pm_get_vm_ldst_pmm() to better\nreflect its actual usage. This function is used when checking the PMM\nfield for virtual-machine load/store instructions (HLV.* and HSV.*),\nrather than for VS/VU modes.\n\nSigned-off-by: Frank Chang <frank.chang@sifive.com>\nReviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>\nReviewed-by: Alistair Francis <alistair.francis@wdc.com>\nMessage-ID: <20260421093715.2995067-6-frank.chang@sifive.com>\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n target/riscv/cpu.h        | 2 +-\n target/riscv/internals.h  | 2 +-\n target/riscv/cpu_helper.c | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)","diff":"diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h\nindex 672f0dab0f..138183e017 100644\n--- a/target/riscv/cpu.h\n+++ b/target/riscv/cpu.h\n@@ -890,7 +890,7 @@ bool riscv_cpu_is_32bit(RISCVCPU *cpu);\n \n bool riscv_cpu_virt_mem_enabled(CPURISCVState *env);\n RISCVPmPmm riscv_pm_get_pmm(CPURISCVState *env);\n-RISCVPmPmm riscv_pm_get_virt_pmm(CPURISCVState *env);\n+RISCVPmPmm riscv_pm_get_vm_ldst_pmm(CPURISCVState *env);\n uint32_t riscv_pm_get_pmlen(RISCVPmPmm pmm);\n \n RISCVException riscv_csrr(CPURISCVState *env, int csrno,\ndiff --git a/target/riscv/internals.h b/target/riscv/internals.h\nindex d090db2641..7eb6edbe90 100644\n--- a/target/riscv/internals.h\n+++ b/target/riscv/internals.h\n@@ -209,7 +209,7 @@ static inline target_ulong adjust_addr_body(CPURISCVState *env,\n \n     /* get pmm field depending on whether addr is */\n     if (is_virt_addr) {\n-        pmm = riscv_pm_get_virt_pmm(env);\n+        pmm = riscv_pm_get_vm_ldst_pmm(env);\n     } else {\n         pmm = riscv_pm_get_pmm(env);\n     }\ndiff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c\nindex 2b3fea81d5..ef1ff7cb0b 100644\n--- a/target/riscv/cpu_helper.c\n+++ b/target/riscv/cpu_helper.c\n@@ -214,7 +214,7 @@ RISCVPmPmm riscv_pm_get_pmm(CPURISCVState *env)\n #endif\n }\n \n-RISCVPmPmm riscv_pm_get_virt_pmm(CPURISCVState *env)\n+RISCVPmPmm riscv_pm_get_vm_ldst_pmm(CPURISCVState *env)\n {\n #ifndef CONFIG_USER_ONLY\n     int priv_mode;\n","prefixes":["PULL","49/51"]}