URL
https://opencores.org/ocsvn/amber/amber/trunk
[/] [amber/] [trunk/] [hw/] [tests/] [cache_swap_bug.S] - Diff between revs 2 and 15
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 15 |
Line 84... |
Line 84... |
|
|
|
|
@ ------------------------------------------
|
@ ------------------------------------------
|
@ Enable and clear cache
|
@ Enable and clear cache
|
@ ------------------------------------------
|
@ ------------------------------------------
|
@ ---------------------
|
|
@ Enable the cache
|
@ Enable the cache
|
@ ---------------------
|
|
mov r0, #0xffffffff
|
mov r0, #0xffffffff
|
mcr p15, 0, r0, c3, c0, 0 @ cacheable area
|
mcr 15, 0, r0, cr3, cr0, 0 @ cacheable area
|
mov r0, #1
|
mov r0, #1
|
mcr p15, 0, r0, c2, c0, 0 @ cache enable
|
mcr 15, 0, r0, cr2, cr0, 0 @ cache enable
|
nop
|
nop
|
nop
|
nop
|
|
|
@ flush the cache
|
@ flush the cache
|
mcr p15, 0, r0, c1, c0, 0
|
mcr 15, 0, r0, cr1, cr0, 0
|
nop
|
nop
|
nop
|
nop
|
|
|
|
|
@ jump to special sequence
|
@ jump to special sequence
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.