2011-07-30 18:30:35 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
// $Id$
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-08-31 22:39:18 +04:00
|
|
|
// Copyright (c) 2011-2014 Stanislav Shwartsman
|
2011-07-30 18:30:35 +04:00
|
|
|
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
|
|
|
|
//
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2011-07-31 01:28:16 +04:00
|
|
|
#ifndef BX_P3_KATMAI_CPUID_DEFINITIONS_H
|
|
|
|
#define BX_P3_KATMAI_CPUID_DEFINITIONS_H
|
2011-07-30 18:30:35 +04:00
|
|
|
|
2011-09-25 21:36:20 +04:00
|
|
|
#if BX_CPU_LEVEL >= 6
|
2011-07-31 18:56:45 +04:00
|
|
|
|
2011-07-30 18:30:35 +04:00
|
|
|
#include "cpu/cpuid.h"
|
|
|
|
|
|
|
|
class p3_katmai_t : public bx_cpuid_t {
|
|
|
|
public:
|
2014-08-31 22:39:18 +04:00
|
|
|
p3_katmai_t(BX_CPU_C *cpu);
|
2011-07-30 18:30:35 +04:00
|
|
|
virtual ~p3_katmai_t() {}
|
|
|
|
|
|
|
|
// return CPU name
|
|
|
|
virtual const char *get_name(void) const { return "p3_katmai"; }
|
|
|
|
|
2011-08-01 22:10:48 +04:00
|
|
|
virtual void get_cpuid_leaf(Bit32u function, Bit32u subfunction, cpuid_function_t *leaf) const;
|
2011-07-30 18:30:35 +04:00
|
|
|
|
2011-08-01 22:10:48 +04:00
|
|
|
virtual void dump_cpuid(void) const;
|
2011-07-30 18:30:35 +04:00
|
|
|
|
|
|
|
private:
|
2011-08-01 22:10:48 +04:00
|
|
|
void get_std_cpuid_leaf_0(cpuid_function_t *leaf) const;
|
|
|
|
void get_std_cpuid_leaf_1(cpuid_function_t *leaf) const;
|
|
|
|
void get_std_cpuid_leaf_2(cpuid_function_t *leaf) const;
|
|
|
|
void get_std_cpuid_leaf_3(cpuid_function_t *leaf) const;
|
2011-07-30 18:30:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern bx_cpuid_t *create_p3_katmai_cpuid(BX_CPU_C *cpu);
|
|
|
|
|
2011-09-25 21:36:20 +04:00
|
|
|
#endif // BX_CPU_LEVEL >= 6
|
2011-07-31 18:56:45 +04:00
|
|
|
|
2011-07-30 18:30:35 +04:00
|
|
|
#endif
|