thread_state.cc (5715:e8c1d4e669a7) | thread_state.cc (6031:be16ad28822f) |
---|---|
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; --- 30 unchanged lines hidden (view full) --- 39#if FULL_SYSTEM 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, int _tid) | 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; --- 30 unchanged lines hidden (view full) --- 39#if FULL_SYSTEM 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, int _tid) |
47 : baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), | 47#else 48ThreadState::ThreadState(BaseCPU *cpu, int _tid, 49 Process *_process, short _asid) 50#endif 51 : numInst(0), numLoad(0), _status(ThreadContext::Halted), 52 baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), 53#if FULL_SYSTEM |
48 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), 49 kernelStats(NULL), physPort(NULL), virtPort(NULL), | 54 profile(NULL), profileNode(NULL), profilePC(0), quiesceEvent(NULL), 55 kernelStats(NULL), physPort(NULL), virtPort(NULL), |
50 microPC(0), nextMicroPC(1), funcExeInst(0), storeCondFailures(0) | |
51#else | 56#else |
52ThreadState::ThreadState(BaseCPU *cpu, int _tid, Process *_process, 53 short _asid) 54 : baseCpu(cpu), _threadId(_tid), lastActivate(0), lastSuspend(0), | |
55 port(NULL), process(_process), asid(_asid), | 57 port(NULL), process(_process), asid(_asid), |
56 microPC(0), nextMicroPC(1), funcExeInst(0), storeCondFailures(0) | |
57#endif | 58#endif |
59 microPC(0), nextMicroPC(1), funcExeInst(0), storeCondFailures(0) |
|
58{ | 60{ |
59 numInst = 0; 60 numLoad = 0; | |
61} 62 63ThreadState::~ThreadState() 64{ 65#if !FULL_SYSTEM 66 if (port) { 67 delete port->getPeer(); 68 delete port; --- 129 unchanged lines hidden --- | 61} 62 63ThreadState::~ThreadState() 64{ 65#if !FULL_SYSTEM 66 if (port) { 67 delete port->getPeer(); 68 delete port; --- 129 unchanged lines hidden --- |