diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-03-07 15:56:23 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-03-07 15:56:23 -0500 |
commit | 62fe81e9c1ab09f1b401231f58d9c34008c7b558 (patch) | |
tree | 732e6ac33b6be91999dfeb3b95f1d98746146b9d /src/cpu/ozone/cpu_impl.hh | |
parent | c4a8e5c36cbc30feee6ecd5c706e3275301b25ef (diff) | |
download | gem5-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/ozone/cpu_impl.hh')
-rw-r--r-- | src/cpu/ozone/cpu_impl.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index ff99cc7f6..2556ab6da 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -704,7 +704,7 @@ OzoneCPU<Impl>::OzoneTC::profileSample() template <class Impl> int -OzoneCPU<Impl>::OzoneTC::threadId() +OzoneCPU<Impl>::OzoneTC::threadId() const { return thread->threadId(); } |