[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprob
From: |
Deepak Gupta |
Subject: |
[PATCH v2 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe syscall |
Date: |
Mon, 29 Jul 2024 10:53:26 -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 v2 15/24] target/riscv: mmu changes for zicfiss shadow stack protection, (continued)
- [PATCH v2 15/24] target/riscv: mmu changes for zicfiss shadow stack protection, Deepak Gupta, 2024/07/29
- [PATCH v2 13/24] target/riscv: implement zicfiss instructions, Deepak Gupta, 2024/07/29
- [PATCH v2 14/24] target/riscv: compressed encodings for sspush and sspopchk, Deepak Gupta, 2024/07/29
- [PATCH v2 17/24] linux-user/syscall: introduce prctl for shadow stack enable/disable, Deepak Gupta, 2024/07/29
- [PATCH v2 18/24] linux-user/riscv: setup/teardown zicfiss shadow stack for qemu-user, Deepak Gupta, 2024/07/29
- [PATCH v2 20/24] disas/riscv: enable disassembly for compressed sspush/sspopchk, Deepak Gupta, 2024/07/29
- [PATCH v2 21/24] target/riscv: add trace-hooks for each case of sw-check exception, Deepak Gupta, 2024/07/29
- [PATCH v2 19/24] disas/riscv: enable disassembly for zicfiss instructions, Deepak Gupta, 2024/07/29
- [PATCH v2 23/24] linux-user: Add RISC-V zicfilp support in VDSO, Deepak Gupta, 2024/07/29
- [PATCH v2 22/24] linux-user: permit RISC-V CFI dynamic entry in VDSO, Deepak Gupta, 2024/07/29
- [PATCH v2 24/24] linux-user/riscv: Adding zicfiss/lp extension in hwprobe syscall,
Deepak Gupta <=