[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe s
From: |
Deepak Gupta |
Subject: |
[PATCH 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe syscall |
Date: |
Thu, 25 Jul 2024 16:46:13 -0700 |
Add zicfiss/lp extensions in the ext0 key of hwprobe syscall.
It is aligned with Linux CFI patchset.
Signed-off-by: Jim Shu <jim.shu@sifive.com>
Signed-off-by: Deepak Gupta <debug@rivosinc.com>
---
linux-user/syscall.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f879be7cfe..f2f2164ee5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -8882,6 +8882,8 @@ static int do_getdents64(abi_long dirfd, abi_long arg2,
abi_long count)
#define RISCV_HWPROBE_EXT_ZTSO (1ULL << 33)
#define RISCV_HWPROBE_EXT_ZACAS (1ULL << 34)
#define RISCV_HWPROBE_EXT_ZICOND (1ULL << 35)
+#define RISCV_HWPROBE_EXT_ZICFILP (1ULL << 36)
+#define RISCV_HWPROBE_EXT_ZICFISS (1ULL << 37)
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
@@ -9000,6 +9002,10 @@ static void risc_hwprobe_fill_pairs(CPURISCVState *env,
RISCV_HWPROBE_EXT_ZACAS : 0;
value |= cfg->ext_zicond ?
RISCV_HWPROBE_EXT_ZICOND : 0;
+ value |= cfg->ext_zicfilp ?
+ RISCV_HWPROBE_EXT_ZICFILP : 0;
+ value |= cfg->ext_zicfiss ?
+ RISCV_HWPROBE_EXT_ZICFISS : 0;
__put_user(value, &pair->value);
break;
case RISCV_HWPROBE_KEY_CPUPERF_0:
--
2.44.0
- [PATCH 13/24] target/riscv: implement zicfiss instructions, (continued)
- [PATCH 13/24] target/riscv: implement zicfiss instructions, Deepak Gupta, 2024/07/25
- [PATCH 16/24] target/riscv: shadow stack mmu index for shadow stack instructions, Deepak Gupta, 2024/07/25
- [PATCH 15/24] target/riscv: mmu changes for zicfiss shadow stack protection, Deepak Gupta, 2024/07/25
- [PATCH 17/24] linux-user/syscall: introduce prctl for shadow stack enable/disable, Deepak Gupta, 2024/07/25
- [PATCH 18/24] linux-user/riscv: setup/teardown zicfiss shadow stack for qemu-user, Deepak Gupta, 2024/07/25
- [PATCH 19/24] disas/riscv: enable disassembly for zicfiss instructions, Deepak Gupta, 2024/07/25
- [PATCH 20/24] disas/riscv: enable disassembly for compressed sspush/sspopchk, Deepak Gupta, 2024/07/25
- [PATCH 22/24] linux-user: permit RISC-V CFI dynamic entry in VDSO, Deepak Gupta, 2024/07/25
- [PATCH 21/24] target/riscv: add trace-hooks for each case of sw-check exception, Deepak Gupta, 2024/07/25
- [PATCH 23/24] linux-user: Add RISC-V zicfilp support in VDSO, Deepak Gupta, 2024/07/25
- [PATCH 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe syscall,
Deepak Gupta <=