mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
* cpus that only understand Thumb-2 don't support "blx <imm>"
git-svn-id: trunk@19238 -
This commit is contained in:
parent
6ed8641937
commit
2b11fd2bef
@ -515,7 +515,8 @@ unit cgcpu;
|
|||||||
branchopcode: tasmop;
|
branchopcode: tasmop;
|
||||||
begin
|
begin
|
||||||
{ check not really correct: should only be used for non-Thumb cpus }
|
{ 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
|
branchopcode:=A_BL
|
||||||
else
|
else
|
||||||
branchopcode:=A_BLX;
|
branchopcode:=A_BLX;
|
||||||
|
Loading…
Reference in New Issue
Block a user