From: Ian Campbell Subject: [PATCH V2 41/46] xen: arm: Enable VFP is a nop on 64-bit. Date: Thu, 14 Feb 2013 16:47:55 +0000 Message-ID: <1360860480-9245-41-git-send-email-ian.campbell@citrix.com> References: <1360860465.20449.472.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1360860465.20449.472.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: stefano.stabellini@citrix.com, tim@xen.org, Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Campbell Acked-by: Tim Deegan --- 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 0bab2a8..5c61376 100644 --- a/xen/include/asm-arm/vfp.h +++ b/xen/include/asm-arm/vfp.h @@ -3,6 +3,9 @@ #include + +#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 /* -- 1.7.2.5