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

hwcap on aarch64 linux is 64bit #192

Open
nsz-arm opened this issue Sep 5, 2023 · 0 comments
Open

hwcap on aarch64 linux is 64bit #192

nsz-arm opened this issue Sep 5, 2023 · 0 comments
Labels

Comments

@nsz-arm
Copy link

nsz-arm commented Sep 5, 2023

hwcap and hwcap2 are 64bit values on arm64 linux so consistently using uint32_t for it is wrong.

(top 32bit of hwcap is reserved for libc use so may not be relevant for cpuinfo, but hwcap2 is 64bit and top bits are already in use.)

https://elixir.bootlin.com/linux/latest/source/arch/arm64/include/uapi/asm/hwcap.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants