arm: Correctly check FP/SIMD access permission in aarch32
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 2 Jun 2016 12:38:30 +0000 (13:38 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 2 Jun 2016 12:38:30 +0000 (13:38 +0100)
commitf48ad5b29d6f291b4f3679ff5fb7b5beae10d6fa
treed08e72f1eeeea81b33b60b6bd0f90f1cbd9f174d
parent53ae19bb5dce904915385515d87ff3c9a69ee170
arm: Correctly check FP/SIMD access permission in aarch32

The current implementation of aarch32 FP/SIMD in gem5 assumes that EL1
and higher are all 32-bit. This breaks interprocessing since an
aarch64 EL1 uses different enable/disable bits. This change updates
the permission checks to according to what is prescribed by the ARM
ARM.

Change-Id: Icdcef31b00644cfeebec00216b3993aa1de12b88
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Mitch Hayenga <mitch.hayenga@arm.com>
Reviewed-by: Nathanael Premillieu <nathanael.premillieu@arm.com>
src/arch/arm/insts/static_inst.cc
src/arch/arm/insts/static_inst.hh
src/arch/arm/isa/insts/fp.isa
src/arch/arm/isa/templates/neon.isa
src/arch/arm/isa/templates/vfp.isa
src/arch/arm/utility.cc
src/arch/arm/utility.hh