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/o3/thread_context.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpu/o3') diff --git a/src/cpu/o3/thread_context.hh b/src/cpu/o3/thread_context.hh index ef72fdb03..a00d2ffa3 100755 --- a/src/cpu/o3/thread_context.hh +++ b/src/cpu/o3/thread_context.hh @@ -98,6 +98,9 @@ class O3ThreadContext : public ThreadContext /** Reads this CPU's ID. */ virtual int cpuId() const { return cpu->cpuId(); } + /** Reads this CPU's Socket ID. */ + virtual uint32_t socketId() const { return cpu->socketId(); } + virtual int contextId() const { return thread->contextId(); } virtual void setContextId(int id) { thread->setContextId(id); } -- cgit v1.2.3