Explorar o código

* cpus that only understand Thumb-2 don't support "blx <imm>"


git-svn-id: trunk@19238 -

Jonas Maebe %!s(int64=14) %!d(string=hai) anos
pai
achega
2b11fd2bef
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/arm/cgcpu.pas

+ 2 - 1
compiler/arm/cgcpu.pas

@@ -515,7 +515,8 @@ unit cgcpu;
         branchopcode: tasmop;
       begin
         { check not really correct: should only be used for non-Thumb cpus }
-        if (current_settings.cputype<cpu_armv5) then
+        if (current_settings.cputype<cpu_armv5) or
+           (current_settings.cputype in cpu_thumb2) then
           branchopcode:=A_BL
         else
           branchopcode:=A_BLX;