Ver Fonte

* fix arm edsp test to load from aligned address

git-svn-id: trunk@10487 -
micha há 17 anos atrás
pai
commit
4a7f6bccf9
1 ficheiros alterados com 2 adições e 1 exclusões
  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