diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-09 16:53:22 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-18 16:29:17 -0400 |
| commit | 234b5ff6a999d7d69cdcdf214e0c3984cdab11cf (patch) | |
| tree | 4f0ef41d7738b53d1b81ac2f7072bec1ba5fe8f1 /src/common/x64/cpu_detect.h | |
| parent | 0f8e5a146563d1f245f8f62cb931dc1e0b55de2f (diff) | |
Common: Implement WallClock Interface and implement a native clock for x64
Diffstat (limited to 'src/common/x64/cpu_detect.h')
| -rw-r--r-- | src/common/x64/cpu_detect.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h index 20f2ba234..f0676fa5e 100644 --- a/src/common/x64/cpu_detect.h +++ b/src/common/x64/cpu_detect.h @@ -6,8 +6,16 @@ namespace Common { +enum class Manufacturer : u32 { + Intel = 0, + AMD = 1, + Hygon = 2, + Unknown = 3, +}; + /// x86/x64 CPU capabilities that may be detected by this module struct CPUCaps { + Manufacturer manufacturer; char cpu_string[0x21]; char brand_string[0x41]; bool sse; @@ -24,6 +32,10 @@ struct CPUCaps { bool fma; bool fma4; bool aes; + bool invariant_tsc; + u32 base_frequency; + u32 max_frequency; + u32 bus_frequency; }; /** |
