summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r--src/cpu/thread_state.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh
index d8dccc4ae..775f6fbd4 100644
--- a/src/cpu/thread_state.hh
+++ b/src/cpu/thread_state.hh
@@ -67,19 +67,19 @@ struct ThreadState {
void unserialize(Checkpoint *cp, const std::string &section);
- int cpuId() { return baseCpu->cpuId(); }
+ int cpuId() const { return baseCpu->cpuId(); }
- int contextId() { return _contextId; }
+ int contextId() const { return _contextId; }
void setContextId(int id) { _contextId = id; }
void setThreadId(ThreadID id) { _threadId = id; }
- ThreadID threadId() { return _threadId; }
+ ThreadID threadId() const { return _threadId; }
- Tick readLastActivate() { return lastActivate; }
+ Tick readLastActivate() const { return lastActivate; }
- Tick readLastSuspend() { return lastSuspend; }
+ Tick readLastSuspend() const { return lastSuspend; }
/**
* Initialise the physical and virtual port proxies and tie them to