Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC] target/riscv: refactor
init_registers()
The logic in `init_registers()` was quite convoluted. Initialization of each `struct reg` field is separated into function `gdb_regno_<field_name>()`. IMHO, this makes it much easier to reason about the code. Change-Id: Id7faa1464ce026cc5025585d0a6a95a01fb39cee Signed-off-by: Evgeniy Naydanov <[email protected]>
- Loading branch information