Debian Codegraph @

cpu/cpudb/intel/corei7_skylake-x.h

raw symbols SCIP
1 /////////////////////////////////////////////////////////////////////////
2 // $Id$
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2017 Stanislav Shwartsman
6 // Written by Stanislav Shwartsman [sshwarts at sourceforge net]
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
21 //
22 /////////////////////////////////////////////////////////////////////////
23
24 #ifndef BX_SKYLAKE_X_CPUID_DEFINITIONS_H
25 #define BX_SKYLAKE_X_CPUID_DEFINITIONS_H
26
27 #if BX_SUPPORT_X86_64 && BX_SUPPORT_AVX
28
29 #include "cpu/cpuid.h"
30
31 class corei7_skylake_x_t : public bx_cpuid_t {
32 public:
33 corei7_skylake_x_t(BX_CPU_C *cpu);
34 virtual ~corei7_skylake_x_t() {}
35
36 // return CPU name
37 virtual const char *get_name(void) const { return "corei7_skylake_x"; }
38
39 #if BX_SUPPORT_VMX >= 2
40 virtual Bit32u get_vmx_extensions_bitmask(void) const;
41 #endif
42
43 virtual void get_cpuid_leaf(Bit32u function, Bit32u subfunction, cpuid_function_t *leaf) const;
44
45 virtual void dump_cpuid(void) const;
46
47 private:
48 Bit32u max_std_leaf;
49 Bit32u max_ext_leaf;
50
51 void get_std_cpuid_leaf_1(cpuid_function_t *leaf) const;
52 void get_std_cpuid_leaf_2(cpuid_function_t *leaf) const;
53 void get_std_cpuid_leaf_4(Bit32u subfunction, cpuid_function_t *leaf) const;
54 void get_std_cpuid_leaf_7(Bit32u subfunction, cpuid_function_t *leaf) const;
55 void get_std_cpuid_leaf_A(cpuid_function_t *leaf) const;
56
57 void get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const;
58 };
59
60 extern bx_cpuid_t *create_corei7_skylake_x_cpuid(BX_CPU_C *cpu);
61
62 #endif // BX_SUPPORT_X86_64 && BX_SUPPORT_AVX
63
64 #endif