Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
registers.py: Fix subtractions in generated C code
The registers.py generator outputs expressions with subtractions into the C code of debug_defines.{h,c} in this form: ``` ((XLEN) + -6ULL) ``` Such code may look awkward to code readers and also triggers GCC's -Wconversion warnings (when enabled). Fix the generator to produce the expressions with subtraction in a natural form: ``` ((XLEN) - 6ULL) ```
- Loading branch information