arch-arm: Read APSR in User Mode
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 30 Apr 2018 16:13:54 +0000 (17:13 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 14 Jun 2018 13:45:07 +0000 (13:45 +0000)
commit831184d2949fbd790a2040738079ca03c8cfdefe
tree3432bff52f11da340cf04bdf3196a11c11c9fda6
parent4a37134f5f739a2cfed6426d296f7755044d2d28
arch-arm: Read APSR in User Mode

This patch substitutes reads to the CPSR in user mode (MRS CPSR) to
reads to APSR (Application Program Status Register).
This is the user level alias for the CPSR. The APSR is a subset of the
CPSR.

Change-Id: I18a70693aef6fd305a4c4cb3c6f81f331bc60a2d
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10602
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/isa/insts/misc.isa
src/arch/arm/miscregs.hh