cpuid.cc (6040:818914aeebc1) | cpuid.cc (6052:2b660729f136) |
---|---|
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; --- 75 unchanged lines hidden (view full) --- 84 uint16_t family = bits(function, 31, 16); 85 uint16_t funcNum = bits(function, 15, 0); 86 if (family == 0x8000) { 87 // The extended functions 88 switch (funcNum) { 89 case VendorAndLargestExtFunc: 90 assert(vendorStringSize >= 12); 91 result = CpuidResult( | 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; --- 75 unchanged lines hidden (view full) --- 84 uint16_t family = bits(function, 31, 16); 85 uint16_t funcNum = bits(function, 15, 0); 86 if (family == 0x8000) { 87 // The extended functions 88 switch (funcNum) { 89 case VendorAndLargestExtFunc: 90 assert(vendorStringSize >= 12); 91 result = CpuidResult( |
92 NumExtendedCpuidFuncs - 1, | 92 0x80000000 + NumExtendedCpuidFuncs - 1, |
93 stringToRegister(vendorString), 94 stringToRegister(vendorString + 4), 95 stringToRegister(vendorString + 8)); 96 break; 97 case FamilyModelSteppingBrandFeatures: 98 result = CpuidResult(0x00020f51, 0x00000405, 99 0xe3d3fbff, 0x00000001); 100 break; --- 43 unchanged lines hidden (view full) --- 144 result = CpuidResult( 145 NumStandardCpuidFuncs - 1, 146 stringToRegister(vendorString), 147 stringToRegister(vendorString + 4), 148 stringToRegister(vendorString + 8)); 149 break; 150 case FamilyModelStepping: 151 result = CpuidResult(0x00020f51, 0000000405, | 93 stringToRegister(vendorString), 94 stringToRegister(vendorString + 4), 95 stringToRegister(vendorString + 8)); 96 break; 97 case FamilyModelSteppingBrandFeatures: 98 result = CpuidResult(0x00020f51, 0x00000405, 99 0xe3d3fbff, 0x00000001); 100 break; --- 43 unchanged lines hidden (view full) --- 144 result = CpuidResult( 145 NumStandardCpuidFuncs - 1, 146 stringToRegister(vendorString), 147 stringToRegister(vendorString + 4), 148 stringToRegister(vendorString + 8)); 149 break; 150 case FamilyModelStepping: 151 result = CpuidResult(0x00020f51, 0000000405, |
152 0xe3d3fbff, 0x00000001); | 152 0xe7d3fbff, 0x00000001); |
153 break; 154 default: 155 return false; 156 } 157 } 158 return true; 159 } 160} //namespace X86ISA | 153 break; 154 default: 155 return false; 156 } 157 } 158 return true; 159 } 160} //namespace X86ISA |