minor edits

This commit is contained in:
stnolting 2020-07-01 21:44:51 +02:00
parent f69ec5db3c
commit a220448f82
2 changed files with 4 additions and 7 deletions

View file

@ -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)
};

View file

@ -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));