summaryrefslogtreecommitdiff
path: root/src/cpu/base.hh
diff options
context:
space:
mode:
authorAndrea Mondelli <Andrea.Mondelli@ucf.edu>2019-05-25 15:29:05 -0400
committerAndrea Mondelli <Andrea.Mondelli@ucf.edu>2019-05-29 14:38:46 +0000
commitdc338b402f9711c284962a294ba0f6f2532bf410 (patch)
tree925811963495972cd81a5d4487e5090589521a1f /src/cpu/base.hh
parent5cbd972689d3a8f92518593de26e8d89754e646d (diff)
downloadgem5-dc338b402f9711c284962a294ba0f6f2532bf410.tar.xz
cpu: Added correct return type for ROB::countInsts
- return size_t (unsigned) according to the .size() return type - fixed typo in doc (source of warning with some compilers) Change-Id: I48ee2e317cf41011a6fcb5ca45aef67e75329bfa Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18948 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/cpu/base.hh')
-rw-r--r--src/cpu/base.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpu/base.hh b/src/cpu/base.hh
index 3d679f172..1ca1ca10c 100644
--- a/src/cpu/base.hh
+++ b/src/cpu/base.hh
@@ -287,7 +287,9 @@ class BaseCPU : public ClockedObject
virtual ThreadContext *getContext(int tn) { return threadContexts[tn]; }
/// Get the number of thread contexts available
- unsigned numContexts() { return threadContexts.size(); }
+ unsigned numContexts() {
+ return static_cast<unsigned>(threadContexts.size());
+ }
/// Convert ContextID to threadID
ThreadID contextToThread(ContextID cid)
@@ -399,7 +401,7 @@ class BaseCPU : public ClockedObject
* uniform data format for all CPU models and promotes better code
* reuse.
*
- * @param os The stream to serialize to.
+ * @param cp The stream to serialize to.
*/
void serialize(CheckpointOut &cp) const override;
@@ -412,14 +414,13 @@ class BaseCPU : public ClockedObject
* promotes better code reuse.
* @param cp The checkpoint use.
- * @param section The section name of this object.
*/
void unserialize(CheckpointIn &cp) override;
/**
* Serialize a single thread.
*
- * @param os The stream to serialize to.
+ * @param cp The stream to serialize to.
* @param tid ID of the current thread.
*/
virtual void serializeThread(CheckpointOut &cp, ThreadID tid) const {};
@@ -428,7 +429,6 @@ class BaseCPU : public ClockedObject
* Unserialize one thread.
*
* @param cp The checkpoint use.
- * @param section The section name of this thread.
* @param tid ID of the current thread.
*/
virtual void unserializeThread(CheckpointIn &cp, ThreadID tid) {};