summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/hyp/banked-sr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kvm/hyp/banked-sr.c')
-rw-r--r--arch/arm/kvm/hyp/banked-sr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kvm/hyp/banked-sr.c b/arch/arm/kvm/hyp/banked-sr.c
index 111bda8cdebd..be4b8b0a40ad 100644
--- a/arch/arm/kvm/hyp/banked-sr.c
+++ b/arch/arm/kvm/hyp/banked-sr.c
@@ -20,6 +20,10 @@
#include <asm/kvm_hyp.h>
+/*
+ * gcc before 4.9 doesn't understand -march=armv7ve, so we have to
+ * trick the assembler.
+ */
__asm__(".arch_extension virt");
void __hyp_text __banked_save_state(struct kvm_cpu_context *ctxt)