Skip to content

Add support for number of contexts>2 #18

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

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

gamzeisl
Copy link
Contributor

@gamzeisl gamzeisl commented Dec 2, 2024

This PR introduces the constant REGFILE_N_MAX_CONTEXT and sets its value to 8. This change enables N_CONTEXT to be passed freely (up to 8) to hwpe_ctrl_regfile, which now defaults to N_CONTEXT=REGFILE_N_DEFAULT_CONTEXT.

Previously, the definition of flags_regfile_t in the package caused issues because the pointer_context and running_context fields were assigned bit widths of $clog2(REGFILE_N_CONTEXT=2).

@FrancescoConti FrancescoConti self-assigned this Dec 2, 2024
@FrancescoConti
Copy link
Member

LGTM! 👍

@FrancescoConti FrancescoConti merged commit 7ba707d into pulp-platform:master Dec 2, 2024
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