瀏覽代碼

* 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