pseudo_inst.cc (8580:a32e8ce374d6) | pseudo_inst.cc (8666:97d873b8b13e) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 369 unchanged lines hidden (view full) --- 378// take a checkpoint when a certain work item begins. 379// 380void 381workbegin(ThreadContext *tc, uint64_t workid, uint64_t threadid) 382{ 383 tc->getCpuPtr()->workItemBegin(); 384 System *sys = tc->getSystemPtr(); 385 const System::Params *params = sys->params(); | 1/* 2 * Copyright (c) 2010 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 --- 369 unchanged lines hidden (view full) --- 378// take a checkpoint when a certain work item begins. 379// 380void 381workbegin(ThreadContext *tc, uint64_t workid, uint64_t threadid) 382{ 383 tc->getCpuPtr()->workItemBegin(); 384 System *sys = tc->getSystemPtr(); 385 const System::Params *params = sys->params(); |
386 sys->workItemBegin(threadid, workid); |
|
386 387 DPRINTF(WorkItems, "Work Begin workid: %d, threadid %d\n", workid, 388 threadid); 389 390 // 391 // If specified, determine if this is the specific work item the user 392 // identified 393 // --- 40 unchanged lines hidden (view full) --- 434// take a checkpoint when a certain work item ends. 435// 436void 437workend(ThreadContext *tc, uint64_t workid, uint64_t threadid) 438{ 439 tc->getCpuPtr()->workItemEnd(); 440 System *sys = tc->getSystemPtr(); 441 const System::Params *params = sys->params(); | 387 388 DPRINTF(WorkItems, "Work Begin workid: %d, threadid %d\n", workid, 389 threadid); 390 391 // 392 // If specified, determine if this is the specific work item the user 393 // identified 394 // --- 40 unchanged lines hidden (view full) --- 435// take a checkpoint when a certain work item ends. 436// 437void 438workend(ThreadContext *tc, uint64_t workid, uint64_t threadid) 439{ 440 tc->getCpuPtr()->workItemEnd(); 441 System *sys = tc->getSystemPtr(); 442 const System::Params *params = sys->params(); |
443 sys->workItemEnd(threadid, workid); |
|
442 443 DPRINTF(WorkItems, "Work End workid: %d, threadid %d\n", workid, threadid); 444 445 // 446 // If specified, determine if this is the specific work item the user 447 // identified 448 // 449 if (params->work_item_id == -1 || params->work_item_id == workid) { --- 32 unchanged lines hidden --- | 444 445 DPRINTF(WorkItems, "Work End workid: %d, threadid %d\n", workid, threadid); 446 447 // 448 // If specified, determine if this is the specific work item the user 449 // identified 450 // 451 if (params->work_item_id == -1 || params->work_item_id == workid) { --- 32 unchanged lines hidden --- |