- 
                Notifications
    You must be signed in to change notification settings 
- Fork 995
[vector-crypto] Fixing Zvkb/Zvbb distinction #1474
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
base: master
Are you sure you want to change the base?
[vector-crypto] Fixing Zvkb/Zvbb distinction #1474
Conversation
        
          
                disasm/disasm.cc
              
                Outdated
          
        
      | } | ||
|  | ||
| 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 <[email protected]>
Signed-off-by: Nicolas Brunie <[email protected]>
63bd01d    to
    6a31dc2      
    Compare
  
    
It looks like vector crypto support introduced in #1303 was made before the
Zvkbwas re-introduced as a subset ofZvbb.Working on fixing this here.