summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidcunado-arm <david.cunado@arm.com>2016-09-23 15:54:33 +0100
committerGitHub <noreply@github.com>2016-09-23 15:54:33 +0100
commitec413b885cb8e5ef9f4e3d2af3983cce2aa1e214 (patch)
tree57c701664ccb84179f531bd1b15e272ef590f243
parent06fbe4728084958eacb5eeb508436d9e76164d7a (diff)
parentfabf3017cfbd37d19563b4cb4c3204f09785397b (diff)
Merge pull request #716 from yatharth-arm/yk/AArch32_porting
AArch32: Fix detection of virtualization support
-rw-r--r--bl1/aarch32/bl1_context_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bl1/aarch32/bl1_context_mgmt.c b/bl1/aarch32/bl1_context_mgmt.c
index c7d3c12e..a3690973 100644
--- a/bl1/aarch32/bl1_context_mgmt.c
+++ b/bl1/aarch32/bl1_context_mgmt.c
@@ -142,7 +142,7 @@ void bl1_prepare_next_image(unsigned int image_id)
SPSR_E_LITTLE, DISABLE_ALL_EXCEPTIONS);
} else {
/* Use HYP mode if supported else use SVC. */
- if (GET_VIRT_EXT(read_id_pfr1()) == MODE32_hyp) {
+ if (GET_VIRT_EXT(read_id_pfr1())) {
next_bl_ep->spsr = SPSR_MODE32(MODE32_hyp, SPSR_T_ARM,
SPSR_E_LITTLE, DISABLE_ALL_EXCEPTIONS);
} else {