From bdc3ee354621441c667bcf1f95db22053b0425d0 Mon Sep 17 00:00:00 2001 From: Nick O'Brien Date: Tue, 18 Aug 2020 16:51:04 +0000 Subject: [PATCH] riscv: Use global mimpid in identify_cpu() sbi_init() sets mimpid, we can use that value. Reviewed by: philip (mentor), kp (mentor) Approved by: philip (mentor), kp (mentor) Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D26092 --- sys/riscv/riscv/identcpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c index edd77d8a15b9..de4ca2a3869d 100644 --- a/sys/riscv/riscv/identcpu.c +++ b/sys/riscv/riscv/identcpu.c @@ -186,15 +186,13 @@ identify_cpu(void) const struct cpu_parts *cpu_partsp; uint32_t part_id; uint32_t impl_id; - uint64_t mimpid; uint64_t misa; u_int cpu; size_t i; cpu_partsp = NULL; - /* TODO: can we get mimpid and misa somewhere ? */ - mimpid = 0; + /* TODO: can we get misa somewhere ? */ misa = 0; cpu = PCPU_GET(cpuid);