URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_rte.c] - Diff between revs 42 and 43
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 42 |
Rev 43 |
Line 317... |
Line 317... |
|
|
// check physical memory protection
|
// check physical memory protection
|
neorv32_uart_printf("\nPMP: ");
|
neorv32_uart_printf("\nPMP: ");
|
uint32_t pmp_num_regions = neorv32_cpu_pmp_get_num_regions();
|
uint32_t pmp_num_regions = neorv32_cpu_pmp_get_num_regions();
|
if (pmp_num_regions != 0) {
|
if (pmp_num_regions != 0) {
|
// get number of available regions
|
neorv32_uart_printf("%u regions, %u bytes minimal granularity\n", pmp_num_regions, neorv32_cpu_pmp_get_granularity());
|
neorv32_uart_printf("\n- Available regions: %u\n", pmp_num_regions);
|
|
|
|
// get minimal region size (granulartiy)
|
|
neorv32_uart_printf("- Minimal granularity: %u bytes per region\n", neorv32_cpu_pmp_get_granularity());
|
|
}
|
}
|
else {
|
else {
|
neorv32_uart_printf("not implemented\n");
|
neorv32_uart_printf("not implemented\n");
|
}
|
}
|
|
|
// check physical memory protection
|
// check hardware performance monitors
|
neorv32_uart_printf("HPM Counters: %u\n", neorv32_cpu_hpm_get_counters());
|
neorv32_uart_printf("HPM Counters: %u\n", neorv32_cpu_hpm_get_counters());
|
|
|
|
|
// Misc - system
|
// Misc - system
|
neorv32_uart_printf("\n\n---- Processor - General ----\n");
|
neorv32_uart_printf("\n\n---- Processor - General ----\n");
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.