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

loongarch: add memory fence & support tmp register for atomic #263

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

lrzlin
Copy link
Contributor

@lrzlin lrzlin commented Aug 12, 2024

Implement LoongArch dbar 0 memory fence, which is a full memory barrier just like fence iorw, iorw on RISC-V.

Also support tmp register for atomic, it worth noticing that TMP_REG2 seems to have collision issues, so I use TMP_REG3 instead.

Done: #262

Copy link
Owner

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@zherczeg zherczeg merged commit 4dd388a into zherczeg:master Aug 12, 2024
9 of 11 checks passed
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