Browse Source

* fix arm edsp test to load from aligned address

git-svn-id: trunk@10487 -
micha 17 năm trước cách đây
mục cha
commit
4a7f6bccf9
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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