arch-arm: generic method for getting an ArmSystem
authorAdrian Herrera <adrian.herrera@arm.com>
Fri, 25 Oct 2019 18:21:59 +0000 (19:21 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 1 Nov 2019 09:41:44 +0000 (09:41 +0000)
commit3783d653690b654e40091f93392cecea93e15032
tree560a987ed70aee4896f95ffd8f6ec5b12674a124
parent092ab7f5ca37f0dbaa73446ac0a0db394ae83acc
arch-arm: generic method for getting an ArmSystem

This patch provides a generic method for casting a System object
into an ArmSystem object. This is specially useful in dev-arm,
since devices by default obtain a generic System reference which
needs to be casted to use ArmSystem-specific functionality.

Change-Id: Ib100002413cb48cd93772dcf38f13be65badd1d3
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22426
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/system.cc
src/arch/arm/system.hh