-
Notifications
You must be signed in to change notification settings - Fork 328
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: DMI logging improvements #1136
Conversation
Change-Id: Iade30374331e9bde31a411b82056d47207cc39a8 Signed-off-by: Evgeniy Naydanov <[email protected]>
9fcfe53
to
df5b531
Compare
Note to the reviewers -- this PR contains two commits.
|
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 this improvement! It looks very fine overall.
I have posted several smaller comments, if you can please take a look at them.
df5b531
to
dfd6e83
Compare
Fixes riscv-collab#1043 There were multiple issuese with DMI logging: 1. Address was assumed to be the same (riscv-collab#1043). 2. Reported IDLE count was not affected by a reset of the delays. 3. VLA were used. These issues are addressed in the commit. Change-Id: I82f45505e8a62dfdd7dcb418784975fe10180109 Signed-off-by: Evgeniy Naydanov <[email protected]>
dfd6e83
to
250aa20
Compare
if (debug_level < LOG_LVL_DEBUG) | ||
return; | ||
|
||
const unsigned int scan_bits = batch->fields->num_bits; |
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.
Pedantic detail:
You can use fields[0].num_bits
instead of fields->num_bits
to make it clearer that fields
is pointing to an array of items, not just a single item.
const unsigned int scan_bits = batch->fields->num_bits; | |
assert(batch->used_scans > 0); | |
const unsigned int scan_bits = batch->fields[0].num_bits; |
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, thank you!
Fixes #1043
There were multiple issuese with DMI logging:
riscv_decode_dmi_scan()
#1043).These issues are addressed in the commit.