-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
target/riscv: separate register cache stuff into files #1084
Conversation
2667029
to
84b1597
Compare
Please, disregard the failure of Checkpatch. It is due to missing or SPDX-License-Identifier tags. |
Can be fixed by #1085. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done a superficial review and am sending suggestions that I have so far.
I will have to return to this PR in the next week.
47ccad2
to
2d99024
Compare
This commit creates file structure for register cache related functions. Specifically: * `riscv_reg.h` -- general interface to registers. Safe to use after register cache initialization is successful. * `riscv_reg_impl.h` -- helper functions to use while implementing register cache initialization. * `riscv_reg.c` -- definitions of functions from `riscv_reg.h` and `riscv_reg_impl.h`. * `riscv-011_reg.h` -- register cache interface specific to 0.11 targets. * `riscv-013_reg.h` -- register cache interface specific to 0.13+ targets. * `riscv-011/0.13.h` -- version-specific methods used to access registers. Will be extended as needed once other functionality (not related to register access) is separated (e.g. DM/DTM specific stuff). Change-Id: I7918f78d0d79b97188c5703efd0296660e529f2a Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
2d99024
to
3883b03
Compare
This commit creates file structure for register cache related functions.
Specifically:
riscv_reg.h
-- general interface to registers. Safe to use after register cache initialization is successful.riscv_reg_impl.h
-- helper functions to use while implementing register cache initialization.riscv_reg.c
-- definitions of functions fromriscv_reg.h
andriscv_reg_impl.h
.riscv-011_reg.h
-- register cache interface specific to 0.11 targets.riscv-013_reg.h
-- register cache interface specific to 0.13+ targets.riscv-011/0.13.h
-- version-specific methods used to access registers. Will be extended as needed once other functionality (not related to register access) is separated (e.g. DM/DTM specific stuff).