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

Use single LR/SC flag per tile. #53

Open
wants to merge 1 commit into
base: openpiton-dev
Choose a base branch
from

Conversation

fei-g
Copy link
Contributor

@fei-g fei-g commented Dec 22, 2019

Instead of having a flag per cacheline, change to use a single lrsc flag per tile in L1.5. Passed the lrsc_test.c.

In this case, we only support one outstanding LR/SC transaction per tile.
Example:
LR addr1;
LR addr2; // overwrite the state of the first LR
SC addr2; // succeed
SC addr1; // fail
We also need to make sure that different threads in one tile will not LR/SC at the same address at the same time.

…a flag per cacheline. Passed the lrsc_test.c
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.

None yet

1 participant