Skip to content

target/riscv: Add support for external triggers #1243

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

Open
wants to merge 1 commit into
base: riscv
Choose a base branch
from

Conversation

lz-bro
Copy link
Contributor

@lz-bro lz-bro commented Mar 31, 2025

Add support for associating a halt/resume group with an external trigger via a newly exposed configuration option "riscv smp_add_ext_triggers".

Original merge request:
#1179

Original author: Rob Bradford
[email protected]
https://github.com/rbradford

@lz-bro lz-bro force-pushed the add-external-triggers branch 2 times, most recently from a066280 to 3f63412 Compare March 31, 2025 08:05
@lz-bro
Copy link
Contributor Author

lz-bro commented Mar 31, 2025

I want to continue the implementation of the external triggers for halt/resume groups base on @rbradford‘s work,But current implementation has not yet completed the resume group for external triggers。If I want to implement it, what do I need to pay attention to? What I can confirm now is that a diable haltgroup is required before the step, and the haltgroup will be restored after the step. @JanMatCodasip, @aap-sc could you please take a look and give some suggestions?

}
int value = atoi(CMD_ARGV[i + 1]);
if (value <= 0 || value > 16) {
LOG_ERROR("%s is not a valid integer argument for command.", CMD_ARGV[i + 1]);

Choose a reason for hiding this comment

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

This came up in the previous review - 0 is a valid external trigger. Also 16 is not a valid - so should this be (value < 0 || value >= 16)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@rbradford
Copy link

Thank you for restarting this work.

@lz-bro lz-bro force-pushed the add-external-triggers branch from 3f63412 to bf7c3ac Compare April 1, 2025 01:10
Add support for associating a halt/resume group with
an external trigger via a newly exposed configuration
option "riscv smp_add_ext_triggers".

Original merge request:
riscv-collab#1179

Original author: Rob Bradford
[email protected]
https://github.com/rbradford
@lz-bro lz-bro force-pushed the add-external-triggers branch from bf7c3ac to 8216d33 Compare April 3, 2025 03:43
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