thread_state.cc (2862:7bc3562e6405) | thread_state.cc (3280:91bfa4f79c53) |
---|---|
1/* 2 * Copyright (c) 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; --- 28 unchanged lines hidden (view full) --- 37#include "cpu/quiesce_event.hh" 38#include "kern/kernel_stats.hh" 39#endif 40 41#if FULL_SYSTEM 42ThreadState::ThreadState(int _cpuId, int _tid) 43 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0), 44 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), | 1/* 2 * Copyright (c) 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; --- 28 unchanged lines hidden (view full) --- 37#include "cpu/quiesce_event.hh" 38#include "kern/kernel_stats.hh" 39#endif 40 41#if FULL_SYSTEM 42ThreadState::ThreadState(int _cpuId, int _tid) 43 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0), 44 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), |
45 funcExeInst(0), storeCondFailures(0) | 45 microPC(0), nextMicroPC(1), funcExeInst(0), storeCondFailures(0) |
46#else 47ThreadState::ThreadState(int _cpuId, int _tid, Process *_process, 48 short _asid, MemObject *mem) 49 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0), 50 process(_process), asid(_asid), | 46#else 47ThreadState::ThreadState(int _cpuId, int _tid, Process *_process, 48 short _asid, MemObject *mem) 49 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0), 50 process(_process), asid(_asid), |
51 funcExeInst(0), storeCondFailures(0) | 51 microPC(0), nextMicroPC(1), funcExeInst(0), storeCondFailures(0) |
52#endif 53{ 54 numInst = 0; 55 numLoad = 0; 56} 57 58void 59ThreadState::serialize(std::ostream &os) --- 52 unchanged lines hidden --- | 52#endif 53{ 54 numInst = 0; 55 numLoad = 0; 56} 57 58void 59ThreadState::serialize(std::ostream &os) --- 52 unchanged lines hidden --- |