|
@@ -153,6 +153,12 @@ int create_enclave(sgx_arch_secs_t * secs,
|
|
|
secs->miscselect = token->miscselect_mask;
|
|
|
memcpy(&secs->attributes, &token->attributes,
|
|
|
sizeof(sgx_arch_attributes_t));
|
|
|
+
|
|
|
+ // Enable AVX and AVX512
|
|
|
+ // [2019-09-18] TODO(dep): This alone is not enough to get the fully optional behavior we will want.
|
|
|
+ // Leave this here for future work in another PR
|
|
|
+ // secs->attributes.xfrm |= SGX_XFRM_AVX;
|
|
|
+
|
|
|
/* Do not initialize secs->mrsigner and secs->mrenclave here as they are
|
|
|
* not used by ECREATE to populate the internal SECS. SECS's mrenclave is
|
|
|
* computed dynamically and SECS's mrsigner is populated based on the
|