mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-30 16:02:16 +01:00
Merge pull request #3265 from SparkiDev/cpuid_set
Allow the CPU Id flags to be programmatically set
This commit is contained in:
@@ -108,4 +108,19 @@
|
||||
cpuid_set_flags();
|
||||
return cpuid_flags;
|
||||
}
|
||||
|
||||
void cpuid_select_flags(word32 flags)
|
||||
{
|
||||
cpuid_flags = flags;
|
||||
}
|
||||
|
||||
void cpuid_set_flag(word32 flag)
|
||||
{
|
||||
cpuid_flags |= flag;
|
||||
}
|
||||
|
||||
void cpuid_clear_flag(word32 flag)
|
||||
{
|
||||
cpuid_flags &= ~flag;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user