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

Question about zvknha and zvknhb extension. #364

Closed
JerryShih opened this issue Sep 20, 2023 · 3 comments
Closed

Question about zvknha and zvknhb extension. #364

JerryShih opened this issue Sep 20, 2023 · 3 comments

Comments

@JerryShih
Copy link

If one platform support SHA-512(zvknhb), will it also imply having zvknha?
The zvknhb could support both SHA-512 and SHA-256. Will the qemu or linux kernel need to enable SHA256 with zvknha extension or just use single zvknhb extension setting?

e.g.

# Will the following command have sha256?
qemu-riscv64 -cpu rv64,g=true,f=true,d=true,v=true,vlen=128,elen=64,vext_spec=v1.0,x-zvknhb=true
# Should we have the explicit sha256 setting?
qemu-riscv64 -cpu rv64,g=true,f=true,d=true,v=true,vlen=128,elen=64,vext_spec=v1.0,x-zvknha=true,x-zvknhb=true
@nibrunieAtSi5
Copy link
Contributor

nibrunieAtSi5 commented Sep 20, 2023

Do we have sha256 with single "ZVKNHB" extension?

Yes

Should we have both "ZVKNHA" and "ZVKNHB" cpu setting in qemu if we try to have both sha256 and sha512?

No, those extensions are exclusive and cannot be enabled at the same time

@nibrunieAtSi5
Copy link
Contributor

@JerryShih
Copy link
Author

Got it, thanks.

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

No branches or pull requests

2 participants