-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add atomic add opcodes #695
Conversation
I put up the code here rather than as a diff for ease of use. |
src/dynarec/dynarec_arm_66f0.c
Outdated
STREXB(x3, x1, wback); | ||
CMPS_IMM8(x3, 0); | ||
B_MARK(cNE); | ||
STR_IMM9(x1, wback, 0); // put the whole value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2-bytes write with STRH_IMM8(x1, wback, 0);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Btw these kind of comments are easier to write and also apply if you use the +/- suggestion button above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to change all the access: there are 4-bytes ones, while it needs to be 2-bytes (so with H, like Half-word in ARM vocabulary)
#598 (comment)