@ -175,39 +175,6 @@ relocate_code:
callr r8
ret
/ *
* dly_ c l k s - - N i o s2 ( l i k e N i o s1 ) d o e s n ' t h a v e a t i m e b a s e i n
* the c o r e . F o r s i m p l e d e l a y l o o p s , w e d o o u r b e s t b y c o u n t i n g
* instruction c y c l e s .
*
* Instruction p e r f o r m a n c e v a r i e s b a s e d o n t h e c o r e . F o r c o r e s
* with i c a c h e a n d s t a t i c / d y n a m i c b r a n c h p r e d i c t i o n ( I I / f , I I / s ) :
*
* Normal A L U ( e . g . a d d , c m p , e t c ) : 1 c y c l e
* Branch ( c o r r e c t l y p r e d i c t e d , t a k e n ) : 2 c y c l e s
* Negative o f f s e t i s p r e d i c t e d ( I I / s ) .
*
* For c o r e s w i t h o u t i c a c h e a n d n o b r a n c h p r e d i c t i o n ( I I / e ) :
*
* Normal A L U ( e . g . a d d , c m p , e t c ) : 6 c y c l e s
* Branch ( n o p r e d i c t i o n ) : 6 c y c l e s
*
* For s i m p l i c i t y , i f a n i n s t r u c t i o n c a c h e i s i m p l e m e n t e d w e
* assume I I / f o r I I / s . O t h e r w i s e , w e u s e t h e I I / e .
*
* /
.globl dly_clks
dly_clks :
# if ( C O N F I G _ S Y S _ I C A C H E _ S I Z E > 0 )
subi r4 , r4 , 3 / * 3 c l o c k s / l o o p * /
# else
subi r4 , r4 , 1 2 / * 1 2 c l o c k s / l o o p * /
# endif
bge r4 , r0 , d l y _ c l k s
ret
.data
.globl version_string