arch-arm: Rewrite getMPIDR
authorAdrian Herrera <adrian.herrera@arm.com>
Tue, 10 Dec 2019 17:21:18 +0000 (17:21 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 12 Mar 2020 14:28:22 +0000 (14:28 +0000)
commit8cfa988335cec1e1f166fe9b37d489d0d743ced3
treeb33fdfd38a3e752591c022efba5f34ac10d2bafc
parent25f139555d898bcddf74a9ea0d41521e13e59caf
arch-arm: Rewrite getMPIDR

This patch is rewriting getMPIDR to have a more canonical form:

* Using threadId() instead of contextId()

It is also splitting the helper so that a client can get an affinity
number given a specific thread context.

Change-Id: I727e4b96ada345fd548cd3ff9423bf27347812c4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26304
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/arch/arm/utility.cc
src/arch/arm/utility.hh