Browse Source

* fixed test for powerpc64; in ppc64/linux pointers to functions are in reality pointers to a function descriptor containing the actual function pointer

git-svn-id: trunk@6209 -
tom_at_work 18 years ago
parent
commit
1e104006a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/webtbs/tw8153a.pp

+ 3 - 0
tests/webtbs/tw8153a.pp

@@ -13,8 +13,11 @@ type
 procedure tc.test; assembler;
 procedure tc.test; assembler;
 asm
 asm
 {$ifdef cpu64}
 {$ifdef cpu64}
+// for simplicity sake do not bother about setting the GOT and
+// environment pointer correctly
   ld r4,0(r3)
   ld r4,0(r3)
   ld r4,+vmtoffset tc.v(r4)
   ld r4,+vmtoffset tc.v(r4)
+  ld r4,0(r4)
 {$else}
 {$else}
   lwz r4,0(r3)
   lwz r4,0(r3)
   lwz r4,+vmtoffset tc.v(r4)
   lwz r4,+vmtoffset tc.v(r4)