-
Notifications
You must be signed in to change notification settings - Fork 337
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: merged read/write functions to one access function #1194
base: riscv
Are you sure you want to change the base?
Conversation
@JanMatCodasip, @MarekVCodasip could you please take a look? |
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.
LGTM (reviewed internally).
One minor note in regard to merge order.
src/target/riscv/riscv-013.c
Outdated
if (mstatus != mstatus_old && register_write_direct(target, | ||
GDB_REGNO_MSTATUS, mstatus_old) != ERROR_OK) | ||
return MEM_ACCESS_SKIPPED_REG_WRITE_FAILED; |
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.
02d8718
to
a1686db
Compare
a1686db
to
25e187e
Compare
Commit merges read/write functions to access function. It allows to decrease amount of code duplication. Signed-off-by: Farid Khaydari <[email protected]>
25e187e
to
fd6fd98
Compare
|
||
if (args.count == 0) | ||
return ERROR_OK; | ||
mem_access_result_t res = mem_should_skip_abstract(target, args); |
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.
mem_access_result_t res = mem_should_skip_abstract(target, args); | |
mem_access_result_t skip_reason = mem_should_skip_abstract(target, args); |
I would prefer if this kept it's old name.
Commit merges
read
/write
functions toaccess
function. It allows to decrease amount of code duplication