-
Notifications
You must be signed in to change notification settings - Fork 857
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
[vector-crypto] Fixing Zvkb/Zvbb distinction #1474
base: master
Are you sure you want to change the base?
[vector-crypto] Fixing Zvkb/Zvbb distinction #1474
Conversation
disasm/disasm.cc
Outdated
@@ -2233,38 +2233,43 @@ void disassembler_t::add_instructions(const isa_parser_t* isa) | |||
DEFINE_R1TYPE(sm3p1); | |||
} | |||
|
|||
if (isa->extension_enabled(EXT_ZVBB)) { | |||
if (isa->extension_enabled(EXT_ZVKB) || isa->extension_enabled(EXT_ZVBB)) { |
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.
Not sure if this is the accepted way to condition instructions shared between two extensions.
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 only need to check for Zvkb because of this line, which guarantees that if Zvbb is present then Zvkb is also present.
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.
Makes sense, I should have read the code I changed ...
34bd6bd
to
8391771
Compare
@nibrunieAtSi5 , @nibrunie Hi, are you still going to finish this? This feature would be really nice to have, and I was going to implement it myself, but then I noticed your commit. |
Yes I need to revive this. I will try to get it up for review this week (July 8th 2024). |
8391771
to
63bd01d
Compare
Signed-off-by: Nicolas Brunie <82109999+nibrunieAtSi5@users.noreply.github.com>
Signed-off-by: Nicolas Brunie <82109999+nibrunieAtSi5@users.noreply.github.com>
63bd01d
to
6a31dc2
Compare
It looks like vector crypto support introduced in #1303 was made before the
Zvkb
was re-introduced as a subset ofZvbb
.Working on fixing this here.