The branch stable/13 has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=db5bd5ba6bfbd3de408efc0daee0d8ed06e84004

commit db5bd5ba6bfbd3de408efc0daee0d8ed06e84004
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2023-05-22 23:52:28 +0000
Commit:     Mitchell Horne <[email protected]>
CommitDate: 2023-06-12 13:49:54 +0000

    riscv: Print ISA extensions
    
    Report the CPU's single-letter ISA extensions in printcpuinfo().
    
    Reviewed by:    markj
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D39813
    
    (cherry picked from commit 78a3420c20e075ca8c44a4670ab5ca5afe6bbdf5)
---
 sys/riscv/riscv/identcpu.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c
index 8ae3ab8478f3..36f7e4a4940a 100644
--- a/sys/riscv/riscv/identcpu.c
+++ b/sys/riscv/riscv/identcpu.c
@@ -431,5 +431,12 @@ printcpuinfo(u_int cpu)
                    desc->cpu_mvendor_name, desc->cpu_march_name, hart);
 
                printf("  marchid=%#lx, mimpid=%#lx\n", marchid, mimpid);
+               printf("  ISA: %#b\n", desc->isa_extensions,
+                   "\020"
+                   "\01Atomic"
+                   "\03Compressed"
+                   "\04Double"
+                   "\06Float"
+                   "\15Mult/Div");
        }
 }

Reply via email to