fix compilation errors
This commit is contained in:
parent
2ee0029749
commit
20becdfbe7
@ -666,6 +666,10 @@ typedef
|
||||
#error "VMXx2 require x86-64 support"
|
||||
#endif
|
||||
|
||||
#if BX_SUPPORT_AVX && BX_SUPPORT_X86_64 == 0
|
||||
#error "AVX require x86-64 support"
|
||||
#endif
|
||||
|
||||
#define BX_SupportRepeatSpeedups 0
|
||||
|
||||
#if BX_SUPPORT_3DNOW
|
||||
|
@ -124,7 +124,7 @@ Bit32u atom_n270_t::get_isa_extensions_bitmask(void) const
|
||||
#if BX_SUPPORT_MONITOR_MWAIT
|
||||
BX_CPU_MONITOR_MWAIT |
|
||||
#endif
|
||||
BX_CPU_MOVBE |
|
||||
BX_CPU_MOVBE;
|
||||
}
|
||||
|
||||
Bit32u atom_n270_t::get_cpu_extensions_bitmask(void) const
|
||||
@ -319,7 +319,7 @@ void atom_n270_t::get_std_cpuid_leaf_2(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x00000003 //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_3(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_3(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x00000003 - Processor Serial Number
|
||||
leaf->eax = 0;
|
||||
@ -329,7 +329,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_3(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x00000004 //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_4(Bit32u subfunction, cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_4(Bit32u subfunction, cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x00000004 - Deterministic Cache Parameters
|
||||
|
||||
@ -385,7 +385,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_4(Bit32u subfunction, cpuid_funct
|
||||
}
|
||||
|
||||
// leaf 0x00000005 //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x00000005 - MONITOR/MWAIT Leaf
|
||||
|
||||
@ -416,7 +416,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x00000006 //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x00000006 - Thermal and Power Management Leaf
|
||||
leaf->eax = 0x00000001;
|
||||
@ -429,7 +429,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
// leaf 0x00000008 reserved //
|
||||
|
||||
// leaf 0x00000009 //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_9(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_9(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x00000009 - Direct Cache Access Information
|
||||
leaf->eax = 0;
|
||||
@ -439,7 +439,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_9(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x0000000A //
|
||||
void core2_extreme_x9770_t::get_std_cpuid_leaf_A(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_std_cpuid_leaf_A(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x0000000A - Architectural Performance Monitoring Leaf
|
||||
leaf->eax = 0x07280203;
|
||||
@ -451,7 +451,7 @@ void core2_extreme_x9770_t::get_std_cpuid_leaf_A(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x80000000 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_0(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_0(cpuid_function_t *leaf) const
|
||||
{
|
||||
// EAX: highest extended function understood by CPUID
|
||||
// EBX: reserved
|
||||
@ -464,7 +464,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_leaf_0(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x80000001 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const
|
||||
{
|
||||
// EAX: CPU Version Information (reserved for Intel)
|
||||
leaf->eax = 0;
|
||||
@ -510,7 +510,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_leaf_1(cpuid_function_t *leaf) const
|
||||
// leaf 0x80000002 //
|
||||
// leaf 0x80000003 //
|
||||
// leaf 0x80000004 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_brand_string_leaf(Bit32u function, cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_brand_string_leaf(Bit32u function, cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x80000002-0x80000004 - Processor Name String Identifier
|
||||
static const char* brand_string = " Intel(R) Atom(TM) CPU N270 @ 1.60GHz";
|
||||
@ -547,7 +547,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_brand_string_leaf(Bit32u function, cpu
|
||||
}
|
||||
|
||||
// leaf 0x80000005 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x800000005 - L1 Cache and TLB Identifiers
|
||||
leaf->eax = 0;
|
||||
@ -557,7 +557,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_leaf_5(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x80000006 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x800000006 - L2 Cache and TLB Identifiers
|
||||
leaf->eax = 0x00000000;
|
||||
@ -567,7 +567,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_leaf_6(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x80000007 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_7(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_7(cpuid_function_t *leaf) const
|
||||
{
|
||||
// CPUID function 0x800000007 - Advanced Power Management
|
||||
leaf->eax = 0;
|
||||
@ -577,7 +577,7 @@ void core2_extreme_x9770_t::get_ext_cpuid_leaf_7(cpuid_function_t *leaf) const
|
||||
}
|
||||
|
||||
// leaf 0x80000008 //
|
||||
void core2_extreme_x9770_t::get_ext_cpuid_leaf_8(cpuid_function_t *leaf) const
|
||||
void atom_n270_t::get_ext_cpuid_leaf_8(cpuid_function_t *leaf) const
|
||||
{
|
||||
// virtual & phys address size in low 2 bytes.
|
||||
leaf->eax = BX_PHY_ADDRESS_WIDTH | (BX_LIN_ADDRESS_WIDTH << 8); // physical address should be 32-bit, no PSE-36
|
||||
|
Loading…
Reference in New Issue
Block a user