]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Fix macro for ARM Jazelle CPU feature identification
authorArtem Mygaiev <artem_mygaiev@epam.com>
Tue, 6 Dec 2016 14:16:45 +0000 (16:16 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:45:46 +0000 (13:45 -0700)
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 <artem_mygaiev@epam.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/cpufeature.h

index af60fe3362369d238d3ab9f066c2fc6ae2eb9298..c0a25ae13eabcc15a0f0ab30b4ac69b1ab8fc699 100644 (file)
@@ -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)