Some small improvements:
- Use RISC-V names for exception codes (disARM them)
- Remove undefined S-mode exception codes (machine and hypervisor ecall)
- Apply style(9) to some condition checks
Differential D26918
riscv: improve exception code names mhorne on Oct 23 2020, 3:43 PM. Authored by Tags None Referenced Files
Subscribers
Details
Some small improvements:
Diff Detail
Event TimelineComment Actions I'm also considering moving the SCAUSE* definitions to machine/trap.h which is an empty header on riscv. I think that riscvreg.h is a sensible place for them, but I find myself searching trap.h first whenever I need to look up an exception code by number. Thoughts?
|