1/* 2 * Copyright (c) 2002-2005 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; --- 82 unchanged lines hidden (view full) --- 91const char * 92CPUProgressEvent::description() 93{ 94 return "CPU Progress event"; 95} 96 97#if FULL_SYSTEM 98BaseCPU::BaseCPU(Params *p) |
99 : MemObject(p->name), clock(p->clock), instCnt(0), |
100 params(p), number_of_threads(p->numberOfThreads), system(p->system), 101 phase(p->phase) 102#else 103BaseCPU::BaseCPU(Params *p) 104 : MemObject(p->name), clock(p->clock), params(p), 105 number_of_threads(p->numberOfThreads), system(p->system), 106 phase(p->phase) 107#endif --- 221 unchanged lines hidden (view full) --- 329 newTC->getProcessPtr()->replaceThreadContext(newTC, newTC->readCpuId()); 330#endif 331 332// TheISA::compareXCs(oldXC, newXC); 333 } 334 335#if FULL_SYSTEM 336 interrupts = oldCPU->interrupts; |
337 338 for (int i = 0; i < threadContexts.size(); ++i) 339 threadContexts[i]->profileClear(); 340 341 // The Sampler must take care of this! 342// if (profileEvent) 343// profileEvent->schedule(curTick); 344#endif --- 20 unchanged lines hidden (view full) --- 365BaseCPU::post_interrupt(int int_type) 366{ 367 interrupts.post(int_type); 368} 369 370void 371BaseCPU::post_interrupt(int int_num, int index) 372{ |
373 interrupts.post(int_num, index); 374} 375 376void 377BaseCPU::clear_interrupt(int int_num, int index) 378{ 379 interrupts.clear(int_num, index); 380} --- 51 unchanged lines hidden --- |