mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 22:27:21 -04:00
minor edits
This commit is contained in:
parent
f69ec5db3c
commit
a220448f82
2 changed files with 4 additions and 7 deletions
|
@ -242,9 +242,9 @@ int main() {
|
|||
neorv32_uart_printf("EXC I_ILLEG: ");
|
||||
cnt_test++;
|
||||
|
||||
// create mini program in RAM
|
||||
// create test program in RAM
|
||||
static const uint32_t dummy_sub_program[2] = {
|
||||
0x0000007F, // undefined 32-bit opcode -> illegal instruction exception
|
||||
0xDEAD007F, // undefined 32-bit opcode -> illegal instruction exception
|
||||
0x00008067 // ret (32-bit)
|
||||
};
|
||||
|
||||
|
|
|
@ -193,11 +193,8 @@ static void __neorv32_rte_debug_exc_handler(void) {
|
|||
uint32_t trans_cmd = neorv32_cpu_csr_read(CSR_MTINST);
|
||||
neorv32_uart_printf("Transf. instruction: 0x%x ", trans_cmd);
|
||||
|
||||
if (trans_cmd & (1 << 1)) {
|
||||
neorv32_uart_printf("(uncompr.)\n");
|
||||
}
|
||||
else {
|
||||
neorv32_uart_printf("(compr.)\n");
|
||||
if ((trans_cmd & (1 << 1)) == 0) {
|
||||
neorv32_uart_printf("(decompressed)\n");
|
||||
}
|
||||
|
||||
neorv32_uart_printf("Trying to resume application @ 0x%x...", neorv32_cpu_csr_read(CSR_MSCRATCH));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue