Searched refs:cpu_mfr_info (Results 1 – 1 of 1) sorted by relevance
32 static void riscv_fill_cpu_mfr_info(struct cpu_manufacturer_info_t *cpu_mfr_info) in riscv_fill_cpu_mfr_info() argument35 cpu_mfr_info->vendor_id = csr_read(CSR_MVENDORID); in riscv_fill_cpu_mfr_info()36 cpu_mfr_info->arch_id = csr_read(CSR_MARCHID); in riscv_fill_cpu_mfr_info()37 cpu_mfr_info->imp_id = csr_read(CSR_MIMPID); in riscv_fill_cpu_mfr_info()39 cpu_mfr_info->vendor_id = sbi_get_mvendorid(); in riscv_fill_cpu_mfr_info()40 cpu_mfr_info->arch_id = sbi_get_marchid(); in riscv_fill_cpu_mfr_info()41 cpu_mfr_info->imp_id = sbi_get_mimpid(); in riscv_fill_cpu_mfr_info()44 switch (cpu_mfr_info->vendor_id) { in riscv_fill_cpu_mfr_info()47 cpu_mfr_info->patch_func = andes_errata_patch_func; in riscv_fill_cpu_mfr_info()52 cpu_mfr_info->patch_func = sifive_errata_patch_func; in riscv_fill_cpu_mfr_info()[all …]