Skip to content
Snippets Groups Projects
Commit 068c6234 authored by John Romein's avatar John Romein
Browse files

BugID: 225

Use SPRs instead of mftb(u), since it is not clear whether all PPC
implementations support mftb(u) and there is confusion about the right opcode
for these instructions.
parent 5dc0dae9
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,9 @@ _bgl_mutex_unlock:
.global _rdtsc
_rdtsc:
loop6: mftbu 3
mftb 4
mftbu 5
loop6: mfspr 3,269
mfspr 4,268
mfspr 5,269
cmpw 5,3
bne- loop6
blr
......
......@@ -216,9 +216,9 @@ namespace LOFAR {
asm
(
"0:\n\t"
"mftbu %0\n\t"
"mftb %1\n\t"
"mftbu %2\n\t"
"mfspr %0,269\n\t"
"mfspr %1,268\n\t"
"mfspr %2,269\n\t"
"cmpw %2,%0\n\t"
"bne 0b\n\t"
"subfc %3,%1,%3\n\t"
......@@ -301,9 +301,9 @@ namespace LOFAR {
asm
(
"0:\n\t"
"mftbu %0\n\t"
"mftb %1\n\t"
"mftbu %2\n\t"
"mfspr %0,269\n\t"
"mfspr %1,268\n\t"
"mfspr %2,269\n\t"
"cmpw %2,%0\n\t"
"bne 0b\n\t"
"addc %3,%3,%1\n\t"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment