URL
https://opencores.org/ocsvn/ion/ion/trunk
Subversion Repositories ion
Compare Revisions
- This comparison shows the changes necessary to convert path
/ion/trunk/src
- from Rev 144 to Rev 146
- ↔ Reverse comparison
Rev 144 → Rev 146
/adventure/bootstrap.s
172,6 → 172,20
blt $a2,$a1,inv_i_cache_loop |
addi $a2,1 |
|
# Now, the D-Cache is different. To invalidate a D-Cache line you just |
# read from it (by proper selection of a dummy target address) while bits |
# CP0[12].17:16=01. The data read is undefined and should be discarded. |
|
li $a0,0 # Use any base address that is mapped |
li $a2,0 |
li $a1,DCACHE_NUM_LINES-1 |
|
inv_d_cache_loop: |
lw $zero,0($a0) |
addi $a0,DCACHE_LINE_SIZE*4 |
blt $a2,$a1,inv_d_cache_loop |
addi $a2,1 |
|
li $a1,0x00020000 # Leave with cache enabled |
jr $ra |
mtc0 $a1,$12 |