utility.cc (12576:e55d2103ccac) | utility.cc (12712:246dfbaf28a2) |
---|---|
1/* 2 * Copyright (c) 2009-2014, 2016-2018 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 209 unchanged lines hidden (view full) --- 218 // bit 1-0 - CPU ID 219 // 220 // We deliberately extend both the Cluster ID and CPU ID fields to allow 221 // for simulation of larger systems 222 assert((0 <= tc->cpuId()) && (tc->cpuId() < 256)); 223 assert(tc->socketId() < 65536); 224 if (arm_sys->multiThread) { 225 return 0x80000000 | // multiprocessor extensions available | 1/* 2 * Copyright (c) 2009-2014, 2016-2018 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 209 unchanged lines hidden (view full) --- 218 // bit 1-0 - CPU ID 219 // 220 // We deliberately extend both the Cluster ID and CPU ID fields to allow 221 // for simulation of larger systems 222 assert((0 <= tc->cpuId()) && (tc->cpuId() < 256)); 223 assert(tc->socketId() < 65536); 224 if (arm_sys->multiThread) { 225 return 0x80000000 | // multiprocessor extensions available |
226 0x01000000 | // multi-threaded cores |
|
226 tc->contextId(); 227 } else if (arm_sys->multiProc) { 228 return 0x80000000 | // multiprocessor extensions available 229 tc->cpuId() | tc->socketId() << 8; 230 } else { 231 return 0x80000000 | // multiprocessor extensions available 232 0x40000000 | // in up system 233 tc->cpuId() | tc->socketId() << 8; --- 744 unchanged lines hidden --- | 227 tc->contextId(); 228 } else if (arm_sys->multiProc) { 229 return 0x80000000 | // multiprocessor extensions available 230 tc->cpuId() | tc->socketId() << 8; 231 } else { 232 return 0x80000000 | // multiprocessor extensions available 233 0x40000000 | // in up system 234 tc->cpuId() | tc->socketId() << 8; --- 744 unchanged lines hidden --- |