Skip to content

Hardware Loops registers not saved/restored before being used in synchronous/asynchronous exception handler

When Hardware Loop feature is automatically generated and used in exception handlers, HWloop CSRs are not saved/restored. So when returning to main program from exception handler using HWloop, it is corrupted if exception happened during main program HWloop execution. This could happen with illegal exception, interrupt, debug code and maybe other situations.