-
Notifications
You must be signed in to change notification settings - Fork 347
target/riscv: active dm before get nextdm #1252
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
base: riscv
Are you sure you want to change the base?
Conversation
959583d
to
8391810
Compare
Ubuntu 20.04 is no longer available. See actions/runner-images#11101 Checkpatch-ignore: BAD_SIGN_OFF Change-Id: I0ec3e3342f9212a2a79d8dca6274e7db62ecedab Signed-off-by: Evgeniy Naydanov <[email protected]>
8391810
to
508ac6f
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.
LGTM. Only minor suggestions
src/target/riscv/riscv-013.c
Outdated
break; | ||
|
||
const time_t start = time(NULL); | ||
LOG_TARGET_DEBUG(target, "Waiting for the DM to active."); |
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'm not sure this is grammatically correct. I'd suggest:
LOG_TARGET_DEBUG(target, "Waiting for the DM to active."); | |
LOG_TARGET_DEBUG(target, "Waiting for the DM to activate."); |
or
LOG_TARGET_DEBUG(target, "Waiting for the DM to active."); | |
LOG_TARGET_DEBUG(target, "Waiting for the DM to become active."); |
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.
Addressed
src/target/riscv/riscv-013.c
Outdated
|
||
|
||
} while (!get_field32(dmcontrol, DM_DMCONTROL_DMACTIVE)); | ||
LOG_TARGET_DEBUG(target, "DM successfully active."); |
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.
Same as above. I'd suggest a simpler
LOG_TARGET_DEBUG(target, "DM successfully active."); | |
LOG_TARGET_DEBUG(target, "DM is active."); |
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.
Addressed
when Debug Module is inactive, accesses to the nextdm may fail. Specifically, nextdm might not return correct data.
508ac6f
to
3f14acc
Compare
when Debug Module is inactive, accesses to the nextdm may fail. Specifically, nextdm might not return correct data.
When I want to debug a target form a specific DM, the config is as flows:
openocd can not get correct nextdm Due to DM with DMI base address = 0x0 is inactive.