mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
RTE hardware info now also shows Z* extensions
This commit is contained in:
parent
66c9fe3d8d
commit
d42b83b294
1 changed files with 14 additions and 1 deletions
|
@ -288,10 +288,23 @@ void neorv32_rte_print_hw_config(void) {
|
|||
}
|
||||
}
|
||||
neorv32_uart_printf("(0x%x)\n", tmp);
|
||||
|
||||
// Z* CPU extensions (from custom CSR)
|
||||
neorv32_uart_printf("Z* extensions: ");
|
||||
tmp = neorv32_cpu_csr_read(CSR_MZEXT);
|
||||
if (tmp & (1<<0)) {
|
||||
neorv32_uart_printf("Zicsr ");
|
||||
}
|
||||
if (tmp & (1<<1)) {
|
||||
neorv32_uart_printf("Zifencei ");
|
||||
}
|
||||
if (tmp & (1<<2)) {
|
||||
neorv32_uart_printf("cpu_counters ");
|
||||
}
|
||||
|
||||
|
||||
// Misc
|
||||
neorv32_uart_printf("\n-- System --\n");
|
||||
neorv32_uart_printf("\n\n-- System --\n");
|
||||
neorv32_uart_printf("Clock: %u Hz\n", SYSINFO_CLK);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue