aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/aarch64/hypervisor/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/aarch64/hypervisor/cpu.c b/src/arch/aarch64/hypervisor/cpu.c
index e8048c38..40248034 100644
--- a/src/arch/aarch64/hypervisor/cpu.c
+++ b/src/arch/aarch64/hypervisor/cpu.c
@@ -31,12 +31,14 @@
static void lor_disable(void)
{
+#if SECURE_WORLD == 0
/*
* Accesses to LORC_EL1 are undefined if LORegions are not supported.
*/
if (read_msr(ID_AA64MMFR1_EL1) & ID_AA64MMFR1_EL1_LO) {
write_msr(MSR_LORC_EL1, 0);
}
+#endif
}
static void gic_regs_reset(struct arch_regs *r, bool is_primary)