avoid executing cache opcode on non-4 byte aligned boundaries
This commit is contained in:
parent
fb25a86108
commit
214af04cf5
1 changed files with 4 additions and 4 deletions
|
@ -9,15 +9,15 @@
|
||||||
subu $t1, $t3, $t2
|
subu $t1, $t3, $t2
|
||||||
1:
|
1:
|
||||||
cache 1, 0($t0)
|
cache 1, 0($t0)
|
||||||
addiu $t1, $t1, 0xffff
|
addiu $t1, $t1, -0x4
|
||||||
bne $t1, $zero, 1b
|
bne $t1, $zero, 1b
|
||||||
addiu $t0, $t0, 0x1
|
addiu $t0, $t0, 0x4
|
||||||
sync
|
sync
|
||||||
move $t0, $t2
|
move $t0, $t2
|
||||||
subu $t1, $t3, $t2
|
subu $t1, $t3, $t2
|
||||||
2:
|
2:
|
||||||
cache 0, 0($t0)
|
cache 0, 0($t0)
|
||||||
addiu $t1, $t1, 0xffff
|
addiu $t1, $t1, -0x4
|
||||||
bne $t1, $zero, 2b
|
bne $t1, $zero, 2b
|
||||||
addiu $t0, $t0, 0x1
|
addiu $t0, $t0, 0x4
|
||||||
sync
|
sync
|
||||||
|
|
Loading…
Reference in a new issue