thread_context_impl.hh (5494:85c8d296c1cb) thread_context_impl.hh (5499:8bfc7650c344)
1/*
2 * Copyright (c) 2004-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;

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

31
32#include "arch/regfile.hh"
33#include "cpu/o3/thread_context.hh"
34#include "cpu/quiesce_event.hh"
35
36#if FULL_SYSTEM
37template <class Impl>
38VirtualPort *
1/*
2 * Copyright (c) 2004-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;

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

31
32#include "arch/regfile.hh"
33#include "cpu/o3/thread_context.hh"
34#include "cpu/quiesce_event.hh"
35
36#if FULL_SYSTEM
37template <class Impl>
38VirtualPort *
39O3ThreadContext<Impl>::getVirtPort(ThreadContext *src_tc)
39O3ThreadContext::getVirtPort()
40{
40{
41 if (!src_tc)
42 return thread->getVirtPort();
43
44 VirtualPort *vp;
45
46 vp = new VirtualPort("tc-vport", src_tc);
47 thread->connectToMemFunc(vp);
48 return vp;
41 return thread->getVirtPort();
49}
50
51template <class Impl>
52void
53O3ThreadContext<Impl>::dumpFuncProfile()
54{
55 thread->dumpFuncProfile();
56}

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

92#endif
93
94 old_context->setStatus(ThreadContext::Unallocated);
95
96 thread->inSyscall = false;
97 thread->trapPending = false;
98}
99
42}
43
44template <class Impl>
45void
46O3ThreadContext<Impl>::dumpFuncProfile()
47{
48 thread->dumpFuncProfile();
49}

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

85#endif
86
87 old_context->setStatus(ThreadContext::Unallocated);
88
89 thread->inSyscall = false;
90 thread->trapPending = false;
91}
92
100#if FULL_SYSTEM
101template <class Impl>
102void
93template <class Impl>
94void
103O3ThreadContext<Impl>::delVirtPort(VirtualPort *vp)
104{
105 if (vp != thread->getVirtPort()) {
106 vp->removeConn();
107 delete vp;
108 }
109}
110#endif
111
112template <class Impl>
113void
114O3ThreadContext<Impl>::activate(int delay)
115{
116 DPRINTF(O3CPU, "Calling activate on Thread Context %d\n",
117 getThreadNum());
118
119 if (thread->status() == ThreadContext::Active)
120 return;
121

--- 407 unchanged lines hidden ---
95O3ThreadContext<Impl>::activate(int delay)
96{
97 DPRINTF(O3CPU, "Calling activate on Thread Context %d\n",
98 getThreadNum());
99
100 if (thread->status() == ThreadContext::Active)
101 return;
102

--- 407 unchanged lines hidden ---