Ver Fonte

Fix NDS RTL compilation for default armv4 CPU, which does not have CLZ instruction

git-svn-id: trunk@47027 -
pierre há 4 anos atrás
pai
commit
7e0c21fa5f
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      rtl/nds/system.pp

+ 4 - 1
rtl/nds/system.pp

@@ -26,7 +26,10 @@ interface
 {$define FPC_HAS_FEATURE_THREADING}
 
 {$define CPUARM_HAS_UMULL} 
-{$define CPUARM_HAS_CLZ}
+{$ifdef FPC_HAS_INTERNAL_BSR}
+  {$define CPUARM_HAS_CLZ}
+{$endif def FPC_HAS_INTERNAL_BSR}
+
 
 {$i systemh.inc}
 {$i ndsbiosh.inc}