pseudo_inst.cc (7914:eee5bb0fb8ea) | pseudo_inst.cc (8142:e08035e1a1f6) |
---|---|
1/* | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * |
|
2 * Copyright (c) 2003-2006 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; 9 * redistributions in binary form must reproduce the above copyright --- 71 unchanged lines hidden (view full) --- 81 DPRINTF(Quiesce, "%s: quiesce()\n", tc->getCpuPtr()->name()); 82 83 tc->suspend(); 84 if (tc->getKernelStats()) 85 tc->getKernelStats()->quiesce(); 86} 87 88void | 14 * Copyright (c) 2003-2006 The Regents of The University of Michigan 15 * All rights reserved. 16 * 17 * Redistribution and use in source and binary forms, with or without 18 * modification, are permitted provided that the following conditions are 19 * met: redistributions of source code must retain the above copyright 20 * notice, this list of conditions and the following disclaimer; 21 * redistributions in binary form must reproduce the above copyright --- 71 unchanged lines hidden (view full) --- 93 DPRINTF(Quiesce, "%s: quiesce()\n", tc->getCpuPtr()->name()); 94 95 tc->suspend(); 96 if (tc->getKernelStats()) 97 tc->getKernelStats()->quiesce(); 98} 99 100void |
101quiesceSkip(ThreadContext *tc) 102{ 103 BaseCPU *cpu = tc->getCpuPtr(); 104 105 if (!cpu->params()->do_quiesce) 106 return; 107 108 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent(); 109 110 Tick resume = curTick() + 1; 111 112 cpu->reschedule(quiesceEvent, resume, true); 113 114 DPRINTF(Quiesce, "%s: quiesceSkip() until %d\n", 115 cpu->name(), resume); 116 117 tc->suspend(); 118 if (tc->getKernelStats()) 119 tc->getKernelStats()->quiesce(); 120} 121 122void |
|
89quiesceNs(ThreadContext *tc, uint64_t ns) 90{ 91 BaseCPU *cpu = tc->getCpuPtr(); 92 93 if (!cpu->params()->do_quiesce || ns == 0) 94 return; 95 96 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent(); --- 352 unchanged lines hidden --- | 123quiesceNs(ThreadContext *tc, uint64_t ns) 124{ 125 BaseCPU *cpu = tc->getCpuPtr(); 126 127 if (!cpu->params()->do_quiesce || ns == 0) 128 return; 129 130 EndQuiesceEvent *quiesceEvent = tc->getQuiesceEvent(); --- 352 unchanged lines hidden --- |