From 62fe81e9c1ab09f1b401231f58d9c34008c7b558 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 7 Mar 2014 15:56:23 -0500 Subject: cpu: Make CPU and ThreadContext getters const This patch merely tidies up the CPU and ThreadContext getters by making them const where appropriate. --- src/cpu/base.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/base.hh') diff --git a/src/cpu/base.hh b/src/cpu/base.hh index 515f6a5a2..321b785a2 100644 --- a/src/cpu/base.hh +++ b/src/cpu/base.hh @@ -143,7 +143,7 @@ class BaseCPU : public MemObject virtual MasterPort &getInstPort() = 0; /** Reads this CPU's ID. */ - int cpuId() { return _cpuId; } + int cpuId() const { return _cpuId; } /** Reads this CPU's unique data requestor ID */ MasterID dataMasterId() { return _dataMasterId; } -- cgit v1.2.3