File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,26 @@ The following keys are defined:
211
211
supported as defined in the RISC-V ISA manual starting from commit
212
212
58220614a5f ("Zimop is ratified/1.0").
213
213
214
+ * :c:macro: `RISCV_HWPROBE_EXT_ZCA `: The Zca extension part of Zc* standard
215
+ extensions for code size reduction, as ratified in commit 8be3419c1c0
216
+ ("Zcf doesn't exist on RV64 as it contains no instructions") of
217
+ riscv-code-size-reduction.
218
+
219
+ * :c:macro: `RISCV_HWPROBE_EXT_ZCB `: The Zcb extension part of Zc* standard
220
+ extensions for code size reduction, as ratified in commit 8be3419c1c0
221
+ ("Zcf doesn't exist on RV64 as it contains no instructions") of
222
+ riscv-code-size-reduction.
223
+
224
+ * :c:macro: `RISCV_HWPROBE_EXT_ZCD `: The Zcd extension part of Zc* standard
225
+ extensions for code size reduction, as ratified in commit 8be3419c1c0
226
+ ("Zcf doesn't exist on RV64 as it contains no instructions") of
227
+ riscv-code-size-reduction.
228
+
229
+ * :c:macro: `RISCV_HWPROBE_EXT_ZCF `: The Zcf extension part of Zc* standard
230
+ extensions for code size reduction, as ratified in commit 8be3419c1c0
231
+ ("Zcf doesn't exist on RV64 as it contains no instructions") of
232
+ riscv-code-size-reduction.
233
+
214
234
* :c:macro: `RISCV_HWPROBE_KEY_CPUPERF_0 `: A bitmask that contains performance
215
235
information about the selected set of processors.
216
236
Original file line number Diff line number Diff line change @@ -66,6 +66,10 @@ struct riscv_hwprobe {
66
66
#define RISCV_HWPROBE_EXT_ZVE64F (1ULL << 40)
67
67
#define RISCV_HWPROBE_EXT_ZVE64D (1ULL << 41)
68
68
#define RISCV_HWPROBE_EXT_ZIMOP (1ULL << 42)
69
+ #define RISCV_HWPROBE_EXT_ZCA (1ULL << 43)
70
+ #define RISCV_HWPROBE_EXT_ZCB (1ULL << 44)
71
+ #define RISCV_HWPROBE_EXT_ZCD (1ULL << 45)
72
+ #define RISCV_HWPROBE_EXT_ZCF (1ULL << 46)
69
73
#define RISCV_HWPROBE_KEY_CPUPERF_0 5
70
74
#define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0)
71
75
#define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0)
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
113
113
EXT_KEY (ZICOND );
114
114
EXT_KEY (ZIHINTPAUSE );
115
115
EXT_KEY (ZIMOP );
116
+ EXT_KEY (ZCA );
117
+ EXT_KEY (ZCB );
116
118
117
119
/*
118
120
* All the following extensions must depend on the kernel
@@ -142,6 +144,8 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
142
144
EXT_KEY (ZFH );
143
145
EXT_KEY (ZFHMIN );
144
146
EXT_KEY (ZFA );
147
+ EXT_KEY (ZCD );
148
+ EXT_KEY (ZCF );
145
149
}
146
150
#undef EXT_KEY
147
151
}
You can’t perform that action at this time.
0 commit comments