system.cc (12090:11d69759b378) | system.cc (12515:e3d1a64d0260) |
---|---|
1/* 2 * Copyright (c) 2010-2013, 2016 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 --- 236 unchanged lines hidden (view full) --- 245 } 246 247 if (!dumpStatsPCEvent) 248 panic("dumpStatsPCEvent not created!"); 249 250 std::string task_filename = "tasks.txt"; 251 taskFile = simout.create(name() + "." + task_filename); 252 | 1/* 2 * Copyright (c) 2010-2013, 2016 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 --- 236 unchanged lines hidden (view full) --- 245 } 246 247 if (!dumpStatsPCEvent) 248 panic("dumpStatsPCEvent not created!"); 249 250 std::string task_filename = "tasks.txt"; 251 taskFile = simout.create(name() + "." + task_filename); 252 |
253 for (int i = 0; i < _numContexts; i++) { 254 ThreadContext *tc = threadContexts[i]; | 253 for (const auto tc : threadContexts) { |
255 uint32_t pid = tc->getCpuPtr()->getPid(); 256 if (pid != BaseCPU::invldPid) { 257 mapPid(tc, pid); 258 tc->getCpuPtr()->taskId(taskMap[pid]); 259 } 260 } 261 } 262} --- 115 unchanged lines hidden --- | 254 uint32_t pid = tc->getCpuPtr()->getPid(); 255 if (pid != BaseCPU::invldPid) { 256 mapPid(tc, pid); 257 tc->getCpuPtr()->taskId(taskMap[pid]); 258 } 259 } 260 } 261} --- 115 unchanged lines hidden --- |