You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In pull-request #2280, the corev-dv function cv32e40p_asm_program_gen::gen_illegal_instr_handler(int hart) was substantially updated to add illegal handler code for HWLOOPs:
If the illegal exception happened within a hwloop.
If yes , check if the illegal was the last instruction of an hwloop with at least 1 more iteration left.
If yes, then set MEPC to first instruction of hwloop instead of just incrementing by 4.
Else MEPC is just incremented by 4.
The code is fine, but difficult for a human to follow (because it is SystemVerilog code that emits RISC-V assembler) so it would be good to add a comment header to the function to include the above information.
The text was updated successfully, but these errors were encountered:
In pull-request #2280, the corev-dv function
cv32e40p_asm_program_gen::gen_illegal_instr_handler(int hart)
was substantially updated to add illegal handler code for HWLOOPs:Else MEPC is just incremented by 4.
The code is fine, but difficult for a human to follow (because it is SystemVerilog code that emits RISC-V assembler) so it would be good to add a comment header to the function to include the above information.
The text was updated successfully, but these errors were encountered: