Преглед изворни кода

* fix arm edsp test to load from aligned address

git-svn-id: trunk@10487 -
micha пре 17 година
родитељ
комит
4a7f6bccf9
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      rtl/arm/arm.inc

+ 2 - 1
rtl/arm/arm.inc

@@ -589,7 +589,8 @@ begin
   cpu_has_edsp:=true;
   in_edsp_test:=true;
   asm
-    ldrd r0,[sp]
+    bic r0,sp,#7
+    ldrd r0,[r0]
   end;
   in_edsp_test:=false;
   if cpu_has_edsp then