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

remote_bitbang: make send_buf class member #1514

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

f0rget-the-sad
Copy link
Contributor

Currently send buffer is static variable in function, which makes it's impossible to have multiple concurrent instances of remote bitbang class, since all of them would share this static buffer. Thus, make send_buf a class member.

Currently send buffer is static variable in function, which makes it's
impossible to have multiple concurrent instances of remote bitbang
class, since all of them would share this static buffer.
Thus, make send_buf a class member.

Signed-off-by: Volodymyr Fialko <[email protected]>
Copy link
Collaborator

@timsifive timsifive left a comment

Choose a reason for hiding this comment

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

Looks reasonable. It seems likely there are other parts of the debug code that don't work right when you have multiple remote bitbang connections. At least, it's not a use case I ever considered when doing the spike implementation.

Copy link
Collaborator

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

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

Yeah, this is definitely an improvement.

@aswaterman aswaterman merged commit 3bc4f0f into riscv-software-src:master Nov 29, 2023
3 checks passed
@f0rget-the-sad f0rget-the-sad deleted the multi-rb branch November 29, 2023 10:47
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