
1 Dec
2010
1 Dec
'10
7:26 a.m.
Dear All:
Recently , i have build a embedded environment with Uboot . And My Chip is adm5120 , mips4kc code.
In the file .\cpu\mips\cache.s , i found some code confounded .
line 152 to line 156 :
cache_op Index_Store_Tag_I t0 PTR_ADDU t0, a2 bne t0, t1, 1b /* fill once, so data field parity is correct */ PTR_LI t0, INDEX_BASE
the code 'PTR_LI t0, INDEX_BASE' is in the branch delay slot , so this instruction will be implement every branch cycle.
Is it right ? Then the cache operation logic seems wrong .