Skip to content

Commit

Permalink
hashtest: better support for Sapphire and Granite Rapids
Browse files Browse the repository at this point in the history
These chips add the SGX_ENCLV extension, which presents challenges similar to the SGX extension.

The simplest solution is to filter the entire SGX category rather than just the extension.

PiperOrigin-RevId: 665540689
  • Loading branch information
ncbray authored and copybara-github committed Aug 20, 2024
1 parent 7d822e4 commit 850303e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzzer/hashtest/prefilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool PrefilterInstruction(const xed_inst_t* instruction) {

// SGX is unlikely to be enabled, and if it was we wouldn't want to deal with
// these instructions.
if (extension == XED_EXTENSION_SGX) {
if (category == XED_CATEGORY_SGX) {
return false;
}

Expand Down

0 comments on commit 850303e

Please sign in to comment.