arm: Fix secure state checking in various places
authorDylan Johnson <Dylan.Johnson@ARM.com>
Tue, 2 Aug 2016 09:38:02 +0000 (10:38 +0100)
committerDylan Johnson <Dylan.Johnson@ARM.com>
Tue, 2 Aug 2016 09:38:02 +0000 (10:38 +0100)
commitc2271e301dc441944dfc4c19ac932ea4f926a863
tree651f335ff013c76759d533bd50e06aac94dd4c16
parent996c1ed33c251f80ebdfd972477709f95bdcbe65
arm: Fix secure state checking in various places

Faults that could potentially be routed to the hypervisor checked
whether or not they were in a secure state without checking if security
was enabled or not. This caused faults not to be routed correctly. This
patch causes secure state checking to first ask if security is enabled.

Change-Id: I179e9b181b27f552734c9bab2b18d05ac579a119
src/arch/arm/faults.cc
src/arch/arm/interrupts.cc
src/arch/arm/interrupts.hh