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: single DMI accesses via batch #1100

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Jul 3, 2024

  • Eliminates the use of VLA, which is prohibited by doc/manual/style.txt:
    Link:

    - use malloc() to create dynamic arrays. Do @b not use @c alloca
    or variable length arrays on the stack. non-MMU hosts(uClinux) and
    pthreads require modest and predictable stack usage.

  • Unifies DMI access interface.

  • Reduces code duplication.

Requires: #1099, #1083

Copy link
Collaborator

@MarekVCodasip MarekVCodasip left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. This is a big improvement.

I have a suggestion for you to consider, please take a look.

src/target/riscv/riscv-013.c Show resolved Hide resolved
JanMatCodasip
JanMatCodasip previously approved these changes Jul 10, 2024
JanMatCodasip
JanMatCodasip previously approved these changes Jul 10, 2024
MarekVCodasip
MarekVCodasip previously approved these changes Jul 11, 2024
@en-sc en-sc dismissed stale reviews from MarekVCodasip and JanMatCodasip July 12, 2024 11:18

The merge-base changed after approval.

* Eliminates the use of VLA, which is prohibited by `doc/manual
/style.txt`:
Link: https://github.com/riscv-collab/riscv-openocd/blob/c6bb902629924eb66aae2a08c0ab8654261c9d71/doc/manual/style.txt#L164-L166

* Unifies DMI access interface.

* Reduces code duplication.

Change-Id: I2d7b0595f171e21062049ff61f76fb5a3c992d11
Signed-off-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com>
@en-sc en-sc merged commit 5afed58 into riscv-collab:riscv Jul 18, 2024
4 checks passed
@en-sc en-sc deleted the en-sc/single-as-batch branch July 18, 2024 12:49
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.

3 participants