2008/3/1, Kevin Cozens <>:
> This just means my guess as to the number of cycles for subs and bne was
> somewhat optimistic.
I just checked the kernel code and results. It (linux-2.6.22.3) uses:
ENTRY(__delay)
subs r0, r0, #1
bhi __delay
mov pc, lr
On armv4t CPU, this reports the number of BogoMIPS as a fraction of 1%
under half the CPU clock frequency, which indicates that it is taking
4 cycles per loop (1 + 3, I guess).
By comparison, the armv5t cores report BogoMIPS as a-f-o-1%-u the CPU
clock frequency.
The ts7250 has an armv4t CPU, so I guess 4 cycles is your answer.
(This also explains why BogoMIPS are so Bogo :)
M
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|