diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-02-22 08:58:20 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-02-22 12:14:55 +0000 |
commit | 2676f564d3aafb1856ac264cc5a7e5a1b255e70b (patch) | |
tree | d16547377012a25bcadf6b4c47137567b8842ab6 | |
parent | 5d74ad1a082e13fe9823dd1190813682de233a87 (diff) | |
download | xen-2676f564d3aafb1856ac264cc5a7e5a1b255e70b.tar.gz xen-2676f564d3aafb1856ac264cc5a7e5a1b255e70b.tar.bz2 xen-2676f564d3aafb1856ac264cc5a7e5a1b255e70b.zip |
xen: arm: Enable VFP is a nop on 64-bit.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
-rw-r--r-- | xen/include/asm-arm/vfp.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xen/include/asm-arm/vfp.h b/xen/include/asm-arm/vfp.h index 9477916a53..b800816f2d 100644 --- a/xen/include/asm-arm/vfp.h +++ b/xen/include/asm-arm/vfp.h @@ -3,6 +3,9 @@ #include <xen/types.h> + +#ifdef CONFIG_ARM_32 + #define FPEXC_EN (1u << 30) /* Save and restore FP state. @@ -17,12 +20,17 @@ asm volatile ("fmxr fp" #reg ", %0" : : "r" (val)); \ } while (0) - /* Start-of-day: Turn on VFP */ static inline void enable_vfp(void) { WRITE_FP(exc, READ_FP(exc) | FPEXC_EN); } +#else +static inline void enable_vfp(void) +{ + /* Always enable on 64-bit */ +} +#endif #endif /* |