-
Notifications
You must be signed in to change notification settings - Fork 327
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: cleanup trigger setup #878
Conversation
edb361f
to
5b30a47
Compare
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.
Looks like you removed matching on 8-bit accesses for 8-bit triggers. Can you share the reasoning behind that? (It makes sense to me, because neither OpenOCD nor gdb support specifying access size on a watchpoint.)
5b30a47
to
c2a52f3
Compare
The reasoning for matching accesses with any size for 8-bit equality ( In other triggers ( If |
c2a52f3
to
6582b47
Compare
Please, disregard the mention in |
6582b47
to
b1fdc44
Compare
b1fdc44
to
739fca1
Compare
b5730cc
to
5ec632e
Compare
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.
Thank you for the changes so far. I have one very last set of comments, otherwise this looks fine.
* Add a warning when eq trigger is setup and it's behavior is different from other triggers. * Make eq trigger's behavior consistent with other triggers in case of length == 1. * Fix a bug in setting chained triggers (LT, GT case). * Improve logging. Change-Id: Id1ed0d11971b8ed875afbb979e6c8a8b51dd3818 Signed-off-by: Evgeniy Naydanov <[email protected]>
5ec632e
to
a8f28fd
Compare
.tdata2 = trigger->address, | ||
.tdata1_ignore_mask = fields.tdata1_ignore_mask | ||
}; | ||
return try_setup_single_match_trigger(target, trigger, eq); | ||
ret = try_setup_single_match_trigger(target, trigger, eq); | ||
if (ret != ERROR_OK) |
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.
@en-sc don't we need to handle ERROR_TARGET_RESOURCE_NOT_AVAILABLE return code here?
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.
Thanks for the catch! Addressed in #899
Add a warning when eq trigger is setup and it's behavior is different from other triggers.
Make eq trigger's behavior consistent with other triggers in case of length == 1.
Fix a bug in setting chained triggers (LT, GT case).
Improve logging.
Change-Id: Id1ed0d11971b8ed875afbb979e6c8a8b51dd3818