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

CachePadded: Use 32-byte alignment on riscv32/sparc/hexagon, 16-byte alignment on m68k #967

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Mar 4, 2023

@taiki-e taiki-e changed the title CachePadded: Use 32-byte alignment on riscv32, sparc, and hexagon CachePadded: Use 32-byte alignment on riscv32/sparc/hexagon, 16-byte alignment on m68k Mar 4, 2023
@taiki-e
Copy link
Member Author

taiki-e commented Mar 4, 2023

Linux kernel's __cacheline_aligned (SMP_CACHE_BYTES, or L1_CACHE_BYTES if SMP_CACHE_BYTES is not set)

I'm aware of the values defined by the Linux kernel and those defined by us are different for some architectures (e.g., aarch64, riscv 1), but for now, I have preferred the source we are currently referring to.

Footnotes

  1. As far as I know, the actual cache line size for both aarch64 and riscv is implementation dependent (like other architectures such as x86, arm, powerpc, mips, xtensa, loongarch)

@taiki-e
Copy link
Member Author

taiki-e commented Mar 4, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 4, 2023

@bors bors bot merged commit e094a1a into master Mar 4, 2023
@bors bors bot deleted the cache-padded branch March 4, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant