unsigned long long features[RISCV_FEATURE_BITS_LENGTH];
};
-#define RISCV_VENDOR_FEATURE_BITS_LENGTH 1
-
-struct riscv_vendor_feature_bits {
- unsigned length;
- unsigned long long features[RISCV_VENDOR_FEATURE_BITS_LENGTH];
-};
-
struct riscv_cpu_model {
unsigned mvendorid;
unsigned long long marchid;
unsigned long long features[RISCV_FEATURE_BITS_LENGTH];
} __riscv_feature_bits __attribute__ ((visibility ("hidden"), nocommon));
-#define RISCV_VENDOR_FEATURE_BITS_LENGTH 1
-
-struct {
- unsigned length;
- unsigned long long features[RISCV_VENDOR_FEATURE_BITS_LENGTH];
-} __riscv_vendor_feature_bits __attribute__ ((visibility ("hidden"), nocommon));
-
struct {
unsigned mvendorid;
unsigned long long marchid;
__riscv_feature_bits.features[i] = features[i];
__riscv_feature_bits.length = RISCV_FEATURE_BITS_LENGTH;
-
- __riscv_vendor_feature_bits.length = 0;
}
#endif
#else
/* Unsupported, just initialize that into all zeros. */
__riscv_feature_bits.length = 0;
- __riscv_vendor_feature_bits.length = 0;
__riscv_cpu_model.mvendorid = 0;
__riscv_cpu_model.marchid = 0;
__riscv_cpu_model.mimpid = 0;