Debian Codegraph @

cpu/cpudb/intel/p4_prescott_celeron_336.h

raw symbols SCIP
1 /////////////////////////////////////////////////////////////////////////
2 // $Id$
3 /////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2011-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_P4_PSC_CELERON_336_CPUID_DEFINITIONS_H
25 #define BX_P4_PSC_CELERON_336_CPUID_DEFINITIONS_H
26
27 #if BX_SUPPORT_X86_64
28
29 #include "cpu/cpuid.h"
30
31 class p4_prescott_celeron_336_t : public bx_cpuid_t {
32 public:
33 p4_prescott_celeron_336_t(BX_CPU_C *cpu);
34 virtual ~p4_prescott_celeron_336_t() {}
35
36 // return CPU name
37 virtual const char *get_name(void) const { return "p4_prescott_celeron_336"; }
38
39 virtual void get_cpuid_leaf(Bit32u function, Bit32u subfunction, cpuid_function_t *leaf) const;
40
41 virtual void dump_cpuid(void) const;
42
43 private:
44 Bit32u max_std_leaf;
45 Bit32u max_ext_leaf;
46
47 void get_std_cpuid_leaf_1(cpuid_function_t *leaf) const;
48 void get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const;
49 };
50
51 extern bx_cpuid_t *create_p4_prescott_celeron_336_cpuid(BX_CPU_C *cpu);
52
53 #endif // BX_SUPPORT_X86_64
54
55 #endif
56