thread_state.cc (6324:a535b2232c08) | thread_state.cc (6331:d947798df4a1) |
---|---|
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#include "arch/kernel_stats.hh" 41#include "cpu/quiesce_event.hh" 42#include "mem/vport.hh" 43#endif 44 45#if FULL_SYSTEM 46ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid) 47#else | 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#include "arch/kernel_stats.hh" 41#include "cpu/quiesce_event.hh" 42#include "mem/vport.hh" 43#endif 44 45#if FULL_SYSTEM 46ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid) 47#else |
48ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid, 49 Process *_process, short _asid) | 48ThreadState::ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process) |
50#endif 51 : numInst(0), numLoad(0), _status(ThreadContext::Halted), 52 baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), 53#if FULL_SYSTEM 54 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), 55 kernelStats(NULL), physPort(NULL), virtPort(NULL), 56#else | 49#endif 50 : numInst(0), numLoad(0), _status(ThreadContext::Halted), 51 baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), 52#if FULL_SYSTEM 53 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), 54 kernelStats(NULL), physPort(NULL), virtPort(NULL), 55#else |
57 port(NULL), process(_process), asid(_asid), | 56 port(NULL), process(_process), |
58#endif 59 funcExeInst(0), storeCondFailures(0) 60{ 61} 62 63ThreadState::~ThreadState() 64{ 65#if !FULL_SYSTEM --- 128 unchanged lines hidden --- | 57#endif 58 funcExeInst(0), storeCondFailures(0) 59{ 60} 61 62ThreadState::~ThreadState() 63{ 64#if !FULL_SYSTEM --- 128 unchanged lines hidden --- |