thread_state.hh (9101:d39368c6f502) thread_state.hh (10110:580b47334a97)
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;

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

62 ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process);
63
64 virtual ~ThreadState();
65
66 void serialize(std::ostream &os);
67
68 void unserialize(Checkpoint *cp, const std::string &section);
69
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;

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

62 ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process);
63
64 virtual ~ThreadState();
65
66 void serialize(std::ostream &os);
67
68 void unserialize(Checkpoint *cp, const std::string &section);
69
70 int cpuId() { return baseCpu->cpuId(); }
70 int cpuId() const { return baseCpu->cpuId(); }
71
71
72 int contextId() { return _contextId; }
72 int contextId() const { return _contextId; }
73
74 void setContextId(int id) { _contextId = id; }
75
76 void setThreadId(ThreadID id) { _threadId = id; }
77
73
74 void setContextId(int id) { _contextId = id; }
75
76 void setThreadId(ThreadID id) { _threadId = id; }
77
78 ThreadID threadId() { return _threadId; }
78 ThreadID threadId() const { return _threadId; }
79
79
80 Tick readLastActivate() { return lastActivate; }
80 Tick readLastActivate() const { return lastActivate; }
81
81
82 Tick readLastSuspend() { return lastSuspend; }
82 Tick readLastSuspend() const { return lastSuspend; }
83
84 /**
85 * Initialise the physical and virtual port proxies and tie them to
86 * the data port of the CPU.
87 *
88 * @param tc ThreadContext for the virtual-to-physical translation
89 */
90 void initMemProxies(ThreadContext *tc);

--- 109 unchanged lines hidden ---
83
84 /**
85 * Initialise the physical and virtual port proxies and tie them to
86 * the data port of the CPU.
87 *
88 * @param tc ThreadContext for the virtual-to-physical translation
89 */
90 void initMemProxies(ThreadContext *tc);

--- 109 unchanged lines hidden ---