From: Artem Mygaiev Date: Tue, 6 Dec 2016 14:16:45 +0000 (+0200) Subject: xen/arm: Fix macro for ARM Jazelle CPU feature identification X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3264 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a854e414f7e1b905af5bdb9c88f154cfe4f5f4e;p=xen.git xen/arm: Fix macro for ARM Jazelle CPU feature identification Fix macro for ARM Jazelle CPU feature identification: value of 0 indicates that CPU does not support ARM Jazelle (ID_PFR0[11:8]) Coverity-ID: 1381849 Signed-off-by: Artem Mygaiev Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall --- diff --git a/xen/include/asm-arm/cpufeature.h b/xen/include/asm-arm/cpufeature.h index af60fe3362..c0a25ae13e 100644 --- a/xen/include/asm-arm/cpufeature.h +++ b/xen/include/asm-arm/cpufeature.h @@ -24,7 +24,7 @@ #define cpu_has_arm (boot_cpu_feature32(arm) == 1) #define cpu_has_thumb (boot_cpu_feature32(thumb) >= 1) #define cpu_has_thumb2 (boot_cpu_feature32(thumb) >= 3) -#define cpu_has_jazelle (boot_cpu_feature32(jazelle) >= 0) +#define cpu_has_jazelle (boot_cpu_feature32(jazelle) > 0) #define cpu_has_thumbee (boot_cpu_feature32(thumbee) == 1) #define cpu_has_aarch32 (cpu_has_arm || cpu_has_thumb)