summaryrefslogtreecommitdiff
path: root/src/cpu/checker
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-03-07 15:56:23 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2014-03-07 15:56:23 -0500
commit62fe81e9c1ab09f1b401231f58d9c34008c7b558 (patch)
tree732e6ac33b6be91999dfeb3b95f1d98746146b9d /src/cpu/checker
parentc4a8e5c36cbc30feee6ecd5c706e3275301b25ef (diff)
downloadgem5-62fe81e9c1ab09f1b401231f58d9c34008c7b558.tar.xz
cpu: Make CPU and ThreadContext getters const
This patch merely tidies up the CPU and ThreadContext getters by making them const where appropriate.
Diffstat (limited to 'src/cpu/checker')
-rw-r--r--src/cpu/checker/thread_context.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh
index 5c695c750..ddd07ea58 100644
--- a/src/cpu/checker/thread_context.hh
+++ b/src/cpu/checker/thread_context.hh
@@ -92,9 +92,9 @@ class CheckerThreadContext : public ThreadContext
BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); }
- int cpuId() { return actualTC->cpuId(); }
+ int cpuId() const { return actualTC->cpuId(); }
- int contextId() { return actualTC->contextId(); }
+ int contextId() const { return actualTC->contextId(); }
void setContextId(int id)
{
@@ -103,7 +103,7 @@ class CheckerThreadContext : public ThreadContext
}
/** Returns this thread's ID number. */
- int threadId() { return actualTC->threadId(); }
+ int threadId() const { return actualTC->threadId(); }
void setThreadId(int id)
{
checkerTC->setThreadId(id);