From 2b1a01ee6ccda9f046b1ceb13c90ee0635473959 Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Fri, 9 May 2014 18:58:46 -0400 Subject: cpu, arm: Allow the specification of a socket field Allow the specification of a socket ID for every core that is reflected in the MPIDR field in ARM systems. This allows studying multi-socket / cluster systems with ARM CPUs. --- src/cpu/thread_context.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cpu/thread_context.hh') diff --git a/src/cpu/thread_context.hh b/src/cpu/thread_context.hh index 4b88b4a0b..40150ac05 100644 --- a/src/cpu/thread_context.hh +++ b/src/cpu/thread_context.hh @@ -123,6 +123,8 @@ class ThreadContext virtual int cpuId() const = 0; + virtual uint32_t socketId() const = 0; + virtual int threadId() const = 0; virtual void setThreadId(int id) = 0; @@ -323,6 +325,8 @@ class ProxyThreadContext : public ThreadContext int cpuId() const { return actualTC->cpuId(); } + uint32_t socketId() const { return actualTC->socketId(); } + int threadId() const { return actualTC->threadId(); } void setThreadId(int id) { actualTC->setThreadId(id); } -- cgit v1.2.3