cpuid.cc (11793:ef606668d247) | cpuid.cc (12463:84f365522633) |
---|---|
1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 23 unchanged lines hidden (view full) --- 32 33#include "base/bitfield.hh" 34#include "cpu/thread_context.hh" 35 36namespace X86ISA { 37 enum StandardCpuidFunction { 38 VendorAndLargestStdFunc, 39 FamilyModelStepping, | 1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 23 unchanged lines hidden (view full) --- 32 33#include "base/bitfield.hh" 34#include "cpu/thread_context.hh" 35 36namespace X86ISA { 37 enum StandardCpuidFunction { 38 VendorAndLargestStdFunc, 39 FamilyModelStepping, |
40 CacheAndTLB, 41 SerialNumber, 42 CacheParams, 43 MonitorMwait, 44 ThermalPowerMgmt, 45 ExtendedFeatures, |
|
40 NumStandardCpuidFuncs 41 }; 42 43 enum ExtendedCpuidFunctions { 44 VendorAndLargestExtFunc, 45 FamilyModelSteppingBrandFeatures, 46 NameString1, 47 NameString2, --- 105 unchanged lines hidden (view full) --- 153 stringToRegister(vendorString), 154 stringToRegister(vendorString + 4), 155 stringToRegister(vendorString + 8)); 156 break; 157 case FamilyModelStepping: 158 result = CpuidResult(0x00020f51, 0x00000805, 159 0xe7dbfbff, 0x04000209); 160 break; | 46 NumStandardCpuidFuncs 47 }; 48 49 enum ExtendedCpuidFunctions { 50 VendorAndLargestExtFunc, 51 FamilyModelSteppingBrandFeatures, 52 NameString1, 53 NameString2, --- 105 unchanged lines hidden (view full) --- 159 stringToRegister(vendorString), 160 stringToRegister(vendorString + 4), 161 stringToRegister(vendorString + 8)); 162 break; 163 case FamilyModelStepping: 164 result = CpuidResult(0x00020f51, 0x00000805, 165 0xe7dbfbff, 0x04000209); 166 break; |
167 case ExtendedFeatures: 168 result = CpuidResult(0x00000000, 0x01800000, 169 0x00000000, 0x00000000); 170 break; |
|
161 default: 162 warn("x86 cpuid family 0x0000: unimplemented function %u", 163 funcNum); 164 return false; 165 } 166 } else { 167 warn("x86 cpuid: unknown family %#x", family); 168 return false; 169 } 170 171 return true; 172 } 173} // namespace X86ISA | 171 default: 172 warn("x86 cpuid family 0x0000: unimplemented function %u", 173 funcNum); 174 return false; 175 } 176 } else { 177 warn("x86 cpuid: unknown family %#x", family); 178 return false; 179 } 180 181 return true; 182 } 183} // namespace X86ISA |