Skip to content
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: fix addressing in dm_read/dm_write #991

Merged

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Jan 10, 2024

There was an error in dm_read/dm_write: DMI address was checked against DM registers disregarding DM base address.

To solve the issue dmi_address() function was introduced.

Change-Id: Ia3be619417b5f5b53db5dfe302db05170d6787c9

@en-sc en-sc self-assigned this Jan 10, 2024
@en-sc en-sc force-pushed the en-sc/dm-dmi-address-conversion branch 2 times, most recently from f43fd8d to 96d569d Compare January 10, 2024 17:03
@JanMatCodasip JanMatCodasip changed the title target/riscv: fix addressing in dm_read/dm_wirte target/riscv: fix addressing in dm_read/dm_write Jan 16, 2024
JanMatCodasip
JanMatCodasip previously approved these changes Jan 16, 2024
Copy link
Collaborator

@JanMatCodasip JanMatCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the fix.

I only have few comments related to details.

src/target/riscv/riscv.h Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.c Outdated Show resolved Hide resolved
src/target/riscv/riscv.h Show resolved Hide resolved
There was an error in `dm_read`/`dm_write`: DMI address was checked
against DM registers disregarding DM base address.

To solve the issue `dmi_address()` function was introduced.

Change-Id: Ia3be619417b5f5b53db5dfe302db05170d6787c9
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
@JanMatCodasip JanMatCodasip merged commit e6e9fbe into riscv-collab:riscv Jan 18, 2024
4 checks passed
@en-sc en-sc deleted the en-sc/dm-dmi-address-conversion branch August 14, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants