On 12/16/24 10:28 AM, Palmer Dabbelt wrote:
On Mon, 16 Dec 2024 08:37:13 PST (-0800), c...@cyyself.name wrote:
There should be no svvptc in the riscv-ext-bitmask.def file since it has
not yet been added to the RISC-V C API Specification or the Linux
hwprobe. And there is no need for userspace software to know that this
extension exists. So remove it from the riscv-ext-bitmask.def file.

Fixes: e4f4b2dc08 ("RISC-V: Minimal support for svvptc extension.")
Signed-off-by: Yangyu Chen <c...@cyyself.name>

gcc/ChangeLog:

    * common/config/riscv/riscv-ext-bitmask.def (RISCV_EXT_BITMASK): Remove svvptc.
---
 gcc/common/config/riscv/riscv-ext-bitmask.def | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/common/config/riscv/riscv-ext-bitmask.def b/gcc/ common/config/riscv/riscv-ext-bitmask.def
index a733533df98..ca5df1740f3 100644
--- a/gcc/common/config/riscv/riscv-ext-bitmask.def
+++ b/gcc/common/config/riscv/riscv-ext-bitmask.def
@@ -79,6 +79,5 @@ RISCV_EXT_BITMASK ("zcd",        1,  4)
 RISCV_EXT_BITMASK ("zcf",        1,  5)
 RISCV_EXT_BITMASK ("zcmop",        1,  6)
 RISCV_EXT_BITMASK ("zawrs",        1,  7)
-RISCV_EXT_BITMASK ("svvptc",        1,  8)

 #undef RISCV_EXT_BITMASK

Reviewed-by: Palmer Dabbelt <pal...@rivosinc.com>
Acked-by: Palmer Dabbelt <pal...@rivosinc.com>

I think we'll likely never expose this to userspace, the mappings are all hidden behind kernel interfaces so userspace shouldn't need to know.
I've pushed this patch to the trunk.

jeff

Reply via email to