cpuid.cc (9124:3476c436d248) cpuid.cc (9473:da05a322fa4d)
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;

--- 136 unchanged lines hidden (view full) ---

145 assert(vendorStringSize >= 12);
146 result = CpuidResult(
147 NumStandardCpuidFuncs - 1,
148 stringToRegister(vendorString),
149 stringToRegister(vendorString + 4),
150 stringToRegister(vendorString + 8));
151 break;
152 case 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;

--- 136 unchanged lines hidden (view full) ---

145 assert(vendorStringSize >= 12);
146 result = CpuidResult(
147 NumStandardCpuidFuncs - 1,
148 stringToRegister(vendorString),
149 stringToRegister(vendorString + 4),
150 stringToRegister(vendorString + 8));
151 break;
152 case FamilyModelStepping:
153 result = CpuidResult(0x00020f51, 0000000405,
154 0xe7d3fbff, 0x00000001);
153 result = CpuidResult(0x00020f51, 0x00000805,
154 0xe7dbfbff, 0x00000001);
155 break;
156 default:
157 warn("x86 cpuid: unimplemented function %u", funcNum);
158 return false;
159 }
160 } else {
161 warn("x86 cpuid: unknown family %#x", family);
162 return false;
163 }
164
165 return true;
166 }
167} // namespace X86ISA
155 break;
156 default:
157 warn("x86 cpuid: unimplemented function %u", funcNum);
158 return false;
159 }
160 } else {
161 warn("x86 cpuid: unknown family %#x", family);
162 return false;
163 }
164
165 return true;
166 }
167} // namespace X86ISA