Переглянути джерело

+ defines for aarch64 to configure the compiler

git-svn-id: trunk@22895 -
florian 12 роки тому
батько
коміт
7089d1d638
2 змінених файлів з 16 додано та 0 видалено
  1. 10 0
      compiler/fpcdefs.inc
  2. 6 0
      compiler/pp.pas

+ 10 - 0
compiler/fpcdefs.inc

@@ -205,6 +205,16 @@
   {$define symansistr}
 {$endif}
 
+{$ifdef aarch64}
+  {$define cpu64bit}
+  {$define cpu64bitaddr}
+  {$define cpu64bitalu}
+  {$define cpuflags}
+  {$define cpurox}
+  {$define cputargethasfixedstack}
+  {$define cpurefshaveindexreg}
+{$endif aarch64}
+
 {$IFDEF MACOS}
 {$DEFINE USE_FAKE_SYSUTILS}
 {$ENDIF MACOS}

+ 6 - 0
compiler/pp.pas

@@ -140,6 +140,12 @@ program pp;
   {$endif CPUDEFINED}
   {$define CPUDEFINED}
 {$endif}
+{$ifdef AARCH64}
+  {$ifdef CPUDEFINED}
+    {$fatal ONLY one of the switches for the CPU type must be defined}
+  {$endif CPUDEFINED}
+  {$define CPUDEFINED}
+{$endif AARCH64}
 {$ifndef CPUDEFINED}
   {$fatal A CPU type switch must be defined}
 {$endif CPUDEFINED}