thread_state.cc (2691:549145d8ff75) thread_state.cc (2699:c255fef3daaa)
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;

--- 31 unchanged lines hidden (view full) ---

40#else
41ThreadState::ThreadState(int _cpuId, int _tid, MemObject *mem,
42 Process *_process, short _asid)
43 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0),
44 process(_process), asid(_asid),
45 funcExeInst(0), storeCondFailures(0)
46#endif
47{
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;

--- 31 unchanged lines hidden (view full) ---

40#else
41ThreadState::ThreadState(int _cpuId, int _tid, MemObject *mem,
42 Process *_process, short _asid)
43 : cpuId(_cpuId), tid(_tid), lastActivate(0), lastSuspend(0),
44 process(_process), asid(_asid),
45 funcExeInst(0), storeCondFailures(0)
46#endif
47{
48 numInst = 0;
49 numLoad = 0;
48}
49
50#if FULL_SYSTEM
51
52void
53ThreadState::profileClear()
54{
55 if (profile)
56 profile->clear();
57}
58
59void
60ThreadState::profileSample()
61{
62 if (profile)
63 profile->sample(profileNode, profilePC);
64}
65
66#endif
50}
51
52#if FULL_SYSTEM
53
54void
55ThreadState::profileClear()
56{
57 if (profile)
58 profile->clear();
59}
60
61void
62ThreadState::profileSample()
63{
64 if (profile)
65 profile->sample(profileNode, profilePC);
66}
67
68#endif